Last post Jun 05, 2013 01:59 AM by kctt
May 27, 2013 03:45 PM|jimiwa|LINK
"Unable to open the web site 'http://localhost:60394'. The web server 'http://localhost:60394' could not be found."
I am doing a web site (ASP .NET) project, not a regular ASP .NET project. I think previously when I googled the fix I saw to this error was to make the site run at a virtual directory in IIS because this site is looking for an address that is specific to
the computer. But recently I just read that IIS cannot be used for a web site project, only for regular ASP .NET project. Is this true? Apparently this happens when the project is being run on a computer other than the one it was created on. I took a risk
and reinstalled my operating system thinking it would probably still run because it was the same computer even though I got the error when I tried to migrate it to another computer. I didn't specifically save the code to all the files because it would have
taken a lot of time and I figured it probably wouldn't be a problem and if it was I could find a way to get it to work, and now I can't get at my project and I'm hoping I don't have to do all my work over again. Is there anyone who knows a fix for this so
I can run my project? Or is there anyone who is sure that it would be a waste of my time to try to find a solution to this because it simply can't be fixed and that I'm going to have to start all over?
I posted this on the getting started forum, and all I got were two people suggesting to install IIS, which didn't fix the problem.
May 27, 2013 04:07 PM|smirnov|LINK
60394 sounds like this is a random port number generated by built-in express server at VS.NET. So, it should only work when clicking F5 (Debug - Start) in VS.NET. To check what port/properties your project has, go to Project - Properties and select
Web and see what server/port you have there. To setup IIS, you should create a new website (or use existing one) and point its default directory to the directory where your web site project is located.
May 27, 2013 08:44 PM|jimiwa|LINK
May 28, 2013 02:49 AM|smirnov|LINK
In VS.NET go to File-Open Web Site. Point it to the directory where your web site is located. Once project is opened, click F5 and see if it works.
May 31, 2013 10:31 AM|smirnov|LINK
Well, does it work if you create completely new website (new web site project) in VS.NET?
Jun 05, 2013 01:59 AM|kctt|LINK
I think previously when I googled the fix I saw to this error was to make the site run at a virtual directory in IIS because this site is looking for an address that is specific to the computer. But recently I just read that IIS cannot be used for a web site
project, only for regular ASP .NET project. Is this true?
I'm not sure about the difference between a web site project and regular Asp .Net project in your definition?
Asp.net website is still a website. IIS is good to host any type of website as long as script handler is configured (Php/asp/cgi/.Net).