“/webcms”应用程序中的服务器错误。
--------------------------------------------------------------------------------Exception decrypting. Decryption failed. 该项不适于在指定状态下使用。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.Exception: Exception decrypting. Decryption failed. 该项不适于在指定状态下使用。 源错误:
行 31:
行 32: //Database connection strings
行 33: public static readonly string CONN_STRING_NON_DTC = ConnectionInfo.DecryptDBConnectionString(ConfigurationSettings.AppSettings["SQLConnString1"]);
行 34:
行 35: // Hashtable to store cached parameters
源文件: e:\webcms\dal\sqlhelper.cs 行: 33 堆栈跟踪:
[Exception: Exception decrypting. Decryption failed. 该项不适于在指定状态下使用。
]
CMS.Utility.DataProtector.Decrypt(Byte[] cipherText, Byte[] optionalEntropy)
CMS.Utility.ConnectionInfo.DecryptDBConnectionString(String InputConnectionString)
WebCms.DAL.SQLHelper..cctor() in e:\webcms\dal\sqlhelper.cs:33[TypeInitializationException: “WebCms.DAL.SQLHelper”的类型初始值设定项引发异常。]
WebCms.Default.PageChanged(Object sender, DataGridPageChangedEventArgs e) in E:\webcms\Default.aspx.cs:60
WebCms.Controls.SimplePager.OnPageIndexChanged(DataGridPageChangedEventArgs e) in E:\webcms\Controls\SimplePager.cs:154
WebCms.Controls.SimplePager.SetPage(Int32 index) in E:\webcms\Controls\SimplePager.cs:79
WebCms.Controls.SimplePager.OnLoad(EventArgs e) in E:\webcms\Controls\SimplePager.cs:86
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain()
--------------------------------------------------------------------------------Exception decrypting. Decryption failed. 该项不适于在指定状态下使用。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.Exception: Exception decrypting. Decryption failed. 该项不适于在指定状态下使用。 源错误:
行 31:
行 32: //Database connection strings
行 33: public static readonly string CONN_STRING_NON_DTC = ConnectionInfo.DecryptDBConnectionString(ConfigurationSettings.AppSettings["SQLConnString1"]);
行 34:
行 35: // Hashtable to store cached parameters
源文件: e:\webcms\dal\sqlhelper.cs 行: 33 堆栈跟踪:
[Exception: Exception decrypting. Decryption failed. 该项不适于在指定状态下使用。
]
CMS.Utility.DataProtector.Decrypt(Byte[] cipherText, Byte[] optionalEntropy)
CMS.Utility.ConnectionInfo.DecryptDBConnectionString(String InputConnectionString)
WebCms.DAL.SQLHelper..cctor() in e:\webcms\dal\sqlhelper.cs:33[TypeInitializationException: “WebCms.DAL.SQLHelper”的类型初始值设定项引发异常。]
WebCms.Default.PageChanged(Object sender, DataGridPageChangedEventArgs e) in E:\webcms\Default.aspx.cs:60
WebCms.Controls.SimplePager.OnPageIndexChanged(DataGridPageChangedEventArgs e) in E:\webcms\Controls\SimplePager.cs:154
WebCms.Controls.SimplePager.SetPage(Int32 index) in E:\webcms\Controls\SimplePager.cs:79
WebCms.Controls.SimplePager.OnLoad(EventArgs e) in E:\webcms\Controls\SimplePager.cs:86
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain()
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货