Errors resulting in YSOD when I deploy the app

I have an app that runs fine locally. When I deploy this app to our staging environment, errors that are normally caught are resulting in the 'Yellow Screen of Death', even though the errors are surrounded by Try/Catch blocks and are being logged with ELMAH.

I have no idea why this is the case. Normally the app will deal with the error and keep working. Can somebody suggest what could be causing this?

I don't know what useful info to supply here, so please ask and I'll fill in as much as I can.

Answers


Possibly sounds like a configuration issue. I'd suggest looking in the web.config in the <system.web> <customErrors... section.


Can you give more info on what exception you're seeing? Special cases like StackOverflowException are uncatchable.

http://msdn.microsoft.com/en-us/library/system.stackoverflowexception.aspx

StackOverflowException used to be catchable on old versions of .NET, but are not anymore. Are your machines running different versions of the framework?


You could be missing some dependencies. Make sure your staging environment has MVC installed.


It turns out it was a PEBKAC data-related error.


Need Your Help

How to implement a large container-like class?

c++ containers

I have a large class called "System" (I'd like change "System" to "House"). The system contains different types of objects, such as window, and door. The different types of objects cannot be treate...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.