Visual Studio 无法打开网站错误

2024-02-02

我使用 Visual Studio 2008 并处理一个包含网站的 Web 项目。 打开解决方案文件时,我收到错误消息:

无法打开网站 http://localhost/myWebsite.de。网站 http://localhost/myWebsite.de 不存在。

我可以看到该网站在解决方案文件夹中显示为灰色,并带有“不可用”字样。

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

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


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

Debug.AspNetCompiler.PhysicalPath = "update the path here"
Release.AspNetCompiler.PhysicalPath = "update the path here"
SlnRelativePath = "update the path here"

保留其余配置不变

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Visual Studio 无法打开网站错误 的相关文章

随机推荐