Problem : From time to time I get a System.Threading.ThreadStateException when attempting to restart a thread. The code in question […]
Tag: exception
C# Overflow not Working? How to enable Overflow Checking?
Problem : I was working around with C# and noticed that when I had a very large integer and attempted […]
How can catched exception be null (not NullReferenceException)?
Problem : I have run into a rather weird little problem. In the following code I can not understand how […]
Why is .NET exception not caught by try/catch block?
Problem : I’m working on a project using the ANTLR parser library for C#. I’ve built a grammar to parse […]
WCF 4.0 – Returning JSON WebFaultException with REST Service Template
Problem : I am using the WCF REST Service Template 40(CS). I am throwing WebFaultExceptions as such: throw new WebFaultException<string>(“Error […]
HASP HL working demo needed for C#
Problem : Okay. Well, I know this question has a good chance of being closed within the first 10 minutes, […]
What is the best practice for capturing all inner exception details? [duplicate]
Problem : This question already has answers here: What is the proper way to display the full InnerException? (10 answers) […]
Could not load file or assembly stdole
Problem : Just installed VS2015 side by side with VS2010… Application in issue was built using VS2010 (set to use […]
nUnit Assert.That(method,Throws.Exception) not catching exceptions
Problem : Can someone tell me why this unit test that checks for exceptions fails? Obviously my real test is […]
What does “throw;” by itself do? [duplicate]
Problem : This question already has answers here: Closed 10 years ago. Possible Duplicate: difference between throw and throw new […]