Using OpenAccess in Medium Trust

3 posts, 1 answers
  1. Brendan Enrick
    Brendan Enrick avatar
    28 posts
    Member since:
    Jul 2009

    Posted 18 Sep 2009 Link to this post

    Hello,

    I am aware that OpenAccess works in medium trust environments, but certain features will require more permission.

    http://www.telerik.com/help/openaccess-orm/deploying-openaccess-partial-trust-environments.html

    For some reason this code requires more than medium trust.

    DateTime maxDateCreated = _objectScope.Extent<MyObject>().Max(o => o.DateCreated); 
     


    Thanks for the help,
    Brendan
  2. Answer
    Thomas
    Admin
    Thomas avatar
    590 posts

    Posted 21 Sep 2009 Link to this post

    Hi Brendan Enrick,

    is this a LINQ specific issue? What are the access rights on MyObject and DateCreated? LINQ will use reflection to get to the properties and fields and methods, so all that is used must be public.
    Can you please verify that and give us a stack trace if possible?

    All the best,
    Thomas
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. DevCraft banner
  4. Brendan Enrick
    Brendan Enrick avatar
    28 posts
    Member since:
    Jul 2009

    Posted 24 Sep 2009 Link to this post

    Thanks. That was my mistake it actually wasn't OpenAccess causing the trust issue. I fixed the offending code once I looked more closely.

    Brendan
Back to Top