[提问]
.net程序出错Server Error in '/' Application.!
|
|
.net程序出错Server Error in '/' Application.!
我刚买的windows主机,我用的是iis7.0的,我的网站程序我在本地测试不会出错,但传到服务器上就出错了,
我想问这是整么回事?谁能帮帮我,谢谢!
提示内容如下:
Server Error in '/gzlifeng.com' 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>
[ 本帖最后由 loricy 于 2010-6-2 02:24 AM 编辑 ] |
|
|
|
|
|
|
|
|
|
|
gypworks526
发表于 2010-6-2 08:12:39
|
显示全部楼层
修改web.config
让他显示详细的错误信息
然后再看看。 |
|
|
|
|
|
|
|
|
|
|
piazini
发表于 2011-6-4 21:47:18
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
lwbo1987
发表于 2011-6-7 09:53:43
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
kingsontsao
发表于 2011-6-7 11:14:33
|
显示全部楼层
|
应用程序在服务器上发生错误。安全原因什么的不支持安装 |
|
|
|
|
|
|
|
|