Quantcast
Viewing all articles
Browse latest Browse all 3509

How to get VS2012 to use IIS on server rather than built-in development server?

I have a situation where my app is running fine within the VS2012 IDE but crashes when I deploy it to a server running IIS7.  So I need to run it within the VS2012 IDE but use IIS rather than the built-in development server.

In my situation both my development machine ("WORKSTATION") and my server ("MULTIMEDIA") are running Windows 7 (64-bit).  IIS is only activated on the server.

I can access the deployed app from my development machine by typing this into the browser: http://MULTIMEDIA\Incentives ("Incentives" is the name of my app).  Though the app does crash, at least I know that the compiled, deployed code is being run.  So I figure that I can also run it from VS2012 on my development machine.

Here's what I did on the server:

  1. Installed the x64 Visual Studio Remote Debugging Monitor (Version 11.0.51106.1).
  2. Ensured the Visual Studio Remote Debugging Monitor is allowed through Windows Firewall.
  3. The Remote Debugging Monitor app is running, waiting for a new connection.

Here's what I did in VS2012:

  1. Went to PROJECT - Website Properties
  2. Clicked on the "Web" item on the left menu
  3. Underneath of the "Servers" section I chose "Use Custom Web Server" and then entered "http://MULTIMEDIA/Incentives" for the Server Url.  VS2012 displayed this error message: "Unable to start debugging on the web server.  Access is denied."
  4. Whenever I tried starting my app in Debug mode from my development machine, on the server the Remote Debugging Monitor app would report "Multimedia\Administrator connected".

Note: "Start Without Debugging" actually does work - in the same way that running the app directly from the browser works - but is of little use to me because I need to resolve why it's crashing.

I've read through everything I can find but have not been able to find a solution yet.  What am I failing to do?

Robert


Viewing all articles
Browse latest Browse all 3509

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>