2

I've noticed that when I enter a URL to my WCF, I get the response correctly if it's below 410 characters long. As I add the 410:th character in the URL line, I get 400 - bad URL.

I increased the max length of URL line as described here in my config file. To no avail.

What do I miss? What can be done?

It should work as decribed in this thread. I'm probably doing something wrong. This is my config-part.

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

Is that something that can be set in behaviors? Or on endpoints?!

Community
  • 1
  • 1
Konrad Viltersten
  • 36,151
  • 76
  • 250
  • 438

0 Answers0