1

Lets say I want to check if field with very long key exists in my database. So I query it like:

var fieldId = "Fields/Very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_LONG_FIELD_ID";

_fieldRepository.Get(fieldId);

And then I get BadRequest exception from RavenDB which says:

The length of the URL for this request exceeds the configured maxUrlLength value.

I am using RavenDb 2330 version.

Question: how can I increase the maxUrlLength property in RavenDb?

1
  • did you try to change UrlSegmentMaxLength in HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\HTTP\Parameters? Dec 18, 2013 at 16:40

1 Answer 1

0

You can't. Use Lazy operations - this will send it as a POST and avoid this error.

1
  • what do you mean lazy operations? as I understood it's not Raven exception it's IIS exception? Dec 18, 2013 at 22:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.