IBatis.net将项目从VS2003转换为VS2008在加载时崩溃

时间:2010-03-02 19:34:05

标签: c# ibatis.net

该项目在2003年一直运作良好,但在2008年开放时我们现在得到以下错误。我试过从“附件”结果图中删除所有代码然后它只是进入下一个结果图并告诉我与那个相同的错误。有什么想法吗?

[错误] - 访问附件数据源 - 错误:数据连接配置无效。

描述性:Net.Autodata.Accessories.Exceptions.AccessoryConnectException:无法加载iBATIS.NET默认SQL MAP ---> IBatisNet.Common.Exceptions.ConfigurationException: - 加载SqlMap时发生错误。 - 初始化ResultMap - 发生错误。
- 检查附件。附件。 ---> IBatisNet.Common.Exceptions.ConfigurationException:无法配置名为“Accessories.Accessory”的ResultMap,原因:对象引用未设置为对象的实例。 ---> System.NullReferenceException:未将对象引用设置为对象的实例。    在IBatisNet.Common.Utilities.Objects.ObjectFactory.CreateFactory(类型typeToCreate,Type []类型)    at IBatisNet.DataMapper.Configuration.ResultMapping.ResultMap.GetChildNode(ConfigurationScope configScope)    在IBatisNet.DataMapper.Configuration.ResultMapping.ResultMap.Initialize(ConfigurationScope configScope)    ---内部异常堆栈跟踪结束---    在IBatisNet.DataMapper.Configuration.ResultMapping.ResultMap.Initialize(ConfigurationScope configScope)    在IBatisNet.DataMapper.Configuration.Serializers.ResultMapDeSerializer.Deserialize(XmlNode节点,ConfigurationScope configScope)    在IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.BuildResultMap()    在IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.ConfigureSqlMap()    在IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.Initialize()    在IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.Build(XmlDocument文档,DataSource dataSource,Boolean useConfigFileWatcher,Boolean isCallFromDao)    ---内部异常堆栈跟踪结束---    在IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.Build(XmlDocument文档,DataSource dataSource,Boolean useConfigFileWatcher,Boolean isCallFromDao)    在IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.Build(XmlDocument文档,布尔useConfigFileWatcher)    at IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.ConfigureAndWatch(String resource,ConfigureHandler configureDelegate)    在IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.ConfigureAndWatch(ConfigureHandler configureDelegate)    在IBatisNet.DataMapper.Mapper.InitMapper()    在IBatisNet.DataMapper.Mapper.Instance()    在C:\ Perforce \ Clients \ GM \ Accessories \ Editor \ main \ Editor.Processing \ AccessoryEditor.cs中的Net.Autodata.Accessories.Processing.Editor.AccessoryEditor..ctor():第94行    ---内部异常堆栈跟踪结束---    在C:\ Perforce \ Clients \ GM \ Accessories \ Editor \ main \ Editor.Processing \ AccessoryEditor.cs中的Net.Autodata.Accessories.Processing.Editor.AccessoryEditor..ctor():第98行    在C:\ Perforce \ Clients \ GM \ Accessories \ Editor \ main \ Editor \ AccessoryEditor.cs中的Net.Autodata.Accessories.Editor.AccessoryEditor.LoadEditor():1028行

1 个答案:

答案 0 :(得分:0)

项目最初使用.Net v1.1升级的IBatis DLL编译为2.0,现在它可以正常工作。