Server Error in '/' Application.

Index 0 is either negative or above rows count.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IndexOutOfRangeException: Index 0 is either negative or above rows count.

Source Error:


Line 57: 
Line 58:         Catch ex As Exception
Line 59:             Throw ex
Line 60:         End Try
Line 61: 

Source File: C:\inetpub\bp\App_Code\topic.vb    Line: 59

Stack Trace:


[IndexOutOfRangeException: Index 0 is either negative or above rows count.]
   topic.getTopicName(Int32 topicid) in C:\inetpub\bp\App_Code\topic.vb:59
   topicvideo..ctor() in C:\inetpub\bp\topicvideo.aspx.vb:6
   ASP.topicvideo_aspx..ctor() in C:\inetpub\bp\topicvideo.aspx.vb:912304
   __ASP.FastObjectFactory_app_web_uzqtim5u.Create_ASP_topicvideo_aspx() +52
   System.Web.Compilation.BuildResultCompiledType.CreateInstance() +31
   System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) +100
   System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +31
   System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) +37
   System.Web.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +339
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +48
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +159


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3535.0