Posts By: Anuraj P

How to pause / resume a thread in C#

Posted by & filed under .Net, ASP.Net, Windows Forms.

Here is the code snippet which will help you to pause / resume a thread using ManualResetEvent class. Both Suspend() and Resume() methods are deprecated in .Net Framework. So both of these methods not recommended to use. And to pause the thread, you can use And to resume you can use You can find more [...]

Unexpected error encountered opening Visual Studio project

Posted by & filed under .Net, .Net 3.0 / 3.5, Version Control, Visual Studio, Windows Forms.

Today while opening a win-form project, I got an exception message like this from Visual Studio. And then the Visual Studio project was not available in the solution. All the project said was “The project file cannot be loaded.” This error is because the project was under Subversion version control, and I don’t have Subversion [...]

Retrieving the COM class factory for component failed due to the following error: 800702e4.

Posted by & filed under .Net, .Net 4.0, Office Interoperability, Visual Studio, Windows Forms.

While working on some outlook C# application I got a COM exception like this. Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80080005. My code was simply straight forward, I was just creating the instance of the outlook application. And this code was used in a different [...]

Assembly Binding Redirection in .Net

Posted by & filed under .Net, .Net 4.0, ASP.Net, Windows Forms.

Today I come across an application crash due to version mismatch. The application executable was compiled using version 1.0.x.x, and we were using 6.2.x.x. Due to this version mismatch application was crashing. Unfortunately we don’t have the source code of this application with us. Later I got one solution using bindingRedirect. This configuration element will [...]