The requested database <DbName> does not have provider

Data Access Application Blocks Forum

The requested database <DbName> does not have provider

Postby spikeyhair4me on Mon Apr 20, 2009 12:37 pm

Hi

I have built many applications with Easy Objects But never have I come acros this error.

error = The requested database HPAConnection does not have provider name set in the connection string.

Code Snippet

Category obj = new Category();
obj.LoadAll();

It seems to bomb on obj.LoadAll(); However, in none of the other models do I get this error for the same way of loading the data. The interesting thing is this. It works on dev, But not on live. It is only this one peice of code and only on live that bombs.

If there is any one that help with this, I would really appreciate it.
Thanks
spikeyhair4me
Lurker
 
Posts: 2
Joined: Mon Apr 20, 2009 12:27 pm

Re: The requested database <DbName> does not have provider

Postby mgnoonan on Mon Apr 20, 2009 3:02 pm

What version of the Enterprise Library are you using?
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

Re: The requested database <DbName> does not have provider

Postby spikeyhair4me on Mon Apr 20, 2009 3:36 pm

Hi

I am using Easy Objects 2.0. I have also in the meantime solved the issue.

What I did was in my xml web.config, I removed the connection string completely, recreadted it and then reuploaded it via FTP to the live server. and it worked.

So I solved it. But thanks for your time anyways.
spikeyhair4me
Lurker
 
Posts: 2
Joined: Mon Apr 20, 2009 12:27 pm

Re: The requested database <DbName> does not have provider

Postby mgnoonan on Mon Apr 20, 2009 4:55 pm

Glad it was something simple! 8)
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 1 guest