2014-02-28 45 views
0

我無法達到網站設置。我剛剛得到這個錯誤信息:PageLoadException:未將對象引用設置到對象 的實例和:System.ComponentModel.Win32Exception(0x80004005的):等待操作超時Dotnetnuke網站設置PageLoadException:對象引用未設置爲對象的實例

我真的搞不清這個錯誤並具有搜索對於一個修復,但沒有找到解決方案。

有誰知道如何解決它? 或者有什麼想法如何? 這是來自數據庫的堆棧跟蹤:

DotNetNuke.Services.Exceptions.PageLoadException:未將對象引用設置爲對象的實例。 --- > System.NullReferenceException:未將對象引用設置爲對象的實例。

exec sp_executesql N';Exec dbo.AddEventLog @0, @1, @2, @3, @4, @5, @6, @7, @8, @9',N'@0 nvarchar(4000), 
@1 nvarchar(4000),@2 nvarchar(4000),@3 nvarchar(4000),@4 int,@5 nvarchar(4000),@6 datetime,@7 nvarchar(4000), 
@8 nvarchar(4000),@9 int',@0=N'10728972-108f-40d7-8d2f-d2e1769df26f',@1=N'PAGE_LOAD_EXCEPTION',@2=NULL,@3=N'host', 
@4=0,@5=N'sitename',@6='2014-02-28 09:10:43.487',@7=N'de-1896',@8=N' 
<LogProperties><LogProperty><PropertyName>AssemblyVersion</PropertyName> 
<PropertyValue>7.0.4</PropertyValue></LogProperty><LogProperty><PropertyName>PortalID</PropertyName> 
<PropertyValue>0</PropertyValue></LogProperty><LogProperty><PropertyName>PortalName</PropertyName><PropertyValue>sitename</PropertyValue> 
</LogProperty><LogProperty><PropertyName>UserID</PropertyName><PropertyValue>1</PropertyValue> 
</LogProperty><LogProperty><PropertyName>UserName</PropertyName><PropertyValue>host</PropertyValue></LogProperty> 
<LogProperty><PropertyName>ActiveTabID</PropertyName><PropertyValue>39</PropertyValue></LogProperty> 
<LogProperty><PropertyName>ActiveTabName</PropertyName><PropertyValue>Site Settings</PropertyValue></LogProperty><LogProperty><PropertyName>RawURL</PropertyName> 
<PropertyValue>/Admin/SiteSettings/tabid/39/Default.aspx</PropertyValue></LogProperty> 
<LogProperty><PropertyName>AbsoluteURL</PropertyName><PropertyValue>/Default.aspx</PropertyValue></LogProperty> 
<LogProperty><PropertyName>AbsoluteURLReferrer</PropertyName> 
<PropertyValue>http://www.sitename.se/Default.aspx?tabid=39&amp;error=Object+reference+not+set+to+an+instance+of+an+object.&amp;content=0</PropertyValue></LogProperty> 
<LogProperty><PropertyName>UserAgent</PropertyName><PropertyValue>Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0</PropertyValue></LogProperty> 
<LogProperty><PropertyName>DefaultDataProvider</PropertyName><PropertyValue>DotNetNuke.Data.SqlDataProvider, DotNetNuke</PropertyValue></LogProperty> 
<LogProperty><PropertyName>ExceptionGUID</PropertyName><PropertyValue>bd332125-6839-4fb7-bf42-387dfa7a3de0</PropertyValue></LogProperty><LogProperty> 
<PropertyName>InnerException</PropertyName><PropertyValue>Object reference not set to an instance of an object.</PropertyValue></LogProperty> 
<LogProperty><PropertyName>FileName</PropertyName><PropertyValue /></LogProperty><LogProperty><PropertyName>FileLineNumber</PropertyName><PropertyValue>0</PropertyValue></LogProperty> 
<LogProperty><PropertyName>FileColumnNumber</PropertyName><PropertyValue>0</PropertyValue></LogProperty><LogProperty><PropertyName>Method</PropertyName> 
<PropertyValue>DotNetNuke.Services.FileSystem.FolderManager.GetFolders</PropertyValue></LogProperty><LogProperty><PropertyName>StackTrace</PropertyName> 
<PropertyValue /></LogProperty><LogProperty><PropertyName>Message</PropertyName> 

