Help with entity frame work error. Error 0194: All artifacts loaded....

Posted by Steve on Stack Overflow See other posts from Stack Overflow or by Steve
Published on 2010-05-18T13:55:15Z Indexed on 2010/05/18 14:01 UTC
Read the original article Hit count: 811

Filed under:
|
|
|

This is a c#/asp.net project. The full error message I get is:Error 0194: All artifacts loaded into the item collection must have the same version. Multiple versions were encountered.

This project was started as a 3.5 and upgraded to 4.0. When I try to test any of the methods I get the error that I posted in the subject line. I am going to include the actual lines that it throws the exception on. If there is anything in people need to see to try to help let me know and I post it as well. Any help will be appreciated, I am having no luck with this.

> ///

/// Initializes a new SFBExternalPaymentsEntities object using the connection string found in the 'SFBExternalPaymentsEntities' section of the application configuration file.

///

public SFBExternalPaymentsEntities() : base("name=SFBExternalPaymentsEntities", "SFBExternalPaymentsEntities")

{

this.ContextOptions.LazyLoadingEnabled = false;

OnContextCreated();

}

///

/// Initialize a new SFBExternalPaymentsEntities object.

///

public SFBExternalPaymentsEntities(string connectionString) : base(connectionString, "SFBExternalPaymentsEntities")

{

this.ContextOptions.LazyLoadingEnabled = false;

OnContextCreated();

}

///

/// Initialize a new SFBExternalPaymentsEntities object.

///

public SFBExternalPaymentsEntities(EntityConnection connection) : base(connection, "SFBExternalPaymentsEntities")

{

this.ContextOptions.LazyLoadingEnabled = false;

OnContextCreated();

}

endregion

© Stack Overflow or respective owner

Related posts about .NET

Related posts about entity-framework