Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/asp.net-core/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typescript/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net core 502.3在ASP.net Core RC2中使用Post方法提交表单时发生网关错误_Asp.net Core_Entity Framework Core_Asp.net Core 1.0 - Fatal编程技术网

Asp.net core 502.3在ASP.net Core RC2中使用Post方法提交表单时发生网关错误

Asp.net core 502.3在ASP.net Core RC2中使用Post方法提交表单时发生网关错误,asp.net-core,entity-framework-core,asp.net-core-1.0,Asp.net Core,Entity Framework Core,Asp.net Core 1.0,我正在用Identity Core RC 2制作ERP。我面临一个非常奇怪的问题。我正在我的用户表“ASPNETUSER”和其他表之间建立关系。问题是,当我添加此关系时,当我发布表单进行插入时,我的应用程序开始出现502.3坏网关错误,但当我删除它时,它开始正常工作。请调查一下。我为此感到非常沮丧 提前谢谢。我相信我的工作是相关的 你也体验过记忆增长吗?试试这个,它对我有用: 用这个,, 将该类粘贴到项目中,并将以下行添加到ConfigureServices中 services.AddSingl

我正在用Identity Core RC 2制作ERP。我面临一个非常奇怪的问题。我正在我的用户表“ASPNETUSER”和其他表之间建立关系。问题是,当我添加此关系时,当我发布表单进行插入时,我的应用程序开始出现502.3坏网关错误,但当我删除它时,它开始正常工作。请调查一下。我为此感到非常沮丧

提前谢谢。

我相信我的工作是相关的


你也体验过记忆增长吗?

试试这个,它对我有用:

用这个,, 将该类粘贴到项目中,并将以下行添加到ConfigureServices中

services.AddSingleton<IModelBinderFactory, MyModelBinderFactory>();
services.AddSingleton();
详细说明:

尝试设置
options.SerializerSettings.ReferenceLoopHandling=Newtonsoft.Json.ReferenceLoopHandling.Ignore在中或更新部分中描述。亲爱的@Oleg!抱歉,您的解决方案无效。您是否也使用最新的
Newtonsoft.Json
?一般来说,重要的是要了解,任何长时间的操作(如在服务器代码的任何一行上设置断点并等待大约1分钟)都会导致502.3坏网关错误。这意味着502.3坏网关错误可能有很多原因。是不是在更改后应用程序需要很长时间才能启动和IIS超时?试着先在没有IIS/IISEcpress的情况下运行你的应用程序,看看发生了什么。是的,我知道。现在我正计划转移到其他选项