Results 1 to 1 of 1
Thread: Medium Trust LINQ issue
Apr 7, 2009, 23:37 #1
- Join Date
- Jul 2004
- Cape Town, South Africa
- 37 Post(s)
- 0 Thread(s)
Medium Trust LINQ issue
I developed a site on my local PC with a LINQ class library that handles all the database connectivity using Linq. This works without any issues.
Then I deployed it to my shared windows hosts, and its giving the following error:
System.Security.SecurityException: That assembly does not allow partially trusted callers.
on this line:
protected dbDataContext db = new dbDataContext();
So I have done quite a bit of googling, but I cannot find a solution.
For testing, i set my local PC to medium trust, and I get the same error, but no relevant source lines.
I tried setting this in the machine level medium trust policy as said here: http://learn.iis.net/page.aspx/72/de...q-with-net-35/
But those items where already there and it still does not work.
Does anyone know where I can go from here?
Thanks for any help