Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Dan Evans 631 posts 1018 karma points
    Mar 08, 2013 @ 19:16
    Dan Evans
    0

    Maximum request length exceeded - in Contour on Upgrade to Umbraco 6

    Just upgraded to U6 and getting this error on Contour forms. The max request length is set OK in web.config

    <httpRuntime requestValidationMode="2.0" maxRequestLength="500000000" />

    Server Error in '/' Application.

    Maximum request length exceeded.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

    Exception Details: System.Web.HttpException: Maximum request length exceeded.

    Source Error: 

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace: 

    [HttpException (0x80004005): Maximum request length exceeded.]
       System.Web.HttpRequest.GetEntireRawContent() +11486151
       System.Web.HttpRequest.FillInFormCollection() +261
       System.Web.HttpRequest.get_Form() +157
       System.Web.HttpRequest.get_Item(String key) +56
       Umbraco.Web.Routing.LookupByPageIdQuery.TrySetDocument(PublishedContentRequest docRequest) +67
       System.Linq.Enumerable.Any(IEnumerable`1 source, Func`2 predicate) +149
       Umbraco.Web.Routing.PublishedContentRequestBuilder.LookupDocument1() +239
       Umbraco.Web.Routing.PublishedContentRequestBuilder.LookupDocument() +226
       Umbraco.Web.Routing.PublishedContentRequest.ProcessRequest(HttpContextBase httpContext, UmbracoContext umbracoContext, Action`1 onSuccess) +187
       System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +80
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +270

     

  • Dan Evans 631 posts 1018 karma points
    Mar 10, 2013 @ 15:52
    Dan Evans
    0

    In addition when we preview a contour form this error occurs:

     

    Error loading Razor Script MvcRenderContourForm.cshtml

  • Dan Evans 631 posts 1018 karma points
    Mar 10, 2013 @ 18:05
    Dan Evans
    0

    And now getting:

     

    The view at '/umbraco/plugins/umbracoContour/Views/Form.cshtml' must derive from WebViewPage, or WebViewPage.

  • Dan Evans 631 posts 1018 karma points
    Mar 10, 2013 @ 20:01
    Dan Evans
    0

    OK the preview is now working fine - I'd missed out some config settings in web.config for MVC

    However the form is still returning a maxrequestlength exceeded error on this URL:

    http://www.britishlegion.org.uk/about-us/contact-us/contact-us-form/general-enquiries/legionline

    However EXACTLY the same form on this URL works:

    http://www.britishlegion.org.uk/form-test

    I am wondering if there is some issue with path lengths?

Please Sign in or register to post replies

Write your reply to:

Draft