This is a migrated thread and some comments may be shown as answers.

[Solved] IIS 500 error when clicking on nodes

2 Answers 194 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Andy Wardle
Top achievements
Rank 1
Andy Wardle asked on 20 Feb 2008, 11:32 AM
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

2 Answers, 1 is accepted

Sort by
0
Andy Wardle
Top achievements
Rank 1
answered on 20 Feb 2008, 12:10 PM
Argh, I feel like an idiot :)

I have fixed this problem already and as usual it was a user error. I had an error in one of my CSS files that was pulling a background image from one of your WebResource files that was causing the issue.
0
Veselin Vasilev
Telerik team
answered on 22 Feb 2008, 09:58 AM
Hi Andy Wardle,

We are glad that you've managed to resolve the problem by yourself.


Best wishes,
Veskoni
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
TreeView
Asked by
Andy Wardle
Top achievements
Rank 1
Answers by
Andy Wardle
Top achievements
Rank 1
Veselin Vasilev
Telerik team
Share this question
or