2

I'm running Visual Studio 2013 Ultimate on a Windows 8.1 (with Update 1) laptop, and I would like to debug an ASP.NET web forms project against IIS, which is installed on the local Windows 8.1 instance.

Previous versions of Visual Studio had an option to use IIS Express or full IIS, but I cannot find that option in the Project properties anymore.

How do I deploy & debug my ASP.NET web forms project in full IIS?

EDIT: When I right-click on my project, I see this:

Right-click context menu

And then if I click on "Properties Window" I see this:

enter image description here

1
  • I'm not quite sure what you mean. I created a new VS2013 C# ASP.NET web forms project, and I'd like to debug/deploy it to IIS. Commented Apr 17, 2014 at 23:11

2 Answers 2

3

This is one way to have your project available in IIS:

  • Press Ctrl+X, type inetmgr

or

  • Open your IIS Manager Application.

  • Expand the tree on the left.

  • Add WebSite

    • Give a name to the website and port
    • For file location provide the same file location were your project is.

Assuming your port number is 3000 just simply type http://localhost:3000 in your browser.

Now from Visual Studio go to:

  • file Open...
    • WebSite (you will see that IIS is available on the left).
    • Open your new web site

This will let you debug from IIS and any changes you make will be directly made on IIS as well.

Sign up to request clarification or add additional context in comments.

Comments

1

I just double checked one of my local Web Forms applications locally running in Visual Studio 2013 Ultimate on Windows 8.1. The settings are still there. If you open the project properties for your Web Forms project, you should see the following:

Web Project Properties Pane

After selecting Local IIS, setting a port, and saving, you should be walked through the process of configuring a Virtual Directory for your site (if one isn't already configured).

EDIT

After looking at your edit, it looks like you've created a Web Site Project rather than a Web Application Project. You can read about the various differences here:

Web Application Projects versus Web Site Projects in Visual Studio

If you haven't written any significant code yet, I'd suggest deleting the Web Site Project and creating a new Web Application Project. You'll then see the settings as described above.

If you really want to keep the Web Site Project, you'll have to configure the site in IIS and then open it in Visual Studio using the 'Open Web Site...' dialog (and then choosing Local IIS as the source):

Open Web Site Dialog

2 Comments

How do I get to that Properties page? VS2013 doesn't bring that up, when I right-click the project and select Properties Window.
Thanks for the edit ... you are correct, I created a "website" instead of a "web project."

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.