通常這個問題可以解決以下幾種徵兆:
* Sharepoint 2007 & Reporting Service 2000/2005 Install in the same Web Site.
* Enabling a custom ASP.NET Application in SharePoint 2007 (MOSS)
會出現以下問題
Required permissions cannot be acquired.
此問題為安全性問題,解決在 web.config 加上
<trust level="Full" originUrl="" /> 即可
Configuration Error : Cannot use 'partitionResolver' unless the mode is 'StateServer' or 'SQLServer'.
此問題為 Sharepoint 有用到 web.config 中 <sessionState /> 的 partitionResolverType 屬性,如果下層應用程式為自行開發的應用程式(非 Sharepoint 程式) 可以改為以下,只要額外加入 partitionResolverType=""
<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false" timeout="20" partitionResolverType="" />
Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the <configuration>\<system.web>\<httpModules> section in the application configuration.
此問題為 Sharepoint 預設 <pages/> 的 enableSessionState = "false" ,可以覆寫上層設定
<pages enableSessionState="true" />
<2007/08/29>補充說明
又遇到一個狀況,原本使用 Windows 驗證時,會再次出現登入畫面,形成二次登入的狀況,只要將 web.config 中以下的 tag attribute 調整即可。
<identity impersonate="true"/>
找了很多網站都沒有完整的處理過程,花了不少時間 :s。
Keyword: MOSS Sharepoint WSS partitionResolverType SessionState
[技術]Sharepoint
sps2007_aspnet