Why Response.Redirect causes System.Threading.ThreadAbortException?

When I use Response.Redirect(…) to redirect my form to a new page I get the error: A first chance exception of type ‘System.Threading.ThreadAbortException’ occurred in mscorlib.dll An exception of type ‘System.Threading.ThreadAbortException’ occurred in mscorlib.dll but was not handled in user code My understanding of this is that the error is being caused by the webserver … Read more

Could not find default endpoint element

I’ve added a proxy to a webservice to a VS2008/.NET 3.5 solution. When constructing the client .NET throws this error: Could not find default endpoint element that references contract ‘IMySOAPWebService’ in the ServiceModel client configuration section. This might be because no configuaration file was found for your application or because no endpoint element matching this … Read more

.NET 3.5 JIT not working when running the application

The following code gives different output when running the release inside Visual Studio, and running the release outside Visual Studio. I’m using Visual Studio 2008 and targeting .NET 3.5. I’ve also tried .NET 3.5 SP1. When running outside Visual Studio, the JIT should kick in. Either (a) there’s something subtle going on with C# that … Read more