Server Error in '/ecimsrdDrift' 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 872:                        <li><a href="#grids" data-toggle="tab"><span class="glyphicon glyphicon-th"></span> Visa i rutnät</a></li>
Line 873:                            *@
Line 874:                            @If Session("ShowList") = "" Or Session("ShowList") = "0" Then
Line 875:                        @<li class="active"><a href="@Href("~/Forms/ItemListRD.vbhtml", GroupName, Page, Url2, Url3, Url4, Url5, "0")"><span class="glyphicon glyphicon-list"></span> @Langtext(LangContextEnum.Visa_lista)</a></li>
Line 876:                            Else

Source File: C:\ecimsrdDrift\Forms\ItemListRD.vbhtml    Line: 874

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   System.Object.GetType() +0
   System.Web.WebPages.UrlUtil.BuildUrl(String path, Object[] pathParts) +203
   ASP._Page_Forms_ItemListRD_vbhtml.Execute() in C:\ecimsrdDrift\Forms\ItemListRD.vbhtml:874
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +280
   System.Web.WebPages.WebPage.ExecutePageHierarchy() +378
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +181
   System.Web.WebPages.WebPageHttpHandler.ProcessRequestInternal(HttpContextBase httpContext) +239


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