Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio unable to open Web site error

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.

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

Has anyone had this problem in a similar way?

like image 203
AGuyCalledGerald Avatar asked Dec 06 '22 03:12

AGuyCalledGerald


1 Answers

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"

leave the remaining config untouched

like image 190
Pranesh Janarthanan Avatar answered Dec 09 '22 15:12

Pranesh Janarthanan