Visual Studio无法打开网站错误

AGu*_*ald 3 visual-studio web

我使用Visual Studio 2008并处理包含网站的Web项目.打开解决方案文件时,收到错误消息:"无法打开网站http://localhost/myWebsite.de.网站http://localhost/myWebsite.de不存在." 我可以在解决方案文件夹中看到该网站显示为"不可用".

可以将网站添加到解决方案中,但在重新启动Visual Studio之后,它又消失了.

有没有人以类似的方式遇到这个问题?

小智 5

我认为KB 326497有你的答案.设置IIS虚拟目录以指向站点运行的位置为我更正了此错误.


Pra*_*nan 5

使用记事本打开现有的解决方案文件,复制实际项目目录路径,并仅根据以下选项更新解决方案文件的内容

Debug.AspNetCompiler.PhysicalPath = "update the path here"
Release.AspNetCompiler.PhysicalPath = "update the path here"
SlnRelativePath = "update the path here"
Run Code Online (Sandbox Code Playgroud)

保持其余配置不变