MediumTrust = True causes disabling log to file

4 posts, 0 answers
  1. Sepp
    Sepp avatar
    8 posts
    Member since:
    Sep 2012

    Posted 04 Apr 2013 Link to this post

    I searched for an error in my code and randomly I found out that setting MediumTrust to True this leads to disabling the file log mechanism. Costed me a lot of time until finding out what the problem was. Perhaps this information helps others!
  2. Alexander
    Admin
    Alexander avatar
    727 posts

    Posted 09 Apr 2013 Link to this post

    Hello Sepp,

    You are right, I have just checked the code and OpenAccess is indeed not generating log files when the model is configured for medium trust environment. Normally in medium trust scenarios the application does not have access to the file system, although it should be able to create files in its application directory.
    Is this your case - do you want to create log files in the local directory of the application? If yes, we might need to reconsider the current approach and enable the logging in some cases.

    Kind regards,
    Alexander
    the Telerik team
    Using Encrypted Connection Strings with Telerik OpenAccess ORM. Read our latest blog article >>
  3. DevCraft banner
  4. Sepp
    Sepp avatar
    8 posts
    Member since:
    Sep 2012

    Posted 09 Apr 2013 Link to this post

    Hello Alexander,

    I don't think that I will need this "feature", so you can let it as is.

    But for the community this can be a nice tip because I searched a long time for the problem why OA had not written any logfile ;)

    Greats,
    Sepp
  5. Doroteya
    Admin
    Doroteya avatar
    502 posts

    Posted 11 Apr 2013 Link to this post

    Hi Sepp,

    Thank you for the feedback regarding our documentation.

    The update with the information in question is already scheduled and once it is ready, it will be available for the entire community.

    If you have other questions or suggestions, do not hesitate to get back to us. 

     

    Regards,
    Doroteya
    the Telerik team
    Using Encrypted Connection Strings with Telerik OpenAccess ORM. Read our latest blog article >>
Back to Top