asp.net mvc项目,本地调试运行正常,发布到服务器报错? 5
[NullReferenceException:未将对象引用设置到对象的实例。]YQBlog.General.DefaultConfigFileManager.LoadC...
[NullReferenceException: 未将对象引用设置到对象的实例。]
YQBlog.General.DefaultConfigFileManager.LoadConfig(DateTime& fileoldchange, String configFilePath, IConfigInfo configinfo, Boolean checkTime) in F:\我的项目\51aspx_YQBlog12\YQBlog\General\DefaultConfigFileManager.cs:88
YQBlog.General.GeneralConfigFileManager.LoadConfig() in F:\我的项目\51aspx_YQBlog12\YQBlog\General\GeneralConfigFileManager.cs:85
YQBlog.General.GeneralConfigs..cctor() in F:\我的项目\51aspx_YQBlog12\YQBlog\General\GeneralConfigs.cs:26
[TypeInitializationException: “YQBlog.General.GeneralConfigs”的类型初始值设定项引发异常。]
YQBlog.General.GeneralConfigs.GetConfig() in F:\我的项目\51aspx_YQBlog12\YQBlog\General\GeneralConfigs.cs:49
YQBlog.General.WebUtils..cctor() in F:\我的项目\51aspx_YQBlog12\YQBlog\General\WebUtils.cs:26
[TypeInitializationException: “YQBlog.General.WebUtils”的类型初始值设定项引发异常。]
YQBlog.MvcApplication.Session_Start(Object sender, EventArgs e) in F:\我的项目\51aspx_YQBlog12\YQBlog\Global.asax.cs:176
System.Web.SessionState.SessionStateModule.RaiseOnStart(EventArgs e) +165
System.Web.SessionState.SessionStateModule.CompleteAcquireState() +322
System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData) +1130
System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +208
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +163 展开
YQBlog.General.DefaultConfigFileManager.LoadConfig(DateTime& fileoldchange, String configFilePath, IConfigInfo configinfo, Boolean checkTime) in F:\我的项目\51aspx_YQBlog12\YQBlog\General\DefaultConfigFileManager.cs:88
YQBlog.General.GeneralConfigFileManager.LoadConfig() in F:\我的项目\51aspx_YQBlog12\YQBlog\General\GeneralConfigFileManager.cs:85
YQBlog.General.GeneralConfigs..cctor() in F:\我的项目\51aspx_YQBlog12\YQBlog\General\GeneralConfigs.cs:26
[TypeInitializationException: “YQBlog.General.GeneralConfigs”的类型初始值设定项引发异常。]
YQBlog.General.GeneralConfigs.GetConfig() in F:\我的项目\51aspx_YQBlog12\YQBlog\General\GeneralConfigs.cs:49
YQBlog.General.WebUtils..cctor() in F:\我的项目\51aspx_YQBlog12\YQBlog\General\WebUtils.cs:26
[TypeInitializationException: “YQBlog.General.WebUtils”的类型初始值设定项引发异常。]
YQBlog.MvcApplication.Session_Start(Object sender, EventArgs e) in F:\我的项目\51aspx_YQBlog12\YQBlog\Global.asax.cs:176
System.Web.SessionState.SessionStateModule.RaiseOnStart(EventArgs e) +165
System.Web.SessionState.SessionStateModule.CompleteAcquireState() +322
System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData) +1130
System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +208
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +163 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询