例1:用Linux下的curl命令发送POST请求给Apache服务器上的HTML静态页 [root@new-host ~]# curl -d 1=1 http://www.sohu.com/index.html<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><HTML><HEAD><TITLE>405 Method Not Allowed</TITLE></HEAD&…
总结列表: 1. There is already an open DataReader associated with this Connection which must be closed first 2. npm install 失败 3. WebApi HTTP Put 405 Method not allowed 服务器升级了IIS,WebApi项目的put接口全部报405 搜索发现解决方案不少,尝试了张善友博客给出的解决方案,问题解决. IIS7.5上的REST服务的Put操作发生…
问题由来:.net core api之前是用 .net core 2.0开发的,测试过都是正常的,近期升级到了3.0,发现api get正常,post提示400,405 Method Not Allowed 查找没有找到原因,就在本地调试,提示错误信息: System.InvalidOperationException: Synchronous operations are disallowed. Call ReadAsync or set AllowSynchronousIO to true…