none
.NET error Request for the permission of type securityPermission for shared assembly on network RRS feed

  • Question

  • Hello,
          We have following error while running one of .net assembly from our COM application.

    Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed

    The COM application built on mixed mode with .NET2.0 and VC++2008 and runs on various enviroments. but at
    customer production fails with above error. Tried with different settings and CASPOL commands below but
    still we get errors when running from SHARED drive

    -Registered with regasm C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>regasm /codebase \\Machinexxx\folder1\\bin\Validation.dll

    -Gave full trust to assemblies from .net configuration manager.
    - caspol.exe -quiet -machine -addgroup All_Code -url "\\machine-xx01\folder1\Bin\*" LocalIntranet
    - caspol.exe -m -ag LocalIntranet_Zone -url "\\machine-xx01\folder1\Bin\*" FullTrust –n FullTrustshare
    ...
    after various caspol commands, which were successful, we did restart machine, but still when running
    the application with that DLL it will throw above security error.

    Any pointers or help much appreciated.

    kirann,

    Thursday, November 11, 2010 12:37 PM

All replies