Click here to Skip to main content
15,914,905 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
private LibManager connect()
{
ClassTrace.TraceSwitch.Level = TraceLevel.Verbose;
this.libManager = new LibManager();
this.libManager.WSBaseUrl = "localhost";
this.libManager.AuthenticationMode = SProxyObject.AuthenticationMode.UsernamePassword;
this.libManager.Username = "Administrator@cloudphone.com";
this.libManager.Password = "SwyxCloudAlpha";

return this.libManager;
}


this.libManager = new LibManager();
here I am getting following Error

An exception of type 'System.TypeInitializationException' occurred in SwyxAdminApp.dll but was not handled in user code

Additional information: The type initializer for 'SWConfigDataClientLib.LibManager' threw an exception.
Posted

1 solution

The meaning of the error is pretty obvious, but what to do about it isn't.

Basically, you tried to create an instance of LibManager and it's constructor ran into a problem, throwing an exception. You'll have to consult the documentation on the LibManager class to find out what it was expecting and why is may have thrown.

Or, contact the people who wrote the library you're using for more information.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900