Server Error in '/' Application.

Bad Data.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Security.Cryptography.CryptographicException: Bad Data.


Source Error:


Line 15:         if (Request.QueryString.ToString().Contains("pid"))
Line 16:         {
Line 17:             if (!string.IsNullOrEmpty(new NetshellGovtMedicalCollegeLibrary.NetshellGeneralTasks.NetshellgeneralTask().NetshellDecription(Request.QueryString[0])))
Line 18:             {
Line 19:                 int x = Convert.ToInt32(new NetshellGovtMedicalCollegeLibrary.NetshellGeneralTasks.NetshellgeneralTask().NetshellDecription(Request.QueryString[0]));

Source File: c:\inetpub\vhosts\gmcs.ac.in\gmcs.edu.in\InnerPageLevel3.aspx.cs    Line: 17

Stack Trace:


[CryptographicException: Bad Data.
]
   System.Security.Cryptography.CryptographicException.ThrowCryptographicException(Int32 hr) +43
   System.Security.Cryptography.Utils._DecryptData(SafeKeyHandle hKey, Byte[] data, Int32 ib, Int32 cb, Byte[]& outputBuffer, Int32 outputOffset, PaddingMode PaddingMode, Boolean fDone) +0
   System.Security.Cryptography.CryptoAPITransform.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount) +285
   NetshellCoreDLL.Security.NetshellSecurity.DE(String Message, String Key) in F:\Netshell\InProd\TFS\NetshellCoreDll\NetshellCoreDLL\Security\NetshellSecurity.cs:100
   NetshellGovtMedicalCollegeLibrary.NetshellGeneralTasks.NetshellgeneralTask.NetshellDecription(String text) +60
   InnerPageLevel3.Page_PreInit(Object sender, EventArgs e) in c:\inetpub\vhosts\gmcs.ac.in\gmcs.edu.in\InnerPageLevel3.aspx.cs:17
   System.Web.UI.Page.OnPreInit(EventArgs e) +11691640
   System.Web.UI.Page.PerformPreInit() +47
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +335


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4494.0