我的解决方案文件中有一个Web项目,当我打开解决方案时,该项目显示为“不可用”。 当我右键单击Web项目并重新加载项目时,出现以下错误:
The Web Application Project mycompany.myapp.mywebproject is configured to use IIS. The Web Server 'http://localhost/MyWebApp could not be found.
我没有手动设置此Web应用程序的虚拟目录。
据同事说,Visual Studio应提示我创建虚拟目录,但我没有收到提示。
我在安装IIS之前安装了VS2010。
我的开发机器设置如下:
- Windows 7 Enterprise
- Service Pack 1
- 64位操作系统
- Visual Studio 2010企业版服务包1
- IIS版本7.5