<PropertyValue>DotNetNuke.Services.Exceptions.PageLoadException: Object reference not set to an instance of an object. ---&gt; System.NullReferenceException: Object reference not set to an instance of an object. 

    at DotNetNuke.Services.FileSystem.FolderManager.GetFolders(Int32 portalID, String permissions, Int32 userID) 
    at DotNetNuke.Web.UI.WebControls.DnnFilePickerUploader.LoadFolders() 
    at DotNetNuke.Web.UI.WebControls.DnnFilePickerUploader.Page_Load(Object sender, EventArgs e) 
    at System.Web.UI.Control.LoadRecursive() 
    at System.Web.UI.Control.LoadRecursive() 
    at System.Web.UI.Control.LoadRecursive() 
    at System.Web.UI.Control.LoadRecursive() 
    at System.Web.UI.Control.LoadRecursive() 
    at System.Web.UI.Control.LoadRecursive() 
    at System.Web.UI.Control.LoadRecursive() 
    at System.Web.UI.Control.LoadRecursive() 
    at System.Web.UI.Control.LoadRecursive() 
    at System.Web.UI.Control.LoadRecursive() 
    at System.Web.UI.Control.LoadRecursive() 
    at System.Web.UI.Control.LoadRecursive() 
    at System.Web.UI.Control.LoadRecursive() 
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 
    --- End of inner exception stack trace ---</PropertyValue></LogProperty><LogProperty><PropertyName>Source</PropertyName><PropertyValue /></LogProperty></LogProperties>',@9=6 

這裏是另一個:

System.Data.SqlClient.SqlException(0x80131904):超時過期。操作完成之前超時的時間或服務器沒有響應。 --- > System.ComponentModel.Win32Exception(0x80004005的):等待操作超時

exec sp_executesql N';Exec dbo.AddEventLog @0, @1, @2, @3, @4, @5, @6, @7, @8, @9',N'@0 nvarchar(4000),@1 nvarchar(4000),@2 nvarchar(4000),@3 nvarchar(4000),@4 int, 
      @5 nvarchar(4000),@6 datetime,@7 nvarchar(4000),@8 nvarchar(max) ,@9 int',@0=N'f911ebc6-474a-4c0e-b5ea-2899ae046187', 
      @1=N'GENERAL_EXCEPTION',@2=NULL,@3=N'host',@4=0,@5=N'sitename',@6='2014-02-28 09:10:43.423',@7=N'de-1896',@8=N' 
      <LogProperties><LogProperty><PropertyName>AssemblyVersion</PropertyName><PropertyValue>7.0.4</PropertyValue></LogProperty> 
      <LogProperty><PropertyName>PortalID</PropertyName><PropertyValue>0</PropertyValue></LogProperty><LogProperty><PropertyName>PortalName</PropertyName> 
      <PropertyValue>sitename</PropertyValue></LogProperty><LogProperty><PropertyName>UserID</PropertyName><PropertyValue>1</PropertyValue></LogProperty> 
      <LogProperty><PropertyName>UserName</PropertyName><PropertyValue>host</PropertyValue></LogProperty><LogProperty><PropertyName>ActiveTabID</PropertyName> 
      <PropertyValue>39</PropertyValue></LogProperty><LogProperty><PropertyName>ActiveTabName</PropertyName><PropertyValue>Site Settings</PropertyValue></LogProperty> 
      <LogProperty><PropertyName>RawURL</PropertyName><PropertyValue>/Admin/SiteSettings/tabid/39/Default.aspx</PropertyValue></LogProperty> 
      <LogProperty><PropertyName>AbsoluteURL</PropertyName><PropertyValue>/Default.aspx</PropertyValue></LogProperty><LogProperty><PropertyName>AbsoluteURLReferrer</PropertyName> 
      <PropertyValue>http://www.sitename.se/Default.aspx?tabid=39&amp;error=Object+reference+not+set+to+an+instance+of+an+object.&amp;content=0</PropertyValue></LogProperty> 
      <LogProperty><PropertyName>UserAgent</PropertyName><PropertyValue>Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0</PropertyValue></LogProperty> 
      <LogProperty><PropertyName>DefaultDataProvider</PropertyName><PropertyValue>DotNetNuke.Data.SqlDataProvider, DotNetNuke</PropertyValue></LogProperty> 
      <LogProperty><PropertyName>ExceptionGUID</PropertyName><PropertyValue>ed0cf9b8-5fe9-4e88-8fd1-53f076f2bc83</PropertyValue></LogProperty> 
      <LogProperty><PropertyName>InnerException</PropertyName> 
      <PropertyValue>Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.</PropertyValue></LogProperty> 
      <LogProperty><PropertyName>FileName</PropertyName><PropertyValue /></LogProperty><LogProperty><PropertyName>FileLineNumber</PropertyName> 
      <PropertyValue>0</PropertyValue></LogProperty><LogProperty><PropertyName>FileColumnNumber</PropertyName><PropertyValue>0</PropertyValue></LogProperty> 
      <LogProperty><PropertyName>Method</PropertyName><PropertyValue /></LogProperty><LogProperty><PropertyName>StackTrace</PropertyName><PropertyValue /></LogProperty> 
      <LogProperty><PropertyName>Message</PropertyName>   
