“/HotelMIS”应用程序中的服务器错误。
Argument 'You cannot create a dynamic field for a null value.' cannot be null.
参数名: You cannot create a dynamic field for a null value.
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.ArgumentNullException: Argument 'You cannot create a dynamic field for a null value.' cannot be null.
参数名: You cannot create a dynamic field for a null value.
源错误:
执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。 |
堆栈跟踪:
[ArgumentNullException: Argument 'You cannot create a dynamic field for a null value.' cannot be null.
参数名: You cannot create a dynamic field for a null value.]
Spring.Util.AssertUtils.ArgumentNotNull(Object argument, String name) +169
Spring.Reflection.Dynamic.SafeField..ctor(FieldInfo field) +63
Spring.Context.Support.WebSupportModule..cctor() +161
[TypeInitializationException: “Spring.Context.Support.WebSupportModule”的类型初始值设定项引发异常。]
[TargetInvocationException: 调用的目标发生了异常。]
System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck) +0
System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache) +103
System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache) +261
System.Activator.CreateInstance(Type type, Boolean nonPublic) +66
System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +1036
System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +114
System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture) +23
System.Web.HttpRuntime.CreateNonPublicInstance(Type type, Object[] args) +37
System.Web.HttpRuntime.CreateNonPublicInstance(Type type) +27
System.Web.Configuration.Common.ModulesEntry.Create() +25
System.Web.Configuration.HttpModulesSection.CreateModules() +208
System.Web.HttpApplication.InitModules() +54
System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers) +567
System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context) +301
System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +131
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +353 |
版本信息: Microsoft .NET Framework 版本:2.0.50727.832; ASP.NET 版本:2.0.50727.832
在公司用Spring.NET1.2和NHibernate.20写了一个小程序, 测试运行均通过,环境
是WIN2000, .NET2005, SQL2000, 程序中引用的是SPRING官方网站上下载Spring.NET1.2
中的例子所引用的相关动态链接库文件。
拷贝回家想继续完善一下,家里的环境是WIN2000,.NET2005,SQL2005, 运行出现上面的
错误提示,也就是“Spring.Context.Support.WebSupportModule”的类型初始值设定项引发
异常。]”, 百思不得其解。
按错误应该是跟WEB有关,初始化错误嘛,难道是IIS有问题, 停止,重启,没有用。
到网上去查找相关错误, 没有谁有这样的问题。
仔细看SPRING.NET的文档资料,也没有这方面的信息。
初始化就出错, 难道是自己的页面依赖注入出了问题, 把所有有页面依赖的页先全部从
项目中排除,只留最简单啥也没有的Default.aspx, 结果错误依旧。
总不至于是Sql2005跟SQL2000的原因吧,运行Spring.NET1.1的程序,没有问题。
难道是引用出了问题, 删除,重新引用,还是一样的错误。
干脆将spring.NET官方网站上的1.2.0M1,1.2.ORC1全下载下来。
结果是用1.2.0.20288版本就不会出现这和错误了。
这个真是有一点想不明白。