Server Application Error ASP.NET

来源:互联网 发布:null在c语言的作用 编辑:程序博客网 时间:2024/04/29 15:38
原文地址 :http://hi.baidu.com/zhaoguozheng51/item/c303c18a439bcb5fe73d19fa
 
Server Application Error(IIS不能解析ASP和ASP.NET)                                      

具体错误如下:

Server Application Error
The server has encountered an error while loading an application during the processing of your request. Please refer to the event log for more detail information. Please contact the server administrator for assistance.

调试asp.net的时候总是显示这个错误,弄来弄去不知道什么时候开始连最简单的ASP文件都没有办法解析。调了N久,一直解决不了这个问题。
1.重新启动IIS,没有任何收效,错误依旧。
2.重新启动电脑,还是老问题。
3.开始怀疑是ASP.DLL文件出了问题,重新注册还是不行。
4.网上搜索了N多资料,最多的就是说密码不同步,按上面的方法还是不行。
5.重新安装IIS5.0,好不容易安装完了,还是不行。(快崩溃了……)
6.再上网找,终于找到了一个解决的方法
“开始”->“设置”->“控制面板”->“管理工具”->“组件服务”中,“控制台根目录”->“组件服务”->“计算机”->“我的电脑”->“COM+应用程序”中,有一个“IIS Out-Of-Process Pooled”鼠标右键“属性”--“标识”--把“此用户”调整为“交互式用户--目前已登录的用户”。然后“确定”,再鼠标右键“属性”--“启动”。

asp终于可以调试了,但asp.net还是不行

-_-!!我只不过是想调试一下程序而已,用得着这样为难我么

再找~

还好…

进入cmd窗口运行下面的命令。

cd %windir%\system32\inetsrv
rundll32 wamreg.dll, CreateIISPackage
regsvr32 asptxn.dll

下面是详细解释:

As a last resort, you can re-create the IIS packages. To do this, follow these steps:
Browse to Component Services and delete the following packages:NOTE: To delete the packages, you must first open the properties of the package, click the Advanced tab, and then click to clear the Disable Deletion check box.


IIS In-Process Applications
IIS Out-of-Process Pooled Applications
IIS Utilities
Open a command prompt, and then use the following command to switch directories:
cd %windir%\system32\inetsrv

Run the following commands:
rundll32 wamreg.dll, CreateIISPackage

NOTE: "CreateIISPackage" must be typed exactly; it is case-sensitive.
regsvr32 asptxn.dll

Close and reopen Component Services. You should see all three IIS COM+ applications that have been recreated.
Run IISRESET from a command line and test any ASP page that previously did not load correctly.

原创粉丝点击