'/' 應用程式中發生伺服器錯誤。

並未將物件參考設定為物件的執行個體。

描述: 在執行目前 Web 要求的過程中發生未處理的例外狀況。請檢閱堆疊追蹤以取得錯誤的詳細資訊,以及在程式碼中產生的位置。

例外狀況詳細資訊: System.NullReferenceException: 並未將物件參考設定為物件的執行個體。

原始程式錯誤:


行 364:            '<-- Ensure that the visiting user has access to the current page -->
行 365:            If _portalSettings.DesktopTabs.Count > 0 Then
行 366:                If PortalSecurity.IsInRoles(_portalSettings.ActiveTab.AuthorizedRoles) = False Then
行 367:                    Response.Redirect("~/desktopmodules/components/accessdenied.aspx")
行 368:                End If

原始程式檔: E:\WebHosts\tpg.net\Portals\_default\Skins\default2013jQuery\layout.ascx    行: 366

堆疊追蹤:


[NullReferenceException: 並未將物件參考設定為物件的執行個體。]
   ASPNetPortal.PortalSecurity.IsInRoles(String roles) in F:\客戶WEB\台灣精密\tpg.net\desktopmodules\components\security.vb:55
   ASP.portals__default_skins_default2013jquery_layout_ascx.Page_Init(Object sender, EventArgs e) in E:\WebHosts\tpg.net\Portals\_default\Skins\default2013jQuery\layout.ascx:366
   System.Web.UI.Control.OnInit(EventArgs e) +107
   System.Web.UI.Control.InitRecursive(Control namingContainer) +172
   System.Web.UI.Control.AddedControl(Control control, Int32 index) +218
   ASPNetPortal.DesktopLayout.Page_Load(Object sender, EventArgs e) in F:\客戶WEB\台灣精密\tpg.net\desktoplayout.ascx.vb:72
   System.Web.UI.Control.OnLoad(EventArgs e) +107
   System.Web.UI.Control.LoadRecursive() +89
   System.Web.UI.Control.LoadRecursive() +184
   System.Web.UI.Control.LoadRecursive() +184
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1532


版本資訊: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.8.4676.0