Ignore exceptions from a referenced Assembly

Posted on 2011-10-24
Last Modified: 2012-05-12

When I debug a project that contains a file path reference to another assembly and an exception is caught and handled in that assembly, VS will still stop and show me the exception.  How do I get VS to ignore the exception?

I'm using the Unity application block from microsoft and at first, VS studio would not stop on exceptions from UNITY assemblies.  But then I had to apply a strong name license to my application, which caused me to recompile the UNITY assemblies.   Now whenever I debug my code, its stops on Exceptions that are handled with in the UNITY assemblies.  Its very annoying to have to press f5 everything I debug my app.

Question by:OFGemini
    1 Comment
    LVL 4

    Accepted Solution

    Hi OFGemini,

    Within VS goto Debug -> Options and Settings ensure "Enable Just My Code (Managed Only)" is checked.

    Then goto Debug -> Exceptions and ensure Thrown is unticked and User-Unhandled is ticked.

    Hope this helps.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
    Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
    This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
    The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now