System.Security.Policy.PolicyException: Required permissions cannot be acquired.

The error System.Security.Policy.PolicyException: Required permissions cannot be acquired was encountered on a Helm managed system for ASP .NET2 when attempting to use the ChilkatDotNet2.dll .

This post describes an error received when trying to use some 3rd party DLLs. The article listed below describes this situation in full –

Some DLLs require Full Trust because they contain unmanaged code, or communicate via TCP/IP sockets in various protocols: FTP, HTTP, POP3, SMTP, IMAP, etc. In this case, setting a strict Medium Trust will cause a failure.

http://www.chilkatsoft.com/p/p_243.asp

The fix is to assign the specific DLLs higher than Medium Trust. The procedures are discussed here for Chillkat Components:

http://www.chilkatsoft.com/p/p_116.asp

Relevant quick facts:

  • On a default Helm configuration, the file to edit is web_mymediumtrust.config
  • Location of this file is at: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG
  • PublicKeyBlob is needed if this procedure is repeated for other DLLs.
Tags: , , , | Posted under ASP .NET 2, Windows Server Admin | RSS 2.0

2 Comments on System.Security.Policy.PolicyException: Required permissions cannot be acquired.

  1. yоu are trulу a excellent webmаster.
    Τhe wеb site loading veloсіtу is amazing.
    Ιt sort οf feеls that уou аre dоing any unique trick.
    Morеovег, The cоntentѕ aгe masteгωork.
    уοu’ve performed a great job on this matter!

Leave a Reply

Your email address will not be published. Required fields are marked *


× 3 = 9

You may use these HTML tags and attributes: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>