Generate Code Error - Metadata file 'System.Data.Entity.dll'

Discussion of open issues, suggestions and bugs regarding Entity Developer - ORM modeling and code generation tool
Post Reply
Emily
Posts: 13
Joined: Mon 30 Nov 2009 23:45

Generate Code Error - Metadata file 'System.Data.Entity.dll'

Post by Emily » Tue 09 Feb 2010 22:53

When I try to generate code for my model, I get the following error using Entity Developer:
--------------------
An error occurred during an attempt to compile the template.
Error List:
error : Metadata file 'System.Data.Entity.dll' could not be found
error : Metadata file 'System.Data.Entity.Design.dll' could not be found
--------------------
I've uninstalled my dotConnect software, even manually deleted the registry keys, and reinstalled everything and I still get this error. I've never been able to generate code via my Entity Developer tool.

I've only been able to successfully create code via my EDM via VS 2008. I've been using dotConnect for Oracle since version 5.25.49 and Entity Developer since 2.20.43. I am currently using the latest build (Beta 2.80.82) and still no luck!

Please help.

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

Post by AndreyR » Wed 10 Feb 2010 08:44

Please make sure you have Microsoft .NET Framework 3.5 Service Pack 1 installed.

Emily
Posts: 13
Joined: Mon 30 Nov 2009 23:45

Post by Emily » Wed 10 Feb 2010 15:13

AndreyR:

I do have it. Like I noted, I've been developing Entity Framework-based applications for a while but have NEVER been able to get Entity Developer working, i.e. once I press the generate code button. I can generated the pertinent class files via Visual Studio.

I want to harness the robustness of the Entity Developer tool.

Please help.

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

Post by AndreyR » Wed 10 Feb 2010 16:28

Please check that you have the System.Data.Entity assembly in your Global Assembly Cache.

Emily
Posts: 13
Joined: Mon 30 Nov 2009 23:45

Post by Emily » Thu 11 Feb 2010 00:19

I don't believe that's the issue.

In Visual Studio 2008, within the project where I have the EDMX file hosted, I look under the References and took a look at the path for System.Data.Entity and it is: C:\WINDOWS\assembly\GAC_MSIL\System.Data.Entity\3.5.0.0__b77a5c561934e089\System.Data.Entity.dll.

I then looked at my C:\windows\assembly directory and the dll is indeed there.

I then opened 'regedit' and did a 'Find" for the System.Data.Entity.dll and it found it within HKEY_LOCAL_MACHINE --> SOFTWARE --> Classes --> c:|Program Files|Reference Assemblies|Microsoft|Framework|v3.5|System.Data.Entity.dll.

Once again, I've always been able to create and consume models using Visual Studio but have never been able to generate via Entity Developer. I believe I've gone through 3 revisions of the product. What else could it be?

Please help.

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

Post by AndreyR » Fri 12 Feb 2010 13:26

Do you have Visual Studio 2010 (Beta 1 or any other version) installed? The problem might be associated with it.
Also please check whether you have the InstallDir value in the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\10.0' registry key. If so and you don't have any VS 2010 installed, please rename it temporarily, reinstall Entity Developer and rename it back. This should help.

EB6947
Posts: 2
Joined: Fri 12 Mar 2010 00:21

Entity Developer Problem Generating Code

Post by EB6947 » Fri 12 Mar 2010 00:28

Devart -- I am noticing similar behavior on my PC. I don't have VS 2010 installed, just have 2008. I can create EDMX models just fine in VS, but I would like to use Entity Developer but have never been able to generate.

How can I check (or set) what path Entity Developer is looking for when attempting to locate System.Data.Entity.dll and System.Data.Entity.Design.dll when I press the "Generate Code for Context Model" button?

Any other suggestions?

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

Post by AndreyR » Fri 12 Mar 2010 11:30

We are investigating the issue.
I will let you know about the results.

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

Post by AndreyR » Fri 12 Mar 2010 12:13

One more question: is the error reproducible using standalone Entity Developer?

EB6947
Posts: 2
Joined: Fri 12 Mar 2010 00:21

Post by EB6947 » Fri 12 Mar 2010 20:15

What do you mean by 'standalone' ED? If you are asking if I am using solely ED when creating a model and trying to generate code, then yes. I am not using it in conjunction with VS at the same time if that's what you are asking.

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

Post by AndreyR » Mon 15 Mar 2010 13:25

Could you please try the VS integration?
Add Devart Entity Data model to your project and try to generate code.
Please let me know about the results.

Post Reply