SwyxAdminApp.dll中出现“System.TypeInitializationException”类型的异常,但未在用户代码中处理 [英] An exception of type 'System.TypeInitializationException' occurred in SwyxAdminApp.dll but was not handled in user code

查看:257
本文介绍了SwyxAdminApp.dll中出现“System.TypeInitializationException”类型的异常,但未在用户代码中处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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();

这里我得到以下错误



SwyxAdminApp.dll中出现'System.TypeInitializationException'类型的异常,但未在用户代码中处理



附加信息:'SWConfigDataClientLib.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.

推荐答案

错误的含义是非常明显,但该怎么做却不是。



基本上,你试图创建一个LibManager实例,它的构造函数遇到问题,抛出异常。您将需要查阅LibManager类的文档以了解它的期望以及可能引发的原因。


或者,请联系撰写您正在使用的库以获取更多信息。
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.


这篇关于SwyxAdminApp.dll中出现“System.TypeInitializationException”类型的异常,但未在用户代码中处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