您的位置:首页 > 其它

在moss2007WEB应用服务器上发布独立web程序时遇到的问题的解决思路

2007-08-02 17:52 501 查看
在MOSS2007的WEB应用服务器上发布独立的WEB应用程序,总是会出现一些问题. 主要原因是 WEB应用程序上扩展PORTAL应用站点时添加了一个web.config文件,改变了很多web.config中的缺省设置,因此发布的Web应用程序会出现 乱码/SESSION不能使用/SITMAP不能使用....等等问题.

解决思路是: 将发布的web应用程序下的web.config改回些原始设置.

下面设置片段是花一个通宵 一点点测试和 调试出来的. 在发布的web.config 中 system.web 段中加入以下配置片段即可

<identity impersonate="false" />
<!-- 全球化 此节设置应用程序的全球化设置。 -->
<globalization
requestEncoding="utf-8"
responseEncoding="utf-8"
fileEncoding="GB2312"
/>

<trust level="Full" originUrl="" />

<httpModules>
<add name="Session" type="System.Web.SessionState.SessionStateModule"/>
</httpModules>

<!-- Enable session state for all the pages in the Web application. -->
<pages enableSessionState="true" />

<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false" timeout="30" partitionResolverType="" />

<siteMap defaultProvider="AspNetXmlSiteMapProvider" enabled="true">

</siteMap>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: