刚才小一在本地调试一个ASP.NET 2.0的系统,居然没能成功,出现如下错误:
Server Application Unavailable
The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.
Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur.
这是什么情况?上网找了一下,大多数人都说是.net2.0和.net1.1的程序共用了同一个应用程序池,也是比较可信的说法,可惜小一用的是Windows XP,不是Windows 2003!怎么办?小一左试右试,终于找到解决的办法了,呼呼~~太不容易了!原来改下权限就可以了!
解决办法
打开[我的电脑]-[工具]-[文件夹选项]-[查看],去掉使用简单文件共享(推荐)前面的勾。找到要创建虚拟目录的文件夹(也就是要调试的系统所在的文件夹),右键-[属性]-[安全]-[添加]-[高级]-[立即查找],选择ASPNET,然后一路确定,就可以了!再调试这个文件夹下的系统,嘿嘿~~当然是好使了!
虽然解决了问题,但可能不是个好办法,如果你有什么好办法,请告诉小一,不胜感激!