Print Page | Close Window

Metadata generation error: The given key was not present in the dictionary.

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=3099
Printed Date: 13-May-2026 at 9:42pm


Topic: Metadata generation error: The given key was not present in the dictionary.
Posted By: cblevins
Subject: Metadata generation error: The given key was not present in the dictionary.
Date Posted: 18-Nov-2011 at 11:21am

I am getting the following error during the 'generate metadata' stage for CodeFirst:

 

C:\Program Files\MSBuild\IdeaBlade\IdeaBlade.DevForce.Common.targets(115,6): error : An error occurred during metadata generation and a metadata file could not be created. Error: The given key was not present in the dictionary.

EntityModelMetadataDeploy: No metadata files generated.
This occurs immediately after adding the .cf file. The project builds fine without the .cf file.
I am using VS2010 on Win 7 Professional (x86), with DevForce 6.1.3.1.
 
Thanks,
Chris
 



Replies:
Posted By: DenisK
Date Posted: 21-Nov-2011 at 3:58pm
Hi Chris;

I'm going to need to debug your solution. Could you send it through the customer support form here?  http://www.ideablade.com/technical-support/CustomerSupportRequestForm.aspx - http://www.ideablade.com/technical-support/CustomerSupportRequestForm.aspx



Posted By: splace
Date Posted: 06-Dec-2011 at 1:07pm
I am currently experiencing the same issue. Was there any steps taken to resolve this?


Posted By: splace
Date Posted: 06-Dec-2011 at 3:34pm
Worked it out. I didn't have one of my classes marked as [ProvideEntityAspect]



Print Page | Close Window