|
Hi Alexandra, I had already checked that. It’s
called “root namespace” in VB. I can instantiate my object in
the code using the namespace that I am using in the XML, so I know I have the
right namespace. But iBatis cannot seem to find it. Actually, I just created a small test
project in C#, and I am having the exact same problem there, so am not sure how
to continue debugging this issue. It seems like a configuration problem
at a very basic level. I have my SqlMap.config in /bin/ not in
/bin/Debug/ as the example seems to show. Is that possible problem? From: Alexandre
Grenier [mailto:[EMAIL PROTECTED] I love how people almost feel a need to
apologize for using VB J For your question, check the assembly
default namespace (in VS project properties), that could be a cause. Alex From: Douglas Smith
[mailto:[EMAIL PROTECTED] I hope someone can help me. I am using iBatis.Net with VB.Net (required by the client, otherwise I
would be using C#) It seems like no matter what namespace I am using in my VS project, I
can’t get the typeAlias to work. I keep on getting the error “could not load type” in nUnit com.roanoketime.forecasters.data.test_Forecaster.GetData :
IBatisNet.Common.Exceptions.ConfigurationException : - The error occurred while loading SqlMap. - initialize type alias - The error occurred in <sqlMap
resource="../data/Forecaster.xml" xmlns="http://ibatis.apache.org/dataMapper"
/>. - Check the com.roanoketimes.forecasters.data.Forecaster,
com.roanoketimes.forecasters.data. ----> System.TypeLoadException : Could not load type :
com.roanoketimes.forecasters.data.Forecaster, com.roanoketimes.forecasters.data Here is my xml: <?xml version="1.0" encoding="utf-8" ?> <sqlMap namespace="xmlmap_Forecaster" xmlns="http://ibatis.apache.org/mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="SqlMap.xsd" >
<alias>
<typeAlias alias="test" type="com.roanoketimes.forecasters.data.Forecaster,
com.roanoketimes.forecasters.data" />
</alias>
<statements>
<select id="Select" parameterClass="string" >
SELECT
RTUserID,
FirstName,
LastName
FROM Forecaster
</select>
</statements>
</sqlMap> Here is how I am testing it in VB.NET:
Dim ilUsers As IList =
IBatisNet.DataMapper.Mapper.Instance().QueryForList("Select",
"test") |
- iBatis Newbie: Problem with <typeAlias Douglas Smith
- RE: iBatis Newbie: Problem with <typeAlias Alexandre Grenier
- RE: iBatis Newbie: Problem with <typeAlias Douglas Smith
- RE: iBatis Newbie: Problem with <typeAlias Douglas Smith
- RE: iBatis Newbie: Problem with <typeAlias Ron Grabowski
- Re: iBatis Newbie: Problem with <typeAli... Musachy Barroso
- RE: iBatis Newbie: Problem with <typeAlias Douglas Smith

