Question

I have created an ASP.NET MVC 5 application in Visual Studio 2013, which runs fine using the Visual Studio debugger. I now want to serve it locally using IIS 7 running on Windows 7.

So, I publish as Web Deploy in Visual Studio to a specified folder. Then, in IIS Manager, I Add Web Site, whose physical address is that of this folder. Finally, I click on Manage Web Site -> Start.

Should this work as it is, or is there something else I need to do? As it stands, when I type in localhost to my browser, I get an error HTTP Error 404. The requested resource is not found.

Was it helpful?

Solution

You also need to see what port did you assign to that site and if that port is opened for in/out - going traffic in your Windows Firewall. Would not hurt to verify is there is any other applications using same port for any reason.

Application pool need to be verified as well.

When you done you need to put either DNS entry for your site or add your site to host file on machines from where you desire to have access to your site.

Easier way would be just access site using IP but in any case Firewall is a place to start.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top