<PropertyValue>System.Data.SqlClient.SqlException (0x80131904): Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. 
      ---&gt; System.ComponentModel.Win32Exception (0x80004005): The wait operation timed out at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) 
      at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) 
      at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, 
      TdsParserStateObject stateObj, Boolean&amp; dataReady) 
      at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData() 
      at System.Data.SqlClient.SqlDataReader.get_MetaData() 
      at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) 
      at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, 
      Task&amp; task, Boolean asyncWrite) 
      at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, 
      TaskCompletionSource`1 completion, Int32 timeout, Task&amp; task, Boolean asyncWrite) 
      at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) 
      at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) 
      at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) 
      at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) 
      at DotNetNuke.Data.PetaPoco.PetaPocoExt.ExecuteReader(Database database, String sql, Object[] args) 
      at DotNetNuke.Data.SqlDataProvider.ExecuteReader(String procedureName, Object[] commandParameters) 
      at DotNetNuke.Data.DataProvider.GetFoldersByPortalAndPermissions(Int32 portalId, String permissions, Int32 userId) 
      at DotNetNuke.Services.FileSystem.FolderManager.GetFoldersByPermissionSortedCallBack(CacheItemArgs cacheItemArgs) 
      at DotNetNuke.Common.Utilities.DataCache.GetCachedDataFromRuntimeCache(CacheItemArgs cacheItemArgs, CacheItemExpiredCallback cacheItemExpired) 
     ClientConnectionId:575f718e-8d18-49f1-a536-0e29e2d20c9a</PropertyValue></LogProperty><LogProperty><PropertyName>Source</PropertyName><PropertyValue /> 
     </LogProperty></LogProperties>',@9=4  

回答

1

我想我已經遇到了這個錯誤。這可能是由於門戶目錄中的文件夾數量過多以及重要的用戶數量造成的。
我發現的一個解決方案是修改存儲過程。
我建議你驗證「GetFoldersByPermissions」的代碼。
我的變化包括評論2加入,這似乎是不必要的:
JOIN dbo.UserRoles UR ON UR.RoleID = FP.RoleID
JOIN dbo.Users U ON U.UserId = UR.UserId

+0

謝謝!它解決了問題! – theonealf

相關問題