I have a website developed in ASP.Net 2.0 that is throwing the error
"Exception has been thrown by the target of an invocation"
in the production environment. It was not throwing this error in development.
The source is 'mscorlib', and the stack trace says the error at
System.RuntimeMethodHandle._InvokeMethodFast.
The only thing I've changed since my last upload to production is that I've started using Membership controls (Login, LoginView), and have added a few more stored procedures and tables, etc. The membership depends upon a custom provider I've written.
Anybody have a clue why this could be happening?
I know its kind of odd but I experienced this error for a c# application and finally I found out the problem is the Icon of the form! when I changed it everything just worked fine.
I should say that I had this error just in XP not in 7 or 8 .