0

I've enabled IIS using "Add/Remote Windows Features" and I'm trying to run some ASP.NET code from localhost. I've not done anything else to configure it. Is there any additional configuration I need to do in order to be able to test locally?

I'm running Windows 8.

2 Answers 2

0

First of all you need to make sure you've enabled ASP.NET from within "Add/Remove Windows Features" as well. Under the IIS tree, you need to enable WWW Services -> ASP.NET

Once ASP.NET has been installed, if you're using Visual Studio it can configure IIS for you. You'll need to run VS as Administrator, then open your project. Open the web project properties and select the "Web" tab. From there you'll want to choose "Use Local IIS Web server" and setup the url you'd like to use.

Here is a screenshot of how to get to the project properties. In this image "MVC5Demo" is a web application project:

Web Project Properties

7
  • Where do I find the web project properties?
    – muttley91
    Aug 23, 2013 at 19:35
  • Right click on the web project in the Solution Explorer and select "Properties"
    – heavyd
    Aug 23, 2013 at 19:37
  • What do you mean by web project? I'm right clicking on the solution but I don't see a window like you describe (as in, no Web tab).
    – muttley91
    Aug 23, 2013 at 19:39
  • I've updated my answer. Are you sure your project is a Web Application project? Also what version of VS are you using?
    – heavyd
    Aug 23, 2013 at 19:56
  • Visual Studio 2012. It's a WebSite, having nothing to do with MVC (as your screenshot implies).
    – muttley91
    Aug 23, 2013 at 20:02
0

I ended up getting my code to run by installing Abyss Web Server. It was far easier to set up for this sort of thing than IIS.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .