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:
- Installed the x64 Visual Studio Remote Debugging Monitor (Version 11.0.51106.1).
- Ensured the Visual Studio Remote Debugging Monitor is allowed through Windows Firewall.
- The Remote Debugging Monitor app is running, waiting for a new connection.
Here's what I did in VS2012:
- Went to PROJECT - Website Properties
- Clicked on the "Web" item on the left menu
- 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."
- 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