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.

解决方法,需要给IIS的用户添加权限,因为不同的版本可能使用的是不同的用户,我就给文件夹添加了一个用户every one。

步骤,在文件夹上选择右键-属性-安全-追加-详细设定-立即检索

选到every one就可以了,不过这个只局限于开发过程中,部署肯定是不安全的。

原文地址:https://www.cnblogs.com/huangxue/p/2269989.html