我局域网上有个A机器,win2000,服务器版。。我在A安装上.net framwork 2.0,
然后运行我在B机器用vs2005编写的c#的aspx运行是总是出现这个错误,请大家帮我。相信这个是个经常有的问题。
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>
然后运行我在B机器用vs2005编写的c#的aspx运行是总是出现这个错误,请大家帮我。相信这个是个经常有的问题。
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>
再确认你的程序没有错?
而且有时候好像没有web.config文件好像不出错,里面有这个文件就出错。以上都是推测,也不是绝对的。回复楼上:2000服务器版直接带iis,我又安装了.net framwork 2.0,然后什么也没有设置过,也不知道怎么设置。也不知道那个选项卡在哪里,所以,请继续帮助,谢谢。
每个网站一般都是自己一个文件夹,这个文件夹里面一般也有web.config文件,但是没有人想到根目录下应该有一个。只要拷贝一个过去,就不出错了。希望大家记住。