If I set this to true in my SqlMap.config file, I get the following error:

[snip]

 Value cannot be null. Parameter name: stream

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: stream

[snap]

and the stack trace:

[snip]

[ArgumentNullException: Value cannot be null.

Parameter name: stream]

   System.IO.StreamReader..ctor(Stream stream, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize) +126

   System.IO.StreamReader..ctor(Stream stream) +101

   IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.ValidateSchema(XmlNode section, String schemaFileName) +231

   IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.ConfigureSqlMap() +495

   IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.Initialize() +4343

   IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.Build(XmlDocument document, DataSource dataSource, Boolean useConfigFileWatcher, Boolean isCallFromDao) +81

[ConfigurationException:

- The error occurred while Validate SqlMap config.

- The error occurred in <sqlMap embedded="Customer.xml, BudgetModel.ALU" />.]

   IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.Build(XmlDocument document, DataSource dataSource, Boolean useConfigFileWatcher, Boolean isCallFromDao) +160

   IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.Configure(XmlDocument document) +13

   BudgetModel.Model.Helper.EmbeddedSqlMapper.Instance() +108

   BudgetModel.Model.Helper.ProductHelper.Add(ProductClass product) +151

   BudgetModel.Test.btnTest_Click(Object sender, EventArgs e) in C:\Inetpub\wwwroot\Devolopment\smet\test\test.aspx.cs:40

   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108

   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57

   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18

   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33

   System.Web.UI.Page.ProcessRequestMain() +1292

[snap]

What is going wrong? I think I have asked this before, but now I need the sqlmap to be validated...

/morten

Reply via email to