错误的请求无效的网址

时间:2013-08-24 17:46:40

标签: c# wcf url web-config

我注意到当我输入WCF的URL时,如果它长度低于410个字符,我会得到正确的响应。当我在URL行中添加第410个字符时,我得到400 - 错误的URL。

我在配置文件中将URL行的最大长度增加为described here。无济于事。

我想念什么?可以做些什么?

它应该像所描述的那样in this thread。我可能做错了什么。这是我的配置部分。

<configuration>
  <system.web>
    <compilation debug="true" targetFramework="4.5"/>
    <httpRuntime maxUrlLength="4096"/>
    <customErrors mode="Off"/>
    <pages controlRenderingCompatibilityVersion="4.0"/>
  </system.web>
  <system.serviceModel>

这可以在行为中设置吗?或者在端点上?!

0 个答案:

没有答案