troubleshooting Question

Type initializer for class threw an exception

Avatar of skyzipper
skyzipperFlag for Afghanistan asked on
.NET ProgrammingVisual C++.NETMicrosoft Development
11 Comments1 Solution4633 ViewsLast Modified:
Hello experts,
I am trying to debug and application built with c#, and I am not that familiar with the language.  The application was built with 2005 and I upgraded to 2008.   I keep getting this error:  The type initializer for 'class name here' threw an exception.  Is this because I am missing a call to a new constructor?  Like I said not very familiar with c# most of the stuff i have worked with was in  Also could upgrading from 2005 to 2008 cause issues?
I have included a screen shot.  UI.mainApplication.loggedInUser = arg[0];  is where the program is stopping.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 11 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 11 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros