一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

asp.net Server Error in Application解决方法

时间:2013-01-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 tag within a "web.config" configuration file located in the root directory of the current web application. This tag should then have its "mode" attribute set to "Off".

 代码如下 复制代码



   
       
   


 

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 configuration tag to point to a custom error page URL.



   
       
   

原因分析

因为网络服务组并没有足够的权限临时 ASP.NET 文件的文件夹,安装 Active Directory 安装 IIS 6.0 和 ASP.NET 时,则会出现此问题。

解决办法

这是由于内容中包含html标签造成的在web.config中添加如下属性

 代码如下 复制代码

如上显示不是真实错误信息,如想看到真实错误信息有两种方法,
第一种方法在服务器上打开网站,即可看到具体错误信息。

第二种方法上面按照错误信息提示,修改web.config文件中的customErrors节点中的mode为Off,然后打开网站即可看到具体错误信息。

第三种方法
如果没有部署bin文件,如果有的话,你把bin文件里面的那个DreamweaverCtrls.dll复制一下,然后把bin文件删除,再在之前的目录下面新建一个bin文件,把DreamweaverCtrls.dll粘贴进去。如果还是不行那就是iis的问题。

你需要,开始》》运行》》cmd》》输入cd C:WINDOWSMicrosoft.NETFrameworkv2.0.50727  回车》》aspnet_regiis.exe/i  回车》》他会提示asp.net正在安装。之后安装完成然后你再去重新启动一下iis就可以了,启动方法为:右击我的电脑》》管理》》服务和应用程序》》右击Internet信息服务》》所有任务》》重新启动iis,
这样应该就行了

热门栏目