一个关于在虚拟主机上实现RSAPKCS1SignatureFormatter的问题在本地进行ras没问题,传到空间上报错The action that failed was: Demand The type of the first permission that failed was: System.Security.Permissions.KeyContainerPermission The Zone of the assembly that failed was: MyComputer 我看到国外的资料好像是权限的问题。。怎么解决RSAPKCS1SignatureFormatter f = new RSAPKCS1SignatureFormatter(rsa);
                f.SetHashAlgorithm("SHA1");
                byte[] source1 = System.Text.ASCIIEncoding.ASCII.GetBytes(h_string);
                SHA1Managed sha = new SHA1Managed();
                byte[] result1 = sha.ComputeHash(source1);               
                byte[] b1 = f.CreateSignature(result1);