关于asp.net2.0的配置!在线等

来源:百度知道 编辑:UC知道 时间:2024/05/16 15:12:03
服务器上装了 .net2.0 后,运行.net程序,报如下的错误:

-------------------
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>

你提供的信息太少了~~说说你服务器之前用的那个版本的IIS和.net,还有你运行的程序是不是有问题,如果你以前安装的.net 1.1,在IIS->默认网站->属性->asp.net里改asp.net版本,是个下拉菜单,改成asp.net 2.0,如果不是这个问题,尝试修改你的配置文件

<customErrors mode="Off" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>

你把那个节点改成这样.
还有你看看iis里面的asp.net配置是不是用2.0.

如你所说运行2.0的探针没有问题,证明你IIS是正确的。

那么请保程序的web.config没有问题,并且程序是2.0的,并且程序是否发布?我遇见过没有发布出现这个情况的,另外,可能他发布后,他的类名使用了关键字,也有类似的情况出现。一句话,IIS没问题查它的程序在本地运行一下看看。
修改它的web.config文件,应该少写了,先把调试模式打开,看看详细的报错!

你这个问题一般的错误都会抛出这样的东西 应该发一些更详细的上来