Entity Framework - Medium Trust
Posted
by Echilon
on Stack Overflow
See other posts from Stack Overflow
or by Echilon
Published on 2010-03-08T15:29:55Z
Indexed on
2010/03/08
15:36 UTC
Read the original article
Hit count: 648
I'm trying to get the entity framework working in medium trust. I've tried splitting the files and using a separate assembly but I seem to have one problem after another.
I moved the EDMX to a separate assembly, which causes a single .dll to be outpit to the sites /Bin directory. I'm referencing this as below from web.config.
Whenever I try to access one of the entity classes, I get an ArgumentException: 'An item with the same key has already been added.' It's critical this works with medium trust, but I seem to be running out of options. Any advice greatly appreciated.
© Stack Overflow or respective owner