当前位置:网站首页>[.Net core] solution to error reporting due to too long request length

[.Net core] solution to error reporting due to too long request length

2022-07-06 18:13:00 MoFe1

If it exists in the project web.config file , Add the following nodes to the file

<system.webServer>
				<security>
					<requestFiltering>
						<requestLimits maxQueryString="1073741824" />
					</requestFiltering>
				</security>
			</system.webServer>

If it doesn't exist in the project web.config file , Add the file in the project directory :

Right click under the project folder path -》 add to -》 New item , Select in the pop-up dialog box

Click Add , Add the above node to the added file

原网站

版权声明
本文为[MoFe1]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/187/202207061006071600.html