loiclacombe / mybatisnet

Automatically exported from code.google.com/p/mybatisnet
0 stars 0 forks source link

ibatinet exception #33

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What version of the MyBatis.NET are you using?
the version of the MyBatis.NET is 1.5.1.

Please describe the problem.  Unit tests are best!
I develop a project by visual studio 2010, and use the MyBatis.NET framework 
into my project, but there is a exception appearing when i try to debug the 
solution. the exception message described as below:
未声明“providerName”特性。
堆栈跟踪: 
[XmlSchemaValidationException: 未声明“providerName”特性。]
   System.Xml.Schema.XmlSchemaValidator.SendValidationEvent(XmlSchemaValidationException e, XmlSeverityType severity) +1585478
   System.Xml.Schema.XmlSchemaValidator.SendValidationEvent(String code, String arg) +120
   System.Xml.Schema.XmlSchemaValidator.ValidateAttribute(String lName, String ns, XmlValueGetter attributeValueGetter, String attributeStringValue, XmlSchemaInfo schemaInfo) +4025619
   System.Xml.Schema.XmlSchemaValidator.ValidateAttribute(String localName, String namespaceUri, XmlValueGetter attributeValue, XmlSchemaInfo schemaInfo) +31
   System.Xml.XsdValidatingReader.ValidateAttributes() +204
   System.Xml.XsdValidatingReader.ProcessElementEvent() +168
   System.Xml.XsdValidatingReader.ProcessReaderEvent() +53
   System.Xml.XsdValidatingReader.Read() +49
   IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.ValidateSchema(XmlNode section, String schemaFileName) +485
   IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.Build(XmlDocument document, DataSource dataSource, Boolean useConfigFileWatcher, Boolean isCallFromDao) +387

[ConfigurationException: 
- The error occurred while Validate SqlMap config.]
   IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.Build(XmlDocument document, DataSource dataSource, Boolean useConfigFileWatcher, Boolean isCallFromDao) +497
   IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.Build(XmlDocument document, Boolean useConfigFileWatcher) +46
   IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.ConfigureAndWatch(String resource, ConfigureHandler configureDelegate) +276
   IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.ConfigureAndWatch(ConfigureHandler configureDelegate) +43
   IBatisNet.DataMapper.Mapper.InitMapper() +111
   IBatisNet.DataMapper.Mapper.Instance() +108
   SqlMap.SqlMapBase..cctor() in D:\Study\Tools\NessaryBin\SqlMapBase1.5.1\SqlMap\SqlMapBase.cs:32

[TypeInitializationException: 
“SqlMap.SqlMapBase”的类型初始值设定项引发异常。]
   SqlMap.SqlMapBase.GetDataSet(String strTag, Object objParam) in D:\Study\Tools\NessaryBin\SqlMapBase1.5.1\SqlMap\SqlMapBase.cs:121
   Practice.Access.DengFeng.Sys_deptinfoDAL.GetList(Sys_deptinfo model) in D:\Study\Program\MyProject\IBatisProject\MyIBatis\SqlMapProject\Access\DengFeng\Sys_deptinfoDAL.cs:60
   Practice.Business.DengFeng.Sys_deptinfoBLL.GetList(Sys_deptinfo model) in D:\Study\Program\MyProject\IBatisProject\MyIBatis\SqlMapProject\Business\DengFeng\Sys_deptinfoBLL.cs:58
   WebUI.Default.Page_Load(Object sender, EventArgs e) in D:\Study\Program\MyProject\IBatisProject\MyIBatis\SqlMapProject\WebUI\Default.aspx.cs:19
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +91
   System.Web.UI.Control.LoadRecursive() +74
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207.

In fact, this kind of exceptiong have occured several times, and i still can 
not find out where there is somethign wrong, so i send my project to you, i 
hope you can find out the where the problem occured.

What is the expected output? What do you see instead?
this project is a testing project, i wanna to show a datatable in the web.

Please provide any additional information below.

Original issue reported on code.google.com by veey...@yeah.net on 18 Aug 2011 at 1:31

Attachments: