Page 1 of 1

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

Posted: Tue 09 Feb 2010 22:53
by Emily
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.

Posted: Wed 10 Feb 2010 08:44
by AndreyR
Please make sure you have Microsoft .NET Framework 3.5 Service Pack 1 installed.

Posted: Wed 10 Feb 2010 15:13
by Emily
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.

Posted: Wed 10 Feb 2010 16:28
by AndreyR
Please check that you have the System.Data.Entity assembly in your Global Assembly Cache.

Posted: Thu 11 Feb 2010 00:19
by Emily
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.

Posted: Fri 12 Feb 2010 13:26
by AndreyR
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.

Entity Developer Problem Generating Code

Posted: Fri 12 Mar 2010 00:28
by EB6947
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?

Posted: Fri 12 Mar 2010 11:30
by AndreyR
We are investigating the issue.
I will let you know about the results.

Posted: Fri 12 Mar 2010 12:13
by AndreyR
One more question: is the error reproducible using standalone Entity Developer?

Posted: Fri 12 Mar 2010 20:15
by EB6947
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.

Posted: Mon 15 Mar 2010 13:25
by AndreyR
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.