Print Page | Close Window

Exception After Upgrading

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=3137
Printed Date: 01-May-2025 at 6:37pm


Topic: Exception After Upgrading
Posted By: gregweb
Subject: Exception After Upgrading
Date Posted: 09-Dec-2011 at 8:08am
I did an upgrade to the latest build, and after recompiling and running, I am getting the following error message:

"This ctor is for internal use and can only be called during Entity materialization and serialization."

It's just doing a simple query to the server:

var query = this.EmailEntityManager.EmailAccountEntities;
var op = this.EmailEntityManager.ExecuteQueryAsync(query);

Any suggestions?

Greg



Replies:
Posted By: kimj
Date Posted: 09-Dec-2011 at 10:01am
Hi Greg,
 
That is a weird error.  Can you first make sure that the model code is regenerated, and also do a full clean on the solution and then a rebuild?  An error like this generally points to some sort of assembly mismatch.
 



Print Page | Close Window