md5.create and System.UnauthorizedAccessException RRS feed

  • Question

  • Hello,

    one of our customers get an System.UnauthorizedAccessException when our C# 4.0 tries to execute

    using (MD5 md5 = MD5.Create())

    the call stack is

    System.UnauthorizedAccessException: Zugriff verweigert (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
       at System.BaseConfigHandler.RunParser(String fileName)
       at System.ConfigTreeParser.Parse(String fileName, String configPath, Boolean skipSecurityStuff)
       at System.Security.Cryptography.CryptoConfig.OpenCryptoConfig()
       at System.Security.Cryptography.CryptoConfig.InitializeConfigInfo()
       at System.Security.Cryptography.CryptoConfig.CreateFromName(String name, Object[] args)
       at System.Security.Cryptography.MD5.Create()

    Zugriff verweigert  == Access denied.

    Kann somebody explain, what must be changed on the system of the customer, so that


    doesn't throw an exception anymore ?

    Friday, May 23, 2014 1:24 PM


All replies