You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-cs@ibatis.apache.org by Glenn Møldrup Sørensen <GM...@edbgruppen.dk> on 2005/09/28 10:29:19 UTC
iBatisTutorial.Model.PersonTest.PersonList : System.NotSupportedException
: The given path's format is not supported.
Hi,
I'm having problems getting the iBatisTutorial to work. I have followed the
instructions in the Readme.txt, but am unsuccessfull in getting it to work.
I have tried both the WebView web application and the tescases using NUnit.
I have also played alot around with the "connectionstring" and "root"
setting in the properties.config (Both in then Model, Test and WebView
projects).
I've tried on another computer because I thougth it might be my setup but
with the same issue.
It is in the call to "IBatisNet.DataMapper.Mapper.Instance ();" in the
Helper.cs class this exception is thrown.
How do I debug this issue? Any ideas on what the problem is? I have tried
the NPethshop and it works fine, but this doesn't help me with the
iBatisTutorial.
Appriciate all the help I can get!
/Glenn
Error from NUnit:
iBatisTutorial.Model.PersonTest.PersonList : System.NotSupportedException :
The given path's format is not supported.
at System.Security.Util.StringExpressionSet.CanonicalizePath(String
path, Boolean needFullPath)
at System.Security.Util.StringExpressionSet.AddExpressions(String[] str,
Boolean checkForDuplicates, Boolean needFullPath)
at
System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess
access, String[] pathListOrig, Boolean checkForDuplicates, Boolean
needFullPath, Boolean copyPathList)
at
System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess
access, String[] pathList, Boolean checkForDuplicates, Boolean
needFullPath)
at System.IO.FileInfo..ctor(String fileName)
at IBatisNet.Common.Utilities.Resources.GetFileInfo(String path)
at
IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.ConfigureSqlMap(SqlMapper
sqlMap, XmlNode sqlMapNode)
at IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.Initialize()
at IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.Build(XmlDocument
document, Boolean useConfigFileWatcher)
at IBatisNet.DataMapper.SqlMapper.ConfigureAndWatch(String fileName,
ConfigureHandler configureDelegate)
at IBatisNet.DataMapper.SqlMapper.ConfigureAndWatch(ConfigureHandler
configureDelegate)
at IBatisNet.DataMapper.Mapper.InitMapper()
at IBatisNet.DataMapper.Mapper.Instance()
at iBatisTutorial.Model.Helper.Mapper() in
C:\apache\iBatisTutorial\Model\Helper.cs:line 13
at iBatisTutorial.Model.PersonHelper.SelectAll() in
C:\apache\iBatisTutorial\Model\PersonHelper.cs:line 17
at iBatisTutorial.Model.PersonTest.PersonList() in
C:\apache\iBatisTutorial\Tests\PersonTest.cs:line 13
Error from Person.aspx
Server Error in '/iBatisTutorial' Application.
The given path's format is not supported.
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.NotSupportedException: The given path's format is
not supported.
Source Error:
Line 11: public SqlMapper Mapper ()
Line 12: {
Line 13: return
IBatisNet.DataMapper.Mapper.Instance ();
Line 14: }
Line 15: }
Source File: C:\apache\iBatisTutorial\Model\Helper.cs Line: 13
Stack Trace:
[NotSupportedException: The given path's format is not supported.]
System.Security.Util.StringExpressionSet.CanonicalizePath(String path,
Boolean needFullPath) +230
System.Security.Util.StringExpressionSet.AddExpressions(String[] str,
Boolean checkForDuplicates, Boolean needFullPath) +461
System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionA
ccess access, String[] pathListOrig, Boolean checkForDuplicates, Boolean
needFullPath, Boolean copyPathList) +168
System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess
access, String[] pathList, Boolean checkForDuplicates, Boolean
needFullPath) +43
System.IO.FileInfo..ctor(String fileName) +121
IBatisNet.Common.Utilities.Resources.GetFileInfo(String path)
IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.ConfigureSqlMap(SqlMap
per sqlMap, XmlNode sqlMapNode)
IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.Initialize()
IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.Build(XmlDocument
document, Boolean useConfigFileWatcher)
IBatisNet.DataMapper.SqlMapper.ConfigureAndWatch(String fileName,
ConfigureHandler configureDelegate)
IBatisNet.DataMapper.SqlMapper.ConfigureAndWatch(ConfigureHandler
configureDelegate)
IBatisNet.DataMapper.Mapper.InitMapper()
IBatisNet.DataMapper.Mapper.Instance()
iBatisTutorial.Model.Helper.Mapper() in
C:\apache\iBatisTutorial\Model\Helper.cs:13
iBatisTutorial.Model.PersonHelper.SelectAll() in
C:\apache\iBatisTutorial\Model\PersonHelper.cs:17
iBatisTutorial.Web.Forms.PersonPage.List_Load() in
C:\apache\iBatisTutorial\WebView\Forms\Person.aspx.cs:24
iBatisTutorial.Web.Forms.PersonPage.Page_Load(Object sender, EventArgs
e) in C:\apache\iBatisTutorial\WebView\Forms\Person.aspx.cs:88
System.Web.UI.Control.OnLoad(EventArgs e)
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain()
Version Information: Microsoft .NET Framework Version:1.1.4322.2032;
ASP.NET Version:1.1.4322.2032