Server Error in '/' Application.

Object reference not set to an instance of an object.

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.NullReferenceException: Object reference not set to an instance of an object.

Source Error:


Line 182:        Dim Image As String = "/images/spacer.gif"
Line 183:        Dim IconsLocation As String = "/images/filetypes/icons/"
Line 184:        If Filename.EndsWith("csv") Then
Line 185:            Image = IconsLocation & "xls.jpg"
Line 186:        ElseIf Filename.EndsWith("txt") Then

Source File: F:\inetpub\wwwroot\nwcemss.org\web\modules\rail\FormsandDocuments.ascx.vb    Line: 184

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   FormsandDocuments.GetThumbnail(String Filename) in F:\inetpub\wwwroot\nwcemss.org\web\modules\rail\FormsandDocuments.ascx.vb:184
   FormsandDocuments.rptDocumentsRail_ItemDataBound(Object sender, RepeaterItemEventArgs e) in F:\inetpub\wwwroot\nwcemss.org\web\modules\rail\FormsandDocuments.ascx.vb:169
   System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +692
   System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +67
   FormsandDocuments.BindRail(DataTable dtDocument) in F:\inetpub\wwwroot\nwcemss.org\web\modules\rail\FormsandDocuments.ascx.vb:155
   FormsandDocuments.Page_PreRender(Object sender, EventArgs e) in F:\inetpub\wwwroot\nwcemss.org\web\modules\rail\FormsandDocuments.ascx.vb:149
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Control.OnPreRender(EventArgs e) +11160781
   System.Web.UI.Control.PreRenderRecursiveInternal() +107
   System.Web.UI.Control.PreRenderRecursiveInternal() +223
   System.Web.UI.Control.PreRenderRecursiveInternal() +223
   System.Web.UI.Control.PreRenderRecursiveInternal() +223
   System.Web.UI.Control.PreRenderRecursiveInternal() +223
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3393


Version Information: Microsoft .NET Framework Version:2.0.50727.9061; ASP.NET Version:2.0.50727.9062