Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

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:

enter image description here

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.

share|improve this question
Are you accessing the test server locally (ie - localhost/yourapp)? AFAIK, the default error pages won't show the stack track for a remote request. – Richard Deeming 18 hours ago
No, I'm not.. I'm accessing a local DB. My development and test databases are separate. – Glendale 17 hours ago
If you need to see the stack traces, you'll either need to load the site from the test server, or use something like ELMAH or Health Monitoring to get the details. – Richard Deeming 17 hours ago
I don't understand what the test server has to do with anything though.. I'll update the question so that it's more clear – Glendale 16 hours ago

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.