I am working on a web application, developing in VS 2012, and have lately been deploying fairly often to a test server. I keep a separate web.config for deployment, as I got tired of copying and pasting connection strings... Aside from the connection strings, the files are identical.
<compilation debug="true" targetFramework="4.5" />
I'm set to "Debug" in Configuration Manager.. To be clear, if I run the application in "Debug" mode (f5) then VS will break and display an error like so:
What isn't happening any more, is if I run without debugging (ctl+f5) the browser won't display the error/strack trace.. I need my stack trace!
<customErrors mode="Off" />
as well.. What gives?
EDIT: Even though I mention uploading this to a test server, the issues I'm having only relate to my local copy. When I run the hosted application on the test server (which points to a different db altogether) the application will show the errors and the stack trace when it breaks..
When I run my local development copy of the web app, with my local database, the application will either suppress the error if I run out of debug mode, or will break on the error in VS if I am in debug mode as depicted in the image above.
I'm looking to fix the issue that I'm having on my dev machine, so that I can quickly see an error and stack trace when not running in debug mode.