如何在 Sharepoint 網站上加入自行開發的 .net web 應用程式
3/30/2007 9:08:42 PM

[技術]Sharepoint

通常這個問題可以解決以下幾種徵兆:

* 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

永久網址 | Comments (2) | 閱讀(1915) |

Comments (2) -

12/23/2008 6:53:05 PM #

Trackback from MichAdel

KB-Sharepint Web Site Add .net Web Application Part 2

MichAdel | Reply

6/5/2009 10:10:28 PM #

你好
sharepoint有没有提供一段时间没有操作之后,自动退出系统的功能呢
我在管理中心看到有一个[应用程序管理][office sharepoint server共享服务][配置会话状态]中的选项好象是这方面的考虑,可是设置了也没有作用

virus | Reply

Pingbacks and trackbacks (1)+

Add comment


(不會對外公開)

biuquote
Loading