I'm trying to evaluate iBatis to check if it will be useful for me. I've converted my existing application to use iBatis but I've got several errors when trying it to run (compilation was successfull).
I know that it could be that this is due to my lack of knowledge so I've tried tutorial application downloaded from: http://prdownloads.sourceforge.net/ibatisnet/Tutorial-1.2.1.zip?download Unfortunately I've got the same bugs related to SqlMapConfig.xsd as from my application. I'm using IBatisNet.DataMapper-bin-1.5.1, .NET 1.1, Visual Studio 2003. Attachments contains all details. First I've got "Cannot load schema..." error message. I've tried to copy all 3 xsd (SqlMapConfig.xsd, SqlMap.xsd, provider.xsd) files into all possible places within tutorial directory. Also I've tried to include xsd file into the VS solution as a resource but error message haven't changed. So in the end I've copied SqlMapConfig.xsd as message Could not find file "c:\winnt\system32\SqlMapConfig.xsd" suggest it. I've got new error message which is completely not understandable for me. I'm beginner with iBatis so I'm not able to tackle with this issue myself - please help with running this tutorial. Regards, RobertS
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <!-- saved from url=(0049)http://localhost/ibatistutorial/Forms/Person.aspx --> <HTML><HEAD><TITLE>Invalid SqlMap.config document. cause :Cannot load schema for the namespace '' - Could not find file "c:\winnt\system32\SqlMapConfig.xsd".. An error occurred at , (1, 2). The 'sqlMapConfig' element is not declared. An error occurred at , (1, 2). The 'properties' element is not declared. An error occurred at , (1, 119). Could not find schema information for the attribute 'resource'. An error occurred at , (1, 130). The 'settings' element is not declared. An error occurred at , (1, 162). The 'setting' element is not declared. An error occurred at , (1, 172). Could not find schema information for the attribute 'useStatementNamespaces'. An error occurred at , (1, 180). The 'setting' element is not declared. An error occurred at , (1, 214). Could not find schema information for the attribute 'cacheModelsEnabled'. An error occurred at , (1, 222). The 'database' element is not declared. An error occurred at , (1, 262). The 'provider' element is not declared. An error occurred at , (1, 272). Could not find schema information for the attribute 'name'. An error occurred at , (1, 281). The 'dataSource' element is not declared. An error occurred at , (1, 303). Could not find schema information for the attribute 'name'. An error occurred at , (1, 314). Could not find schema information for the attribute 'connectionString'. An error occurred at , (1, 336). The 'sqlMaps' element is not declared. An error occurred at , (1, 389). The 'sqlMap' element is not declared. An error occurred at , (1, 398). Could not find schema information for the attribute 'resource'. An error occurred at , (1, 405).</TITLE> <META http-equiv=Content-Type content="text/html; charset=windows-1252"> <STYLE>BODY { FONT-WEIGHT: normal; FONT-SIZE: 0.7em; COLOR: black; FONT-FAMILY: "Verdana" } P { MARGIN-TOP: -5px; FONT-WEIGHT: normal; COLOR: black; FONT-FAMILY: "Verdana" } B { MARGIN-TOP: -5px; FONT-WEIGHT: bold; COLOR: black; FONT-FAMILY: "Verdana" } H1 { FONT-WEIGHT: normal; FONT-SIZE: 18pt; COLOR: red; FONT-FAMILY: "Verdana" } H2 { FONT-WEIGHT: normal; FONT-SIZE: 14pt; COLOR: maroon; FONT-FAMILY: "Verdana" } PRE { FONT-SIZE: 0.9em; FONT-FAMILY: "Lucida Console" } .marker { FONT-WEIGHT: bold; COLOR: black; TEXT-DECORATION: none } .version { COLOR: gray } .error { MARGIN-BOTTOM: 10px } .expandable { FONT-WEIGHT: bold; CURSOR: hand; COLOR: navy; TEXT-DECORATION: underline } </STYLE> <META content="MSHTML 6.00.2800.1555" name=GENERATOR></HEAD> <BODY bgColor=white><SPAN> <H1>Server Error in '/iBatisTutorial' Application. <HR width="100%" color=silver SIZE=1> </H1> <H2><I>Invalid SqlMap.config document. cause :Cannot load schema for the namespace '' - Could not find file "c:\winnt\system32\SqlMapConfig.xsd".. An error occurred at , (1, 2). The 'sqlMapConfig' element is not declared. An error occurred at , (1, 2). The 'properties' element is not declared. An error occurred at , (1, 119). Could not find schema information for the attribute 'resource'. An error occurred at , (1, 130). The 'settings' element is not declared. An error occurred at , (1, 162). The 'setting' element is not declared. An error occurred at , (1, 172). Could not find schema information for the attribute 'useStatementNamespaces'. An error occurred at , (1, 180). The 'setting' element is not declared. An error occurred at , (1, 214). Could not find schema information for the attribute 'cacheModelsEnabled'. An error occurred at , (1, 222). The 'database' element is not declared. An error occurred at , (1, 262). The 'provider' element is not declared. An error occurred at , (1, 272). Could not find schema information for the attribute 'name'. An error occurred at , (1, 281). The 'dataSource' element is not declared. An error occurred at , (1, 303). Could not find schema information for the attribute 'name'. An error occurred at , (1, 314). Could not find schema information for the attribute 'connectionString'. An error occurred at , (1, 336). The 'sqlMaps' element is not declared. An error occurred at , (1, 389). The 'sqlMap' element is not declared. An error occurred at , (1, 398). Could not find schema information for the attribute 'resource'. An error occurred at , (1, 405). </I></H2></SPAN><FONT face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "><B>Description: </B>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. <BR><BR><B>Exception Details: </B>IBatisNet.Common.Exceptions.ConfigurationException: Invalid SqlMap.config document. cause :Cannot load schema for the namespace '' - Could not find file "c:\winnt\system32\SqlMapConfig.xsd".. An error occurred at , (1, 2). The 'sqlMapConfig' element is not declared. An error occurred at , (1, 2). The 'properties' element is not declared. An error occurred at , (1, 119). Could not find schema information for the attribute 'resource'. An error occurred at , (1, 130). The 'settings' element is not declared. An error occurred at , (1, 162). The 'setting' element is not declared. An error occurred at , (1, 172). Could not find schema information for the attribute 'useStatementNamespaces'. An error occurred at , (1, 180). The 'setting' element is not declared. An error occurred at , (1, 214). Could not find schema information for the attribute 'cacheModelsEnabled'. An error occurred at , (1, 222). The 'database' element is not declared. An error occurred at , (1, 262). The 'provider' element is not declared. An error occurred at , (1, 272). Could not find schema information for the attribute 'name'. An error occurred at , (1, 281). The 'dataSource' element is not declared. An error occurred at , (1, 303). Could not find schema information for the attribute 'name'. An error occurred at , (1, 314). Could not find schema information for the attribute 'connectionString'. An error occurred at , (1, 336). The 'sqlMaps' element is not declared. An error occurred at , (1, 389). The 'sqlMap' element is not declared. An error occurred at , (1, 398). Could not find schema information for the attribute 'resource'. An error occurred at , (1, 405). <BR><BR><B>Source Error:</B> <BR><BR> <TABLE width="100%" bgColor=#ffffcc> <TBODY> <TR> <TD><CODE><PRE> Line 11: public SqlMapper Mapper () Line 12: { <FONT color=red>Line 13: return IBatisNet.DataMapper.Mapper.Instance (); </FONT>Line 14: } Line 15: }</PRE></CODE></TD></TR></TBODY></TABLE><BR><B>Source File: </B>D:\Programs\devel\IBatisNet.DataMapper-bin-1.5.1\tutorial\Model\Helper.cs<B> Line: </B>13 <BR><BR><B>Stack Trace:</B> <BR><BR> <TABLE width="100%" bgColor=#ffffcc> <TBODY> <TR> <TD><CODE><PRE> [ConfigurationException: Invalid SqlMap.config document. cause :Cannot load schema for the namespace '' - Could not find file "c:\winnt\system32\SqlMapConfig.xsd".. An error occurred at , (1, 2). The 'sqlMapConfig' element is not declared. An error occurred at , (1, 2). The 'properties' element is not declared. An error occurred at , (1, 119). Could not find schema information for the attribute 'resource'. An error occurred at , (1, 130). The 'settings' element is not declared. An error occurred at , (1, 162). The 'setting' element is not declared. An error occurred at , (1, 172). Could not find schema information for the attribute 'useStatementNamespaces'. An error occurred at , (1, 180). The 'setting' element is not declared. An error occurred at , (1, 214). Could not find schema information for the attribute 'cacheModelsEnabled'. An error occurred at , (1, 222). The 'database' element is not declared. An error occurred at , (1, 262). The 'provider' element is not declared. An error occurred at , (1, 272). Could not find schema information for the attribute 'name'. An error occurred at , (1, 281). The 'dataSource' element is not declared. An error occurred at , (1, 303). Could not find schema information for the attribute 'name'. An error occurred at , (1, 314). Could not find schema information for the attribute 'connectionString'. An error occurred at , (1, 336). The 'sqlMaps' element is not declared. An error occurred at , (1, 389). The 'sqlMap' element is not declared. An error occurred at , (1, 398). Could not find schema information for the attribute 'resource'. An error occurred at , (1, 405). ] IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.ValidateSchema(XmlNode section, String schemaFileName) IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.Build(XmlDocument document, DataSource dataSource, Boolean useConfigFileWatcher, Boolean isCallFromDao) [ConfigurationException: - The error occurred while Validate SqlMap config. - The error occurred in Cannot load schema for the namespace '' - Could not find file "c:\winnt\system32\SqlMapConfig.xsd".. An error occurred at , (1, 2). The 'sqlMapConfig' element is not declared. An error occurred at , (1, 2). The 'properties' element is not declared. An error occurred at , (1, 119). Could not find schema information for the attribute 'resource'. An error occurred at , (1, 130). The 'settings' element is not declared. An error occurred at , (1, 162). The 'setting' element is not declared. An error occurred at , (1, 172). Could not find schema information for the attribute 'useStatementNamespaces'. An error occurred at , (1, 180). The 'setting' element is not declared. An error occurred at , (1, 214). Could not find schema information for the attribute 'cacheModelsEnabled'. An error occurred at , (1, 222). The 'database' element is not declared. An error occurred at , (1, 262). The 'provider' element is not declared. An error occurred at , (1, 272). Could not find schema information for the attribute 'name'. An error occurred at , (1, 281). The 'dataSource' element is not declared. An error occurred at , (1, 303). Could not find schema information for the attribute 'name'. An error occurred at , (1, 314). Could not find schema information for the attribute 'connectionString'. An error occurred at , (1, 336). The 'sqlMaps' element is not declared. An error occurred at , (1, 389). The 'sqlMap' element is not declared. An error occurred at , (1, 398). Could not find schema information for the attribute 'resource'. An error occurred at , (1, 405). .] IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.Build(XmlDocument document, DataSource dataSource, Boolean useConfigFileWatcher, Boolean isCallFromDao) IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.Build(XmlDocument document, Boolean useConfigFileWatcher) IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.ConfigureAndWatch(String resource, ConfigureHandler configureDelegate) IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.ConfigureAndWatch(ConfigureHandler configureDelegate) IBatisNet.DataMapper.Mapper.InitMapper() IBatisNet.DataMapper.Mapper.Instance() iBatisTutorial.Model.Helper.Mapper() in D:\Programs\devel\IBatisNet.DataMapper-bin-1.5.1\tutorial\Model\Helper.cs:13 iBatisTutorial.Model.PersonHelper.SelectAll() in D:\Programs\devel\IBatisNet.DataMapper-bin-1.5.1\tutorial\Model\PersonHelper.cs:17 iBatisTutorial.Web.Forms.PersonPage.List_Load() in d:\programs\devel\ibatisnet.datamapper-bin-1.5.1\tutorial\webview\forms\person.aspx.cs:24 iBatisTutorial.Web.Forms.PersonPage.Page_Load(Object sender, EventArgs e) in d:\programs\devel\ibatisnet.datamapper-bin-1.5.1\tutorial\webview\forms\person.aspx.cs:88 System.Web.UI.Control.OnLoad(EventArgs e) System.Web.UI.Control.LoadRecursive() System.Web.UI.Page.ProcessRequestMain() </PRE></CODE></TD></TR></TBODY></TABLE><BR> <HR width="100%" color=silver SIZE=1> <B>Version Information:</B> Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573 </FONT><!-- [ConfigurationException]: Invalid SqlMap.config document. cause :Cannot load schema for the namespace '' - Could not find file "c:\winnt\system32\SqlMapConfig.xsd".. An error occurred at , (1, 2). The 'sqlMapConfig' element is not declared. An error occurred at , (1, 2). The 'properties' element is not declared. An error occurred at , (1, 119). Could not find schema information for the attribute 'resource'. An error occurred at , (1, 130). The 'settings' element is not declared. An error occurred at , (1, 162). The 'setting' element is not declared. An error occurred at , (1, 172). Could not find schema information for the attribute 'useStatementNamespaces'. An error occurred at , (1, 180). The 'setting' element is not declared. An error occurred at , (1, 214). Could not find schema information for the attribute 'cacheModelsEnabled'. An error occurred at , (1, 222). The 'database' element is not declared. An error occurred at , (1, 262). The 'provider' element is not declared. An error occurred at , (1, 272). Could not find schema information for the attribute 'name'. An error occurred at , (1, 281). The 'dataSource' element is not declared. An error occurred at , (1, 303). Could not find schema information for the attribute 'name'. An error occurred at , (1, 314). Could not find schema information for the attribute 'connectionString'. An error occurred at , (1, 336). The 'sqlMaps' element is not declared. An error occurred at , (1, 389). The 'sqlMap' element is not declared. An error occurred at , (1, 398). Could not find schema information for the attribute 'resource'. An error occurred at , (1, 405). at IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.ValidateSchema(XmlNode section, String schemaFileName) at IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.Build(XmlDocument document, DataSource dataSource, Boolean useConfigFileWatcher, Boolean isCallFromDao) [ConfigurationException]: - The error occurred while Validate SqlMap config. - The error occurred in Cannot load schema for the namespace '' - Could not find file "c:\winnt\system32\SqlMapConfig.xsd".. An error occurred at , (1, 2). The 'sqlMapConfig' element is not declared. An error occurred at , (1, 2). The 'properties' element is not declared. An error occurred at , (1, 119). Could not find schema information for the attribute 'resource'. An error occurred at , (1, 130). The 'settings' element is not declared. An error occurred at , (1, 162). The 'setting' element is not declared. An error occurred at , (1, 172). Could not find schema information for the attribute 'useStatementNamespaces'. An error occurred at , (1, 180). The 'setting' element is not declared. An error occurred at , (1, 214). Could not find schema information for the attribute 'cacheModelsEnabled'. An error occurred at , (1, 222). The 'database' element is not declared. An error occurred at , (1, 262). The 'provider' element is not declared. An error occurred at , (1, 272). Could not find schema information for the attribute 'name'. An error occurred at , (1, 281). The 'dataSource' element is not declared. An error occurred at , (1, 303). Could not find schema information for the attribute 'name'. An error occurred at , (1, 314). Could not find schema information for the attribute 'connectionString'. An error occurred at , (1, 336). The 'sqlMaps' element is not declared. An error occurred at , (1, 389). The 'sqlMap' element is not declared. An error occurred at , (1, 398). Could not find schema information for the attribute 'resource'. An error occurred at , (1, 405). . at IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.Build(XmlDocument document, DataSource dataSource, Boolean useConfigFileWatcher, Boolean isCallFromDao) at IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.Build(XmlDocument document, Boolean useConfigFileWatcher) at IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.ConfigureAndWatch(String resource, ConfigureHandler configureDelegate) at IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.ConfigureAndWatch(ConfigureHandler configureDelegate) at IBatisNet.DataMapper.Mapper.InitMapper() at IBatisNet.DataMapper.Mapper.Instance() at iBatisTutorial.Model.Helper.Mapper() in D:\Programs\devel\IBatisNet.DataMapper-bin-1.5.1\tutorial\Model\Helper.cs:line 13 at iBatisTutorial.Model.PersonHelper.SelectAll() in D:\Programs\devel\IBatisNet.DataMapper-bin-1.5.1\tutorial\Model\PersonHelper.cs:line 17 at iBatisTutorial.Web.Forms.PersonPage.List_Load() in d:\programs\devel\ibatisnet.datamapper-bin-1.5.1\tutorial\webview\forms\person.aspx.cs:line 24 at iBatisTutorial.Web.Forms.PersonPage.Page_Load(Object sender, EventArgs e) in d:\programs\devel\ibatisnet.datamapper-bin-1.5.1\tutorial\webview\forms\person.aspx.cs:line 88 at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain() [HttpUnhandledException]: Exception of type System.Web.HttpUnhandledException was thrown. at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain() at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) --></BODY></HTML>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <!-- saved from url=(0049)http://localhost/ibatistutorial/Forms/Person.aspx --> <HTML><HEAD><TITLE>Invalid SqlMap.config document. cause :The attribute targetNamespace does not match the designated namespace URI. An error occurred at file:///c:/winnt/system32/SqlMapConfig.xsd, (2, 2). The 'sqlMapConfig' element is not declared. An error occurred at , (1, 2). The 'properties' element is not declared. An error occurred at , (1, 119). Could not find schema information for the attribute 'resource'. An error occurred at , (1, 130). The 'settings' element is not declared. An error occurred at , (1, 162). The 'setting' element is not declared. An error occurred at , (1, 172). Could not find schema information for the attribute 'useStatementNamespaces'. An error occurred at , (1, 180). The 'setting' element is not declared. An error occurred at , (1, 214). Could not find schema information for the attribute 'cacheModelsEnabled'. An error occurred at , (1, 222). The 'database' element is not declared. An error occurred at , (1, 262). The 'provider' element is not declared. An error occurred at , (1, 272). Could not find schema information for the attribute 'name'. An error occurred at , (1, 281). The 'dataSource' element is not declared. An error occurred at , (1, 303). Could not find schema information for the attribute 'name'. An error occurred at , (1, 314). Could not find schema information for the attribute 'connectionString'. An error occurred at , (1, 336). The 'sqlMaps' element is not declared. An error occurred at , (1, 389). The 'sqlMap' element is not declared. An error occurred at , (1, 398). Could not find schema information for the attribute 'resource'. An error occurred at , (1, 405).</TITLE> <META http-equiv=Content-Type content="text/html; charset=windows-1252"> <STYLE>BODY { FONT-WEIGHT: normal; FONT-SIZE: 0.7em; COLOR: black; FONT-FAMILY: "Verdana" } P { MARGIN-TOP: -5px; FONT-WEIGHT: normal; COLOR: black; FONT-FAMILY: "Verdana" } B { MARGIN-TOP: -5px; FONT-WEIGHT: bold; COLOR: black; FONT-FAMILY: "Verdana" } H1 { FONT-WEIGHT: normal; FONT-SIZE: 18pt; COLOR: red; FONT-FAMILY: "Verdana" } H2 { FONT-WEIGHT: normal; FONT-SIZE: 14pt; COLOR: maroon; FONT-FAMILY: "Verdana" } PRE { FONT-SIZE: 0.9em; FONT-FAMILY: "Lucida Console" } .marker { FONT-WEIGHT: bold; COLOR: black; TEXT-DECORATION: none } .version { COLOR: gray } .error { MARGIN-BOTTOM: 10px } .expandable { FONT-WEIGHT: bold; CURSOR: hand; COLOR: navy; TEXT-DECORATION: underline } </STYLE> <META content="MSHTML 6.00.2800.1555" name=GENERATOR></HEAD> <BODY bgColor=white><SPAN> <H1>Server Error in '/iBatisTutorial' Application. <HR width="100%" color=silver SIZE=1> </H1> <H2><I>Invalid SqlMap.config document. cause :The attribute targetNamespace does not match the designated namespace URI. An error occurred at file:///c:/winnt/system32/SqlMapConfig.xsd, (2, 2). The 'sqlMapConfig' element is not declared. An error occurred at , (1, 2). The 'properties' element is not declared. An error occurred at , (1, 119). Could not find schema information for the attribute 'resource'. An error occurred at , (1, 130). The 'settings' element is not declared. An error occurred at , (1, 162). The 'setting' element is not declared. An error occurred at , (1, 172). Could not find schema information for the attribute 'useStatementNamespaces'. An error occurred at , (1, 180). The 'setting' element is not declared. An error occurred at , (1, 214). Could not find schema information for the attribute 'cacheModelsEnabled'. An error occurred at , (1, 222). The 'database' element is not declared. An error occurred at , (1, 262). The 'provider' element is not declared. An error occurred at , (1, 272). Could not find schema information for the attribute 'name'. An error occurred at , (1, 281). The 'dataSource' element is not declared. An error occurred at , (1, 303). Could not find schema information for the attribute 'name'. An error occurred at , (1, 314). Could not find schema information for the attribute 'connectionString'. An error occurred at , (1, 336). The 'sqlMaps' element is not declared. An error occurred at , (1, 389). The 'sqlMap' element is not declared. An error occurred at , (1, 398). Could not find schema information for the attribute 'resource'. An error occurred at , (1, 405). </I></H2></SPAN><FONT face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "><B>Description: </B>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. <BR><BR><B>Exception Details: </B>IBatisNet.Common.Exceptions.ConfigurationException: Invalid SqlMap.config document. cause :The attribute targetNamespace does not match the designated namespace URI. An error occurred at file:///c:/winnt/system32/SqlMapConfig.xsd, (2, 2). The 'sqlMapConfig' element is not declared. An error occurred at , (1, 2). The 'properties' element is not declared. An error occurred at , (1, 119). Could not find schema information for the attribute 'resource'. An error occurred at , (1, 130). The 'settings' element is not declared. An error occurred at , (1, 162). The 'setting' element is not declared. An error occurred at , (1, 172). Could not find schema information for the attribute 'useStatementNamespaces'. An error occurred at , (1, 180). The 'setting' element is not declared. An error occurred at , (1, 214). Could not find schema information for the attribute 'cacheModelsEnabled'. An error occurred at , (1, 222). The 'database' element is not declared. An error occurred at , (1, 262). The 'provider' element is not declared. An error occurred at , (1, 272). Could not find schema information for the attribute 'name'. An error occurred at , (1, 281). The 'dataSource' element is not declared. An error occurred at , (1, 303). Could not find schema information for the attribute 'name'. An error occurred at , (1, 314). Could not find schema information for the attribute 'connectionString'. An error occurred at , (1, 336). The 'sqlMaps' element is not declared. An error occurred at , (1, 389). The 'sqlMap' element is not declared. An error occurred at , (1, 398). Could not find schema information for the attribute 'resource'. An error occurred at , (1, 405). <BR><BR><B>Source Error:</B> <BR><BR> <TABLE width="100%" bgColor=#ffffcc> <TBODY> <TR> <TD><CODE><PRE> Line 11: public SqlMapper Mapper () Line 12: { <FONT color=red>Line 13: return IBatisNet.DataMapper.Mapper.Instance (); </FONT>Line 14: } Line 15: }</PRE></CODE></TD></TR></TBODY></TABLE><BR><B>Source File: </B>D:\Programs\devel\IBatisNet.DataMapper-bin-1.5.1\tutorial\Model\Helper.cs<B> Line: </B>13 <BR><BR><B>Stack Trace:</B> <BR><BR> <TABLE width="100%" bgColor=#ffffcc> <TBODY> <TR> <TD><CODE><PRE> [ConfigurationException: Invalid SqlMap.config document. cause :The attribute targetNamespace does not match the designated namespace URI. An error occurred at file:///c:/winnt/system32/SqlMapConfig.xsd, (2, 2). The 'sqlMapConfig' element is not declared. An error occurred at , (1, 2). The 'properties' element is not declared. An error occurred at , (1, 119). Could not find schema information for the attribute 'resource'. An error occurred at , (1, 130). The 'settings' element is not declared. An error occurred at , (1, 162). The 'setting' element is not declared. An error occurred at , (1, 172). Could not find schema information for the attribute 'useStatementNamespaces'. An error occurred at , (1, 180). The 'setting' element is not declared. An error occurred at , (1, 214). Could not find schema information for the attribute 'cacheModelsEnabled'. An error occurred at , (1, 222). The 'database' element is not declared. An error occurred at , (1, 262). The 'provider' element is not declared. An error occurred at , (1, 272). Could not find schema information for the attribute 'name'. An error occurred at , (1, 281). The 'dataSource' element is not declared. An error occurred at , (1, 303). Could not find schema information for the attribute 'name'. An error occurred at , (1, 314). Could not find schema information for the attribute 'connectionString'. An error occurred at , (1, 336). The 'sqlMaps' element is not declared. An error occurred at , (1, 389). The 'sqlMap' element is not declared. An error occurred at , (1, 398). Could not find schema information for the attribute 'resource'. An error occurred at , (1, 405). ] IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.ValidateSchema(XmlNode section, String schemaFileName) IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.Build(XmlDocument document, DataSource dataSource, Boolean useConfigFileWatcher, Boolean isCallFromDao) [ConfigurationException: - The error occurred while Validate SqlMap config. - The error occurred in The attribute targetNamespace does not match the designated namespace URI. An error occurred at file:///c:/winnt/system32/SqlMapConfig.xsd, (2, 2). The 'sqlMapConfig' element is not declared. An error occurred at , (1, 2). The 'properties' element is not declared. An error occurred at , (1, 119). Could not find schema information for the attribute 'resource'. An error occurred at , (1, 130). The 'settings' element is not declared. An error occurred at , (1, 162). The 'setting' element is not declared. An error occurred at , (1, 172). Could not find schema information for the attribute 'useStatementNamespaces'. An error occurred at , (1, 180). The 'setting' element is not declared. An error occurred at , (1, 214). Could not find schema information for the attribute 'cacheModelsEnabled'. An error occurred at , (1, 222). The 'database' element is not declared. An error occurred at , (1, 262). The 'provider' element is not declared. An error occurred at , (1, 272). Could not find schema information for the attribute 'name'. An error occurred at , (1, 281). The 'dataSource' element is not declared. An error occurred at , (1, 303). Could not find schema information for the attribute 'name'. An error occurred at , (1, 314). Could not find schema information for the attribute 'connectionString'. An error occurred at , (1, 336). The 'sqlMaps' element is not declared. An error occurred at , (1, 389). The 'sqlMap' element is not declared. An error occurred at , (1, 398). Could not find schema information for the attribute 'resource'. An error occurred at , (1, 405). .] IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.Build(XmlDocument document, DataSource dataSource, Boolean useConfigFileWatcher, Boolean isCallFromDao) IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.Build(XmlDocument document, Boolean useConfigFileWatcher) IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.ConfigureAndWatch(String resource, ConfigureHandler configureDelegate) IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.ConfigureAndWatch(ConfigureHandler configureDelegate) IBatisNet.DataMapper.Mapper.InitMapper() IBatisNet.DataMapper.Mapper.Instance() iBatisTutorial.Model.Helper.Mapper() in D:\Programs\devel\IBatisNet.DataMapper-bin-1.5.1\tutorial\Model\Helper.cs:13 iBatisTutorial.Model.PersonHelper.SelectAll() in D:\Programs\devel\IBatisNet.DataMapper-bin-1.5.1\tutorial\Model\PersonHelper.cs:17 iBatisTutorial.Web.Forms.PersonPage.List_Load() in d:\programs\devel\ibatisnet.datamapper-bin-1.5.1\tutorial\webview\forms\person.aspx.cs:24 iBatisTutorial.Web.Forms.PersonPage.Page_Load(Object sender, EventArgs e) in d:\programs\devel\ibatisnet.datamapper-bin-1.5.1\tutorial\webview\forms\person.aspx.cs:88 System.Web.UI.Control.OnLoad(EventArgs e) System.Web.UI.Control.LoadRecursive() System.Web.UI.Page.ProcessRequestMain() </PRE></CODE></TD></TR></TBODY></TABLE><BR> <HR width="100%" color=silver SIZE=1> <B>Version Information:</B> Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573 </FONT><!-- [ConfigurationException]: Invalid SqlMap.config document. cause :The attribute targetNamespace does not match the designated namespace URI. An error occurred at file:///c:/winnt/system32/SqlMapConfig.xsd, (2, 2). The 'sqlMapConfig' element is not declared. An error occurred at , (1, 2). The 'properties' element is not declared. An error occurred at , (1, 119). Could not find schema information for the attribute 'resource'. An error occurred at , (1, 130). The 'settings' element is not declared. An error occurred at , (1, 162). The 'setting' element is not declared. An error occurred at , (1, 172). Could not find schema information for the attribute 'useStatementNamespaces'. An error occurred at , (1, 180). The 'setting' element is not declared. An error occurred at , (1, 214). Could not find schema information for the attribute 'cacheModelsEnabled'. An error occurred at , (1, 222). The 'database' element is not declared. An error occurred at , (1, 262). The 'provider' element is not declared. An error occurred at , (1, 272). Could not find schema information for the attribute 'name'. An error occurred at , (1, 281). The 'dataSource' element is not declared. An error occurred at , (1, 303). Could not find schema information for the attribute 'name'. An error occurred at , (1, 314). Could not find schema information for the attribute 'connectionString'. An error occurred at , (1, 336). The 'sqlMaps' element is not declared. An error occurred at , (1, 389). The 'sqlMap' element is not declared. An error occurred at , (1, 398). Could not find schema information for the attribute 'resource'. An error occurred at , (1, 405). at IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.ValidateSchema(XmlNode section, String schemaFileName) at IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.Build(XmlDocument document, DataSource dataSource, Boolean useConfigFileWatcher, Boolean isCallFromDao) [ConfigurationException]: - The error occurred while Validate SqlMap config. - The error occurred in The attribute targetNamespace does not match the designated namespace URI. An error occurred at file:///c:/winnt/system32/SqlMapConfig.xsd, (2, 2). The 'sqlMapConfig' element is not declared. An error occurred at , (1, 2). The 'properties' element is not declared. An error occurred at , (1, 119). Could not find schema information for the attribute 'resource'. An error occurred at , (1, 130). The 'settings' element is not declared. An error occurred at , (1, 162). The 'setting' element is not declared. An error occurred at , (1, 172). Could not find schema information for the attribute 'useStatementNamespaces'. An error occurred at , (1, 180). The 'setting' element is not declared. An error occurred at , (1, 214). Could not find schema information for the attribute 'cacheModelsEnabled'. An error occurred at , (1, 222). The 'database' element is not declared. An error occurred at , (1, 262). The 'provider' element is not declared. An error occurred at , (1, 272). Could not find schema information for the attribute 'name'. An error occurred at , (1, 281). The 'dataSource' element is not declared. An error occurred at , (1, 303). Could not find schema information for the attribute 'name'. An error occurred at , (1, 314). Could not find schema information for the attribute 'connectionString'. An error occurred at , (1, 336). The 'sqlMaps' element is not declared. An error occurred at , (1, 389). The 'sqlMap' element is not declared. An error occurred at , (1, 398). Could not find schema information for the attribute 'resource'. An error occurred at , (1, 405). . at IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.Build(XmlDocument document, DataSource dataSource, Boolean useConfigFileWatcher, Boolean isCallFromDao) at IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.Build(XmlDocument document, Boolean useConfigFileWatcher) at IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.ConfigureAndWatch(String resource, ConfigureHandler configureDelegate) at IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.ConfigureAndWatch(ConfigureHandler configureDelegate) at IBatisNet.DataMapper.Mapper.InitMapper() at IBatisNet.DataMapper.Mapper.Instance() at iBatisTutorial.Model.Helper.Mapper() in D:\Programs\devel\IBatisNet.DataMapper-bin-1.5.1\tutorial\Model\Helper.cs:line 13 at iBatisTutorial.Model.PersonHelper.SelectAll() in D:\Programs\devel\IBatisNet.DataMapper-bin-1.5.1\tutorial\Model\PersonHelper.cs:line 17 at iBatisTutorial.Web.Forms.PersonPage.List_Load() in d:\programs\devel\ibatisnet.datamapper-bin-1.5.1\tutorial\webview\forms\person.aspx.cs:line 24 at iBatisTutorial.Web.Forms.PersonPage.Page_Load(Object sender, EventArgs e) in d:\programs\devel\ibatisnet.datamapper-bin-1.5.1\tutorial\webview\forms\person.aspx.cs:line 88 at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain() [HttpUnhandledException]: Exception of type System.Web.HttpUnhandledException was thrown. at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain() at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) --></BODY></HTML>