为了账号安全,请及时绑定邮箱和手机立即绑定

用spring.net1.3+Nhibernate2.1.2.4000整合开发项目配置好后出现问题

用spring.net1.3+Nhibernate2.1.2.4000整合开发项目配置好后出现问题

GCT1015 2018-12-06 19:35:44
Server Error in '/' Application.--------------------------------------------------------------------------------Value cannot be null.Parameter name: field  Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.  Exception Details:  System.ArgumentNullException:Value cannot be null.Parameter name: fieldSource Error:  An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.   Stack Trace:  [ArgumentNullException: Value cannot be null.Parameter name: field]System.Reflection.Emit.DynamicILGenerator.Emit(OpCode opcode, FieldInfo field) +9501978Spring.Web.Support.<>c__DisplayClass5.<GetGetControlsDelegate>b__4() +446Spring.Util.SecurityCritical.ExecutePrivileged(IStackWalk permission, PrivilegedCallback callback) +53Spring.Web.Support.ControlAccessor.GetGetControlsDelegate() +174Spring.Web.Support.ControlAccessor..cctor() +8[TypeInitializationException: The type initializer for 'Spring.Web.Support.ControlAccessor' threw an exception.]Spring.Web.Support.ControlAccessor..ctor(Control control) +0Spring.Web.Support.ControlInterceptor.EnsureControlCollectionIntercepted(IApplicationContext defaultApplicationContext, Control control) +58Spring.Web.Support.ControlInterceptor.EnsureControlIntercepted(IApplicationContext defaultApplicationContext, Control control) +56Spring.Web.Support.AbstractHandlerFactory.ApplyDependencyInjectionInfrastructure(IHttpHandler handler, IApplicationContext applicationContext) +62Spring.Web.Support.AbstractHandlerFactory.GetHandler(HttpContext context, String requestType, String url, String physicalPath) +409Spring.Web.Support.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String url, String physicalPath) +17System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +203System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +128System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +184 --------------------------------------------------------------------------------Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
查看完整描述

2 回答

?
智慧大石

TA贡献1946条经验 获得超3个赞

是哪步报错?初始化时错误,还是调用时出错?先检查下配置文件。

查看完整回答
反对 回复 2019-01-21
  • 2 回答
  • 0 关注
  • 338 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信