CryptographicException:ASP.NET中需要签名方法

时间:2013-11-13 20:25:11

标签: asp.net visual-studio-2012 iis-7.5 cryptographicexception

在Visual Studio 2012中,使用内置服务器(“使用Visual Studio开发服务器”)在调试模式下运行时,以下代码运行正常:

    Dim mySignedXml As SignedXml = SignResponse(doc, cert)
    Dim xml As XmlElement = mySignedXml.GetXml()  

但是当我在Visual Studio中选择“使用本地IIS Web服务器”设置时, GetXml()方法失败并显示以下错误:

     System.Security.Cryptography.CryptographicException: 
     A signature method is required.

这是在Windows 7 x64 PC上,而不是服务器上。必须对本地IIS Web服务器配置进行哪些更改,以便此代码也适用于此处?

0 个答案:

没有答案