Note that there are some explanatory texts on larger screens.

plurals
  1. POSecurity exception when passing .net 3.5 to 4.0
    primarykey
    data
    text
    <p>We have some issues while migrating our Asp.Net Web Application .Net 3.5 to .Net 4.0.</p> <p>It seemed that we had a Caspol Security Exception, so we added this to our web.config :</p> <pre><code>&lt;runtime&gt; &lt;NetFx40_LegacySecurityPolicy enabled="true"/&gt; &lt;/runtime&gt; </code></pre> <p>and nothing changed. It seem that we cannot execute the assembly "Microsoft.Web.Management.Iis" in AspNet 4.0. We executed the caspol.exe utility in .Net 4.0 to grant full trust permission with no success.</p> <p>When we used the local administrator account on the application pools, all work fine. But when we used a domain adminstrator user account, we got this error below : </p> <pre><code>[PolicyException: Required permissions cannot be acquired.] System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet&amp; denied, Boolean checkExecutionPermission) +6502926 System.Security.SecurityManager.ResolveCasPolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet&amp; denied, Int32&amp; securitySpecialFlags, Boolean checkExecutionPermission) +99 [FileLoadException: Could not load file or assembly 'Microsoft.Web.Management.Iis, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)] </code></pre> <p>We are running in win2k8 r2 environment with aspnet 2.0 and 4.0 running on the iis 7.5.</p> <p>Do you have any suggestion to solve our problems.</p> <p>Thanks</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload