gpt4 book ai didi

c# - Wcf 休息服务 URL 最大长度

转载 作者:太空宇宙 更新时间:2023-11-03 10:40:22 25 4
gpt4 key购买 nike

我的其余 wcf 服务工作正常。除了在某些情况下它会抛出错误的请求。

在一些搜索和检查中,似乎当 url 有更长的参数时。(有时 url 长度超过 1000)。它没有命中服务并立即抛出错误的请求。

http://testservice/Service.svc/endpoint/get/1/2/longparameter

我该如何应对这种情况?

最佳答案

我遇到了类似的问题,感谢 this answer能够通过添加以下内容来解决它:

<system.web>
<httpRuntime maxUrlLength="500" />
</system.web>

这对我有用,但在你的情况下,听起来你需要将它设置得更高。

关于c# - Wcf 休息服务 URL 最大长度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25547028/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com