ibatis-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Marzo (JIRA)" <ibatis-...@incubator.apache.org>
Subject [jira] Commented: (IBATISNET-103) Typos in Resources.cs
Date Thu, 18 Aug 2005 18:24:54 GMT
    [ http://issues.apache.org/jira/browse/IBATISNET-103?page=comments#action_12319206 ] 

David Marzo commented on IBATISNET-103:
---------------------------------------

The enviroment when i have the error:

 <daoConfig xmlns="http://ibatis.apache.org/dataAccess" >
	<providers embedded="org.xeaf.example.persistence.config.providers.config, Persistence"/>
        <!-- -->
</daoConfig>

And In Resource.GetEmbeddedResourceAsXmlDocument("org.xeaf.example.persistence.config.providers.config,
Persistence")

fileInfo	{IBatisNet.Common.Utilities.Resources.FileAssemblyInfo}
	_originalFileName	"org.xeaf.example.persistence.config.providers.config, Persistence"	string
	_unresolvedAssemblyName	"Persistence"	string
	_unresolvedFileName	"org.xeaf.example.persistence.config.providers.config"	string
	AssemblyName	"Persistence"	string
	FileAssemblySeparator	","	string
	FileName	"org.xeaf.example.persistence.config.providers.config"	string
	IsAssemblyQualified	true	bool
	OriginalFileName	"org.xeaf.example.persistence.config.providers.config, Persistence"	string
	ResourceFileName	"Persistence.org.xeaf.example.persistence.config.providers.config"	string

I see ResourceFileName that is wrong and i see FileName that work for me and I think that
remplace fileInfo.ResourceFileName for 
fileInfo.FileName resolve the problem, but I seams the problem is in ResourceFileName property





> Typos in Resources.cs
> ---------------------
>
>          Key: IBATISNET-103
>          URL: http://issues.apache.org/jira/browse/IBATISNET-103
>      Project: iBatis for .NET
>         Type: Improvement
>     Reporter: Ron Grabowski
>     Assignee: Gilles Bayon
>     Priority: Trivial
>      Fix For: DataMapper 1.3

>
> David Marzo posted the following message to the user-cs list. I've verified they are
present in the most recent revision in SVN:
> I have two small "bugs":
> cs\mapper\IBatisNet.Common\Utilities\Resources.cs 
>   ln 291 
>    Original: 
>    throw new ConfigurationException(string.Format("Unable to load 
>             XmlDocument via stream. Cause : {1}", e.Message ) ,e);
>    Correct:
>    throw new ConfigurationException(string.Format("Unable to load 
>             XmlDocument via stream. Cause : {0}", e.Message),e);
>   Similar error in Lines: 313,336,446
>  Ln 413
>  Original:
> 	Stream stream = 
> 	
> assembly.GetManifestResourceStream(fileInfo.ResourceFileName);
> Correct:
> 	Stream stream =
> assembly.GetManifestResourceStream(fileInfo.FileName);

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message