有時,網站會無法開啟,並提示一些很籠統的錯誤資訊。此時應通過查看後台日誌進一步瞭解原因。(記錄檔正常位置為:C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS)下面對幾種常見的異常資訊及解決辦法進行說明:
1. 由於伺服器慢導致服務逾時
【分頁錯誤資訊】:發生意外錯誤。
【日誌錯誤資訊】:
Exception occured while connecting to WCF endpoint: System.TimeoutException: 請求通道在等待 00:00:20 以後回覆時逾時。增加傳遞給請求調用的逾時值,或者增加綁定上的 SendTimeout 值。分配給此操作的時間可能是更長逾時的一部分。 ---> System.TimeoutException: 對“http://inno:32843/f781306fbc05418ea924653d2e05b083/ProfilePropertyService.svc”的 HTTP 要求已超過為 00:00:20 分配的逾時。為此操作分配的時間可能是較長逾時的一部分。 ---> System.Net.WebException: 操作逾時 在 System.Net.HttpWebRequest.GetResponse() 在 System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout) --- 內部異常堆疊追蹤的結尾 --- 在 System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason) 在 System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChanne... 4c49923b-0255-4695-9d58-173318d59356
【解決辦法】:重新整理Web頁面。
2. 無法啟用安全認證服務
【分頁錯誤資訊】:發生意外錯誤。
【日誌錯誤資訊】:
Request for security token failed with exception: System.ServiceModel.ServiceActivationException: 無法啟用請求的服務“http://localhost:32843/SecurityTokenServiceApplication/securitytoken.svc/actas”。有關詳細資料,請參閱伺服器的診斷追蹤記錄檔。 Server stack trace: 在 System.ServiceModel.Channels.HttpChannelUtilities.ValidateRequestReplyResponse(HttpWebRequest request, HttpWebResponse response, HttpChannelFactory factory, WebException responseException, ChannelBinding channelBinding) 在 System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout) 在 System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout) 在 System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.Request(Message message, TimeSpan timeou... c7112e88-c63b-40af-b4bc-ef1c5807bc84
【解決辦法】:
開啟 Internet資訊服務(IIS)管理器 > 應用程式集區,在應用程式集區“SecurityTokenServiceApplicationPool”上右鍵,並點擊“進階設定”,再將“啟用32位應用程式”改為“False”。(修改後注意“啟動”此應用程式集區。)
3. 修改了管理員帳號密碼導致服務不能訪問
【網頁錯誤資訊】:HTTP Error 503. The service is unavailable.
【日誌錯誤資訊】:沒有錯誤相關的資訊。
【時間查看器資訊】:由於配置問題,無法載入模組 DLL“C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\isapi\owssvr.dll”。當前配置僅支援載入為 x86 處理器架構構建的映像。
【解決辦法】:
開啟 Internet資訊服務(IIS)管理器 > 應用程式集區,對"標識"為管理員帳號的應用程式集區逐個進行如下操作:在應用程式集區名稱上右鍵,並重新設定“標識”。(修改後注意“啟動”此應用程式集區。)
4. 未設定“備用存取對應”
【網頁錯誤資訊】:執行階段錯誤(FBA)或輸入了正確的使用者名稱密碼,但還是不能登入成功
【日誌錯誤資訊】:沒有錯誤相關的資訊。
【解決辦法】:在SharePoint管理中心為此Web應用程式添加“備用存取對應”,即在Web應用的“公用URL”中添加所使用的網域名稱或IP。