ASP.NET中的一个小错误 customErrors

来源:百度知道 编辑:UC知道 时间:2024/06/25 09:52:05
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"/>
</sys

1:是否是 web.config 配置问题
解决: 检查web.config 是否合格或完整

2: asp.net版本问题.asp.net有asp.net 1.1和 asp.net2.0 两个版本.
解决: 如果是2003的os,IIS里同时配置了1.1和2.0的应用的话,需要将1.1和2.0的应用分配到不同的应用程序池中(应用程序池可以随便建一个)!或者是.net framework配置错误!

是不是配置权限的问题?

Line 87: <providerOption name="CompilerVersion" value="v3.5"/>
这是 .NET 3.5 的配置信息啊

你把 <compilers> 这部分 整个删掉吧。

-----------------------------------------------

<customErrors mode="On" -------> 这里改成 Off

保存后, 重新运行你的程序,就可以看到详细的错误信息了