登录时,内部服务器错误(500)出现在重定向页面中

时间:2017-02-13 10:40:39

标签: c# asp.net-core internal-server-error

描述

我在本地部署了两个网站。一个是我的主要网站版本 $('.ui-autocomplete').css('margin-left','25%') //center align $('.ui-autocomplete').css('max-width','38%') //hit and trial $('.ui-autocomplete').css('min-width','38%') //hit and trial ,如(.NET-Core),另一个是关于登录和注册构建的网站a.butter.com,如(.NET-Framework)。今天,当我想点击我的主网站passport.butter.com中的Login时,我发现已成功登录并返回ReturnUrl a.butter.com。但该页面显示错误内部服务器错误(500)。任何人都可以帮我解释原因吗?

错误消息

  

[错误]连接ID"" 0HL2JU00MCUG0"":应用程序抛出了未处理的异常。   System.AggregateException:发生一个或多个错误。 (响应状态代码不表示成功:500(内部服务器错误)。)---> System.Net.Http.HttpRequestException:响应状态代码未指示成功:500(内部服务器错误)。

邮递员

错误

  

消息":"发生了错误。",

     

" ExceptionMessage":"执行加密>操作时出错。",   " ExceptionType":" System.Security.Cryptography.CryptographicException",

1 个答案:

答案 0 :(得分:0)

我明白了。解决方案就是这样。加密和解码基于web.config中的MachineKey。

C# web.config ... <machineKey decryption="AES" decryptionKey="223423424234234234SFSDFASGDGREGG" validation="SHA1" validationKey="436346RETEWRGSDAFASDFDSVASDFFASDDGRAGRGSFADFVAVDCSADCETREG" compatibilityMode="Framework45"/> ...  我发现passport.butter.com中的配置与另一个配置不同。所以,它出现了错误。当我将MachineKey更改为与其他人相同并解决了我的问题。

相关问题