HELP Permissions error has me stumped

Last post 09-18-2006 9:22 AM by par.pra.mukh. 2 replies.

Sort Posts:

  • HELP Permissions error has me stumped

    08-19-2006, 2:43 PM
    • Loading...
    • JayWallace
    • Joined on 08-19-2006, 6:39 PM
    • Posts 1
    I am getting this error when I try to build my site

    Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Caching.Cryptography, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)


    It seems my permissions for this assembly arent set correctly  but I cant seem to figure out how to correct this. Has anyone dealt with this before??


           

  • Re: HELP Permissions error has me stumped

    08-19-2006, 7:09 PM
    • Loading...
    • vcsjones
    • Joined on 04-18-2006, 8:53 PM
    • Falls Church, VA
    • Posts 3,984
    • Moderator
      TrustedFriends-MVPs
    Are you on a shared hosting environment, or a hosting environment at all?
    Cheers,
           Kevin Jones


  • Re: HELP Permissions error has me stumped

    09-18-2006, 9:22 AM
    • Loading...
    • par.pra.mukh
    • Joined on 11-14-2005, 2:25 AM
    • New Delhi
    • Posts 4

    Hi I have also faced the same problem with Enterprise Library for .net 1.1.

    It is also giving the SecurityException when I deployed my application in the hosting environment.

    I have written mails to some great guys around Microsoft but they have given some answer that hardly solve the problem.

    It's about CAS (Code Access Security). Enterprise library app. blocks are given the SecurityPermission and EnvironmentPermission attributes. But in the hosting environment they are not given the required permissions.

    That's the problem.

    So either you can remove those attributes from the assemblyinfo.cs files of individual app. blocks or ask your hosting partner to grant those permissions to the required assemblies.

    Both the solutions are not logical so I have already written a wrapper assembly which implements the classes of enterprise library in simple ado.net.

    If you have any other work-around let me know.

     

Page 1 of 1 (3 items)
Microsoft Communities
Page view counter