[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Ignore exceptions from a referenced Assembly

Posted on 2011-10-24
Medium Priority
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

Accepted Solution

Gruff82 earned 2000 total points
ID: 37018486
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

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Simulator games are perfect for generating sample realistic data streams, especially for learning data analysis. It is even useful for demoing offerings such as Azure stream analytics, PowerBI etc.
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.
Suggested Courses

873 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