Discuz!NT

注册

 

QQ登录

只需一步,快速开始

发新话题 回复该主题

如何修改web.config才能让他和极速系统共存 [复制链接]

11#

回复:如何修改web.config才能让他和极速系统共存

  1.       <!--  注意:此节设置全球化,Discuz!NT由此支持多语言。 -->

  2.     <globalization

  3.             requestEncoding=&quot;utf-8&quot;

  4.             responseEncoding=&quot;utf-8&quot;

  5.             fileEncoding=&quot;utf-8&quot;

  6.     />



  7.   

  8.     <!--  注意:此节设置是否使用ASP.net表单安全验证,Discuz!NT使用自己的验证。-->

  9.     <pages  validateRequest=&quot;false&quot;  />





  10.     <!--  注意:此节设置由Discuz!NT接管http请求。不会干涉对非Discuz!NT论坛路径下的请求。 -->

  11.     <httpModules>

  12.         <add type=&quot;Discuz.Forum.HttpModule, Discuz.Forum&quot; name=&quot;HttpModule&quot; />

  13.     </httpModules>



  14. </system.web>

复制代码
复制到 极速 web.config 里的 <system.web> </system.web>中间 试试看
TOP
12#

回复:如何修改web.config才能让他和极速系统共存

提示如下:
Server Error in '/' Application.
--------------------------------------------------------------------------------

Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".


<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>


Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.


<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
</configuration>
莫丁工作室 http://www.moding.net记录精彩 成就梦想
TOP
13#

回复:如何修改web.config才能让他和极速系统共存

综合多种方法已经解决!
莫丁工作室 http://www.moding.net记录精彩 成就梦想
TOP
发新话题 回复该主题
站长