Entity Data Model Wizard fails with Jan 14th version entity

Discussion of open issues, suggestions and bugs regarding Entity Framework support in ADO.NET Data providers
Post Reply
SuperDave
Posts: 6
Joined: Sun 03 Jan 2010 19:03

Entity Data Model Wizard fails with Jan 14th version entity

Post by SuperDave » Mon 25 Jan 2010 20:27

Looks like because the password is not included in the Entity Connection string using the Entity Data Model Wizard that it fails because it can't establish a connection.

VS 2010 X64 - MYSQL 5.5 dotConnect 5.50.79.0 - Win 7

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Tue 26 Jan 2010 12:30

If you choose not to persist the security info in your connection string then it's your responsibility to pass the password
to the connection string. Create the ObjectContext instance with a separate entity connection in your code
if you wish to have full control over it.

SuperDave
Posts: 6
Joined: Sun 03 Jan 2010 19:03

Why don't you try the wizard?

Post by SuperDave » Tue 26 Jan 2010 13:51

I can see you didn't bother to try the entity data model wizard. Why don't you try and they tell me where you can do this. Maybe you don't support the Wizard but you could just tell me that.

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Tue 26 Jan 2010 14:34

Set the connection string Persist Security Info to true. If it is set to false, EDM Wizard performs an attempt to
open the connection defined by the given connection string and fails because of the lack of password in it.
It is a limitation since EF v1.
As for saving the connection string in app.config, my recommendations are still valid.

SuperDave
Posts: 6
Joined: Sun 03 Jan 2010 19:03

persist security info=True

Post by SuperDave » Tue 26 Jan 2010 14:45

user id=Catburt;password=******;host=192.150.5.100;database=poadoc;persist security info=True

Is the way it has been set.

Wizard still fails to connect.

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Tue 26 Jan 2010 16:03

Please try with the brand new connection with Persist Security Info==true.
If the error persists, please let me know the precise error message and the call stack..

SuperDave
Posts: 6
Joined: Sun 03 Jan 2010 19:03

Leading a horse to water

Post by SuperDave » Tue 26 Jan 2010 16:17

I can only believe you don't know what the Entity Data Model Wizard or you wouldn't have posted the last message.

Why don't you try using it.

SuperDave
Posts: 6
Joined: Sun 03 Jan 2010 19:03

The error message

Post by SuperDave » Tue 26 Jan 2010 16:23

An Error occurred while connectiong to the database. The database might be unavailable. An exception of type System.Data,EntityCommandExecuationException occurred. The error message is :An error occurred wheil executing the command definition, see the inner exception for details the inner exception caught was of type Devart.data.MySQL.MySwlException with this error message: 'Select command denied to user ****@********** for table proc.

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Wed 27 Jan 2010 09:54

Thank you for the clarification. The problem is that the user you are connecting to the database with
does not have necessary privileges (namely, metadata quering). EDM Wizard needs this data, and we
don't have any opportunity to wrap the raised exception.
I can see two alternatives - either you grant more privileges to your user (maybe use a more prvileged user)
or use Entity Developer (the compatible with EF v4 version will be available soon).

cjbiggs
Posts: 105
Joined: Fri 15 Jan 2010 19:56

Post by cjbiggs » Thu 28 Jan 2010 15:56

How soon with EF 4 support be available in the Entity Developer?

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Fri 29 Jan 2010 09:25

We plan to release the compatible with VS 2010 Beta 2 build of Entity Developer in a week or so.

Post Reply