解决Server Error in '/' Application.方法!
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
1.在本机调试好好的,传到网上出现这个问题,请问如何解决?
2.如何配置web.config?
原因是:
1.web.config上传到服务器后编码的问题!在web.config中写入
<globalization requestEncoding="GB2312" responseEncoding="GB2312" uiCulture="zh-CN" culture="zh-CN" fileEncoding="GB2312" />
2.IIS配置问题.
3.配置节点中 mode="Off"
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
1.在本机调试好好的,传到网上出现这个问题,请问如何解决?
2.如何配置web.config?
原因是:
1.web.config上传到服务器后编码的问题!在web.config中写入
<globalization requestEncoding="GB2312" responseEncoding="GB2312" uiCulture="zh-CN" culture="zh-CN" fileEncoding="GB2312" />
2.IIS配置问题.
3.配置节点中 mode="Off"
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>