Problems with Custom Query EO

Data Access Application Blocks Forum

Problems with Custom Query EO

Postby CrazyNet3 on Fri Dec 09, 2005 4:15 pm

Hi.
I write to you because I have some troubles with Custom Querys.
1.- I create with the EnterpriseLibraryConfiguration tool the sections for dynamicQuerySettings like the QS. But when I try to use in the code
store.Query.AddResultColumn(StoreSchema.Item); the compiler says :

Failed to create an instance of type 'Microsoft.Practices.EnterpriseLibrary.Data.Sql.SqlDatabase, Microsoft.Practices.EnterpriseLibrary.Data, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null' because it is not assignable from the type 'NCI.EasyObjects.DynamicQuery, NCI.EasyObjects, Version=1.0.2138.28077, Culture=neutral, PublicKeyToken=null'.

I see the XML file dynamicquerysettings.config for QS and copy this in my own project, I change the instance of the database, but the compiler give always the same error.

Do you have some idea ?
Thanks a lot in advance for your answer.!!!
CrazyNet3
Private First Class
 
Posts: 13
Joined: Tue Nov 15, 2005 10:01 pm

Postby mgnoonan on Fri Dec 09, 2005 4:23 pm

OK, this is a new one... :?

Have you modified the Enterprise Library at all, such as added a strong name?

This may be difficult to debug remotely. Any way you can zip up your project (or a subset of it) and send it to me?

In the meantime I will take a quick tour of Google to see if this problem has been posted somewhere before.
Matt Noonan
EasyObjects.NET - The O/RM for the Enterprise Library
http://www.easyobjects.net
User avatar
mgnoonan
Expert
 
Posts: 1019
Joined: Tue Sep 14, 2004 3:17 am
Location: Springboro, OH

Postby mgnoonan on Fri Dec 09, 2005 4:29 pm

Nothing available on Google...
Matt Noonan
EasyObjects.NET - The O/RM for the Enterprise Library
http://www.easyobjects.net
User avatar
mgnoonan
Expert
 
Posts: 1019
Joined: Tue Sep 14, 2004 3:17 am
Location: Springboro, OH

Postby CrazyNet3 on Fri Dec 09, 2005 5:57 pm

Thanks for your quickly attendance.

Your comments were very valuable in order to find and fix the problem.

I speak with my development team and asked your question:

Have you modified the Enterprise Library at all, such as added a strong name or anything else?

And somebody in the team modified a EO class!!!!!!

So, thats was the problem.

Kind regards.
CrazyNet3
Private First Class
 
Posts: 13
Joined: Tue Nov 15, 2005 10:01 pm

Postby mgnoonan on Fri Dec 09, 2005 6:04 pm

Glad you got it fixed, because I was stumped! :o

Tell that person that next time, we cut off a finger. :lol:
Matt Noonan
EasyObjects.NET - The O/RM for the Enterprise Library
http://www.easyobjects.net
User avatar
mgnoonan
Expert
 
Posts: 1019
Joined: Tue Sep 14, 2004 3:17 am
Location: Springboro, OH


Return to EasyObjects.NET (Microsoft Enterprise Library)

Who is online

Users browsing this forum: No registered users and 5 guests

cron