开发者

Using .NET Entity Framework in Medium Trust Enviroment like Mosso/Rackspace Cloud Hosting

开发者 https://www.devze.com 2022-12-15 12:44 出处:网络
I have an application that is using .net\'s Entity Framework.This application runs fine on my local machine and my local server.However, trying to run the app on mosso which runs in medium trust retur

I have an application that is using .net's Entity Framework. This application runs fine on my local machine and my local server. However, trying to run the app on mosso which runs in medium trust returns an error.

Using .NET Entity Framework in Medium Trust Enviroment like Mosso/Rackspace Cloud Hosting

I am not sure how to appropriat开发者_StackOverflowely use entity framework in medium trust. I have the entity model in a separate project from the web app. Any help or direction would be appreciated.


This is strange, I've been successfully using Entity Framework in RackspaceCloud for close to six months now. The entity model being in a separate project should have no effect.

Can you give an example of the calling code which causes this exception?

Are you impersonating your Windows account? e.g.

<identity impersonate="true" userName="dfw\<USERNAME>" password="<PASSWORD>"></identity>

You can find the RackspaceCloud Medium Trust guidelineshere

I did a blog post a while ago detailing requirements for hosting on RackspaceCloud


Entity Framework works on medium trust for me just fine. You can simulate medium trust on your local box by adding <trust level="Medium"> to your web.config file. If it still works on your box (I bet it will), then Mosso very likely has a modified definition of medium trust and disallows something that Entity Framework requires. And at that point you'd have to take it up with them or find different hosting.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号