Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Monday, May 27, 2013 3:45 PM
"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.
All replies (5)
Monday, May 27, 2013 4:07 PM
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.
Monday, May 27, 2013 8:44 PM
Everything worked on the original computer it was created on before I reinstalled Windows. No need to click F5 or Debug-Start. Now that I've reinstalled my operation and it can't recognize my project this is what I'm getting... Inside of my solution, my web project hs a blue circle with an exlamation point inside and next to it it says the project file or web cannot be found. If I right click on solution and choose properties, I have Common Properties and Configuration Properties. Inside of Common Properties I have Startup Priject, when I select that, everything on the right is blank. Nothing in single startup project. There is also project dependencies. Everything is blank. Code analysis Settings, everything blank, and debug source files actually shows some paths in it. Configuration properties has configuration inside of it and everything shows blank there too. I am using Visual Studio 2012. I see no option for web inside of properties.
Tuesday, May 28, 2013 2:49 AM
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.
Friday, May 31, 2013 10:31 AM
Well, does it work if you create completely new website (new web site project) in VS.NET?
Wednesday, June 5, 2013 1:59 AM
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).