Hi,
During testing of our app we have noticed that after a while of clicking through the tree the app would become unresponsive. After further investigation using fiddler I have noticed that when clicking on a node in the tree an IIS 500 error is occuring when it trys to access a WebResource.axd file:
GET /IIArc_Web/WebResource.axd?d=NPCZaYD0ZnW9P1MaGCEsB4UaRMRZ6827zTR3Kjmm9KhaWc4Zx7PlGOv5499kWRCAz_05CCTd6mEHIdBrMF6FQs8UYvQRaJowxP2YZ6Nd7HY1&t=633359239360000000 HTTP/1.1
The problem being 2 fold, but I am not sure if one is causing the other. IIArc_Web is the Virtual Directory where the app is run on the dev machines, but when it is in the test environment it is under a different Virtual Directory as shown by this GET:
GET /app/WebResource.axd?d=E7IXwd0CmHOjAFORKtlsnrBlDyS0U-Wd-5rQt_TV-Z7AkkyqrUNKr3DIYgqAQSgISmaZyKdk6VAfCpud9vF5aVLFuZ_M96jNVCDE3NG1VyZnyszxqcCZpReQp8apo1E70&t=633130997540000000 HTTP/1.1
And the actual error that is getting returned is:
[CryptographicException: Padding is invalid and cannot be removed.]
System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]& outputBuffer, Int32 outputOffset, PaddingMode paddingMode, Boolean fLast) +1545747
System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount) +257
System.Security.Cryptography.CryptoStream.FlushFinalBlock() +30
System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Boolean useValidationSymAlgo) +164
System.Web.UI.Page.DecryptString(String s) +83
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest(HttpContext context) +148
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +358
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64
I am hoping if I can figure out why when clicking on the node in the tree it is looking for the WebResource.axd file in the wrong location will fix the exception that is being thrown.
Thanks,
Andy
During testing of our app we have noticed that after a while of clicking through the tree the app would become unresponsive. After further investigation using fiddler I have noticed that when clicking on a node in the tree an IIS 500 error is occuring when it trys to access a WebResource.axd file:
GET /IIArc_Web/WebResource.axd?d=NPCZaYD0ZnW9P1MaGCEsB4UaRMRZ6827zTR3Kjmm9KhaWc4Zx7PlGOv5499kWRCAz_05CCTd6mEHIdBrMF6FQs8UYvQRaJowxP2YZ6Nd7HY1&t=633359239360000000 HTTP/1.1
The problem being 2 fold, but I am not sure if one is causing the other. IIArc_Web is the Virtual Directory where the app is run on the dev machines, but when it is in the test environment it is under a different Virtual Directory as shown by this GET:
GET /app/WebResource.axd?d=E7IXwd0CmHOjAFORKtlsnrBlDyS0U-Wd-5rQt_TV-Z7AkkyqrUNKr3DIYgqAQSgISmaZyKdk6VAfCpud9vF5aVLFuZ_M96jNVCDE3NG1VyZnyszxqcCZpReQp8apo1E70&t=633130997540000000 HTTP/1.1
And the actual error that is getting returned is:
[CryptographicException: Padding is invalid and cannot be removed.]
System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]& outputBuffer, Int32 outputOffset, PaddingMode paddingMode, Boolean fLast) +1545747
System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount) +257
System.Security.Cryptography.CryptoStream.FlushFinalBlock() +30
System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Boolean useValidationSymAlgo) +164
System.Web.UI.Page.DecryptString(String s) +83
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest(HttpContext context) +148
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +358
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64
I am hoping if I can figure out why when clicking on the node in the tree it is looking for the WebResource.axd file in the wrong location will fix the exception that is being thrown.
Thanks,
Andy