一、修改网站应用程序根目录的Web.config
- 启用SessionStateModule
<!--
<add name="Session" type="System.Web.SessionState.SessionStateModule"/>
--> - 启用SessionState
<pages enableSessionState="true" enableViewState="true" enableViewStateMac="true" validateRequest="true" /> - 设置Turst为Full级别
<trust level="Full" originUrl="" />
二、排除WebApplication folder
- On the server that is running WSS, click Start, click Administrative Tools, and then click SharePoint Central Administration.
- In the Virtual Server Configuration area, click Configure virtual server settings.
- In the Virtual Server List list, click the virtual server that you must add the excluded paths to.
- Under Virtual Server Management, click Define managed paths.
- In the Add a New Path section, type the path that you want to exclude in the Path box.
- Click Excluded Path, and then click OK.