Take the community feedback survey now.

Error caused by a lot of AllowedTypes on a page type content area

Vote:
 

I have a page content type with a content area that defines a lot of allowed types. When using the 'select content' option on the content area a 404 error is thrown as the types are appended to the query string to query the content and the query string is too long as there are so many types.

Has anyone encountered this before and know how to handle it so the 404 doesn't happen?

Allowing all types is not really an option as some of the blocks are designed to be created/added to content areas on other blocks rather than this and other page types.

This is CMS 11

Thanks in advance

#340890
Nov 04, 2025 9:24
Vote:
 

This appears to be an IIS-problem

Try adjusting the requestLimits in web.config

e.g.

<configuration>
  <system.webServer>
    <security>
      <requestFiltering>
        <!-- adjust as needed -->
        <requestLimits maxQueryString="16384" maxUrl="8192" />
      </requestFiltering>
    </security>
  </system.webServer>
</configuration>
#340895
Nov 04, 2025 14:16
Vote:
 

I've already tried that and it didn't work unfortunately

#340898
Nov 04, 2025 17:16
Vote:
 

Alright, possibly you'll need to set the httpRuntime property as well

e.g.

<configuration>
  <system.web>
    <httpRuntime maxQueryStringLength="32768" maxUrlLength="65536" />
  </system.web>
  <system.webServer>
    <security>
      <requestFiltering>
        <requestLimits maxQueryString="32768" maxUrl="65536" />
      </requestFiltering>
    </security>
  </system.webServer>
</configuration>

Do you know what 404 it is? e.g 404.15?

#340899
Nov 04, 2025 17:45
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.