andrew slaughter
andrew slaughter

Reputation: 1117

maxUrlLength maxQueryStringLength maxRequestPathLength

I have the following in the web.config file

<httpRuntime maxUrlLength="2097151" maxQueryStringLength="2097151" relaxedUrlToFileSystemMapping="true" />

However, if the url is really long it throws a 404 error in fact if the string is over 2096 characters long.

Does anyone know a work around?

thanks

Upvotes: 1

Views: 2869

Answers (1)

andrew slaughter
andrew slaughter

Reputation: 1117

ok for all those people who will encounter this problem.

In server 2012 go to your site -> "request filtering" -> "edit feature"

Then modify maximum url length and max query string bytes

Upvotes: 3

Related Questions