Posts

Showing posts from November, 2013

An unhandled exception of type 'System.StackOverflowExceoption' occurred in mscorlib.dll [Cannot evaluate expression because the current thread is in stack overflow state] using C#

I had a strange problem this morning. I complied a project and ran it with no problems at all. This project generated Access 2010 file and saved it. Everything was fine until I tried to load that Access file within my project. This is when I received following error An unhandled exception of type 'System.StackOverflowExceoption' occurred in mscorlib.dll Detailed: Cannot evaluate expression because the current thread is in stack overflow state Project was working fine last night when i closed it. No one changes anything then how can it produce errors automatically! I Googled the errors and tried many solutions but nothing was working for me. I re-referenced the DLLs but no. I left everything and start thinking ...... Anything I missed... !!! and I realized that I missed one step Run as Administrator I did not run Visual Studio 2010 with "Run as Administrator" which was causing problem in my scenario. It is very small bit which you can ignore easily b...