调用工厂模式下 BLL层发生错误, 调用的目标发生了异常。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 用户代码未处理 System.TypeInitializationException Message=“AnSoft.BLL.UserManage”的类型初始值设定项引发异常。 Source=AnSoft.BLL TypeName=AnSoft.BLL.UserManage StackTrace: 在 AnSoft.BLL.UserManage..ctor(AccountType accountType) 在 hr.login.btnLogin_Click(Object sender, EventArgs e) 位置 F:\work\project\hr\hr\login.aspx.cs:行号 38 在 ExtAspNet.Button.OnClick(EventArgs e) 在 ExtAspNet.Button.RaisePostBackEvent(String eventArgument) 在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) 在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) InnerException: System.Reflection.TargetInvocationException Message=调用的目标发生了异常。 Source=mscorlib StackTrace: 在 System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) 在 System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache) 在 System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache) 在 System.Activator.CreateInstance(Type type, Boolean nonPublic) 在 System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) 在 System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) 在 System.Reflection.Assembly.CreateInstance(String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) 在 System.Reflection.Assembly.CreateInstance(String typeName) 在 AnSoft.DALFactory.DataAccess.CreateUserManage() 位置 F:\work\project\A32\AnSoft.DALFactory\DataAccess.cs:行号 67 在 AnSoft.BLL.UserManage..cctor() 位置 F:\work\project\A32\AnSoft.BLL\sys.UserManage.cs:行号 20 InnerException: System.TypeInitializationException Message=“AnSoft.SQLServerImp.UserManage”的类型初始值设定项引发异常。 Source=AnSoft.SQLServerImp TypeName=AnSoft.SQLServerImp.UserManage StackTrace: 在 AnSoft.SQLServerImp.UserManage..ctor() InnerException: System.NullReferenceException Message=未将对象引用设置到对象的实例。 Source=AnSoft.SQLServerImp StackTrace: 在 AnSoft.SQLServerImp.AppSqlHelper.get_SQLConnString() 位置 F:\work\project\A32\AnSoft.SQLServerImp\AppSqlHelper.cs:行号 26 在 AnSoft.SQLServerImp.UserManage..cctor() 位置 F:\work\project\A32\AnSoft.SQLServerImp\sys.UserManage.cs:行号 22 InnerException: 关于app.config文件的使用 c# 多语言:如何是状态行的文字也能多语言切换? XtraReports 打印出空行的问题 爱因斯坦的智力题 有WIN程序中,有关PictureBox的问题,大家帮我看看!!! 菜鸟级问题--当有错误时,竟然不弹出询问对话框就直接编译 想实现一个间隔数秒显示一张图片的效果??????? 问一个困惑的问题,c#做windows应用程序多还是做asp.net多? 怎样检测网络是否通畅? 数据库连接的问题。 求窗体答案 知道一个事件,怎么知道当前有哪些类的哪些方法注册了这个事件呢。。。
Message=“AnSoft.BLL.UserManage”的类型初始值设定项引发异常。
Source=AnSoft.BLL
TypeName=AnSoft.BLL.UserManage
StackTrace:
在 AnSoft.BLL.UserManage..ctor(AccountType accountType)
在 hr.login.btnLogin_Click(Object sender, EventArgs e) 位置 F:\work\project\hr\hr\login.aspx.cs:行号 38
在 ExtAspNet.Button.OnClick(EventArgs e)
在 ExtAspNet.Button.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
InnerException: System.Reflection.TargetInvocationException
Message=调用的目标发生了异常。
Source=mscorlib
StackTrace:
在 System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
在 System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache)
在 System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache)
在 System.Activator.CreateInstance(Type type, Boolean nonPublic)
在 System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
在 System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
在 System.Reflection.Assembly.CreateInstance(String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
在 System.Reflection.Assembly.CreateInstance(String typeName)
在 AnSoft.DALFactory.DataAccess.CreateUserManage() 位置 F:\work\project\A32\AnSoft.DALFactory\DataAccess.cs:行号 67
在 AnSoft.BLL.UserManage..cctor() 位置 F:\work\project\A32\AnSoft.BLL\sys.UserManage.cs:行号 20
InnerException: System.TypeInitializationException
Message=“AnSoft.SQLServerImp.UserManage”的类型初始值设定项引发异常。
Source=AnSoft.SQLServerImp
TypeName=AnSoft.SQLServerImp.UserManage
StackTrace:
在 AnSoft.SQLServerImp.UserManage..ctor()
InnerException: System.NullReferenceException
Message=未将对象引用设置到对象的实例。
Source=AnSoft.SQLServerImp
StackTrace:
在 AnSoft.SQLServerImp.AppSqlHelper.get_SQLConnString() 位置 F:\work\project\A32\AnSoft.SQLServerImp\AppSqlHelper.cs:行号 26
在 AnSoft.SQLServerImp.UserManage..cctor() 位置 F:\work\project\A32\AnSoft.SQLServerImp\sys.UserManage.cs:行号 22
InnerException: