我做了一个WebServices并且发布好了。让后在一个Winfrom应该程序引用了这个WebServices。当引用发布的地址时如:http://aa.aaa.com,执行时出现 WebServices中的RSA加密算法获取密钥 的异常。当引用本地的http://localhost:3493/ReqService.asmx时可以正确执行

解决方案 »

  1.   

    在 System.Security.Cryptography.Utils.CreateProvHandle(CspParameters parameters, Boolean randomKeyContainer)
       在 System.Security.Cryptography.Utils.GetKeyPairHelper(CspAlgorithmType keyType, CspParameters parameters, Boolean randomKeyContainer, Int32 dwKeySize, SafeProvHandle& safeProvHandle, SafeKeyHandle& safeKeyHandle)
       在 System.Security.Cryptography.RSACryptoServiceProvider.GetKeyPair()
       在 System.Security.Cryptography.RSACryptoServiceProvider.ExportParameters(Boolean includePrivateParameters)
       在 System.Security.Cryptography.RSA.ToXmlString(Boolean includePrivateParameters)
       在 TONSU.DEncrypt.RSACryption.RSAKey(String& xmlKeys, String& xmlPublicKey)
       在 TSAService.ReqService.RequestTimeStamp(Int32 versiion, String hashType, String hashValue, String userIdCard, String userName, String worksName, String userIp, String& serialNumber) 位置 d:\我的文档\Visual Studio 2008\Projects\TSAService\TSAService\ReqService.asmx.cs:行号 69
      

  2.   

    没人会吗 。。还是我在上单机版的CSDN