SoapException - Solved by granting full trust

Discussion in 'Site Programming, Development and Design' started by colman, Feb 22, 2011.

  1. I received the following error when trying to create a signature file. It was solved by granting "Full" trust in web.config per Winhost knowldgebase post. Thanks!

    Message=System.Web.Services.Protocols.SoapException: Server was unable to process request.
    ---> System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.KeyContainerPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

    at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)

    at System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission cap, StackCrawlMark& stackMark)

    at System.Security.CodeAccessPermission.Demand()

    at System.Security.Cryptography.RSACryptoServiceProvider.ImportParameters(RSAParameters parameters)

    at System.Security.Cryptography.RSA.FromXmlString(String xmlString)

    at myDomain.Library.WebServices.SignatureAdministrator.Sign(StringReader keyDocument, XmlDocument xmlDoc, Debug_Actions debugMode)
     
    Last edited by a moderator: Oct 14, 2015
  2. Ray

    Ray

    Last edited by a moderator: Oct 14, 2015

Share This Page