2010-09-15 2 views
0

Я получаю следующую ошибку в нашей среде QA, но только через обратный прокси IIS7. Если я ударил сервер приложений напрямую, он отлично работает. В нашей среде DEV он отлично работает через прокси-сервер или напрямую.«Прокладка недействительна и не может быть удалена». ошибка с завихрением

Я не уверен, с чем это связано, любые идеи?

Server Error in '/' Application. 
Padding is invalid and cannot be removed. 
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: Padding is invalid and cannot be removed. 

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 

Stack Trace: 

[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) +2910 
    System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount) +286 
    System.Security.Cryptography.CryptoStream.FlushFinalBlock() +51 
    System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, IVType ivType, Boolean useValidationSymAlgo) +318 
    System.Web.UI.Page.DecryptStringWithIV(String s, IVType ivType) +115 
    System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest(HttpContext context) +140 
    System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +599 
    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +171 


Version Information: Microsoft .NET Framework Version:2.0.50727.4952; ASP.NET Version:2.0.50727.4927 

ответ

1

Если это происходит на странице с послевузовское тогда, вероятно, ваш прокси convertting URL-адрес в строчных символов и взломать код.

У меня есть еще один больший ответ здесь с трюком, чтобы зарегистрировать ошибку и посмотреть, Что реально получить на странице:

CryptographicException: Padding is invalid and cannot be removed and Validation of viewstate MAC failed

+0

Спасибо, лесозаготовительной получил мне информацию мне нужно. – MyItchyChin

Смежные вопросы