解决方案 »

  1.   

    用户代码未处理 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: