Visual Studio无法打开网站错误 [英] Visual Studio unable to open Web site error

查看:744
本文介绍了Visual Studio无法打开网站错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Visual Studio 2008并处理包含网站的Web项目. 打开解决方案文件时,我收到错误消息: 无法打开网站 http://localhost/myWebsite.de .网站

I work with Visual Studio 2008 and work on a web project which contains a web site. When opening the solution file, I receive the error message: "Unable to open the Web site http://localhost/myWebsite.de. The Web site http://localhost/myWebsite.de does not exist." I can see the web site greyed out, with the remark "unavailable", in the solution folder.

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

It is possible to add the web site to the solution, but after relaunching Visual Studio, it´s gone again.

有人有类似的问题吗?

推荐答案

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

Open the existing Solution file using notepad, Copy the actual project Directory path and update the solution file content with respect to following options alone

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

保留其余配置不变

这篇关于Visual Studio无法打开网站错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