Maximum Request Length Error

Apr 15, 2012 at 8:25 AM
Wondering if anyone has had experience with this error?

[HttpException (0x80004005): Maximum request length exceeded.]
   System.Web.HttpRequest.GetEntireRawContent() +9037883
   System.Web.HttpRequest.GetMultipartContent() +68
   System.Web.HttpRequest.FillInFormCollection() +247
   System.Web.HttpRequest.get_Form() +104
   System.Web.HttpRequestWrapper.get_Form() +11
   System.Web.Mvc.HttpRequestExtensions.GetHttpMethodOverride(HttpRequestBase request) +126
   System.Web.Mvc.AcceptVerbsAttribute.IsValidForRequest(ControllerContext controllerContext, MethodInfo methodInfo) +41
   System.Web.Mvc.HttpGetAttribute.IsValidForRequest(ControllerContext controllerContext, MethodInfo methodInfo) +40
   System.Web.Mvc.<>c__DisplayClass11.<RunSelectionFilters>b__d(ActionMethodSelectorAttribute attr) +24
   System.Linq.Enumerable.All(IEnumerable`1 source, Func`2 predicate) +145
   System.Web.Mvc.ActionMethodSelector.RunSelectionFilters(ControllerContext controllerContext, List`1 methodInfos) +319
   System.Web.Mvc.ActionMethodSelector.FindActionMethod(ControllerContext controllerContext, String actionName) +59
   System.Web.Mvc.ReflectedControllerDescriptor.FindAction(ControllerContext controllerContext, String actionName) +62
   System.Web.Mvc.ControllerActionInvoker.FindAction(ControllerContext controllerContext, ControllerDescriptor controllerDescriptor, String actionName) +16
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +105
   System.Web.Mvc.Controller.ExecuteCore() +116
   System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +97
   System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +10
   System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__5() +37
   System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +21
   System.Web.Mvc.Async.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _) +12
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +62
   System.Web.Mvc.<>c__DisplayClasse.<EndProcessRequest>b__d() +50
   System.Web.Mvc.SecurityUtil.<GetCallInAppTrustThunk>b__0(Action f) +7
   System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action) +22
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +60
   System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
   Orchard.Mvc.Routes.HttpAsyncHandler.EndProcessRequest(IAsyncResult result) in D:\WAC_Current\src\Orchard\Mvc\Routes\ShellRoute.cs:147
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +8970061
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +184
Apr 16, 2012 at 11:09 PM

oops

OK Web.config httprequest etc

 

now i have a real problem...

[OutOfMemoryException: Out of memory.]
   System.Drawing.Image.FromStream(Stream stream, Boolean useEmbeddedColorManagement, Boolean validateImageData) +1156938
   System.Drawing.Image.FromStream(Stream stream) +8
   Mello.ImageGallery.Services.ThumbnailService.CreateThumbnail(String image, String thumbnailFolderPath, String imageName, Int32 thumbnailWidth, Int32 thumbnailHeight, Boolean keepAspectRatio) in c:\HostingSpaces\cuposiscl\WAC_Orchard\Orchard.Web\Modules\Mello.ImageGallery\Services\ThumbnailService.cs:56
   Mello.ImageGallery.Services.ThumbnailService.GetThumbnail(String image, Int32 thumbnailWidth, Int32 thumbnailHeight, Boolean keepAspectRatio) in c:\HostingSpaces\cuposiscl\WAC_Orchard\Orchard.Web\Modules\Mello.ImageGallery\Services\ThumbnailService.cs:173
   Mello.ImageGallery.Services.ImageGalleryService.CreateImageFromMediaFile(MediaFile mediaFile, ImageGallerySettingsRecord imageGallerySettings) in c:\HostingSpaces\cuposiscl\WAC_Orchard\Orchard.Web\Modules\Mello.ImageGallery\Services\ImageGalleryService.cs:250
   Mello.ImageGallery.Services.<>c__DisplayClass1c.<CreateImageGalleryFromMediaFolder>b__19(MediaFile image) in c:\HostingSpaces\cuposiscl\WAC_Orchard\Orchard.Web\Modules\Mello.ImageGallery\Services\ImageGalleryService.cs:220
   System.Linq.WhereSelectListIterator`2.MoveNext() +110

Source Error: 

Line 54:             IStorageFile imageFile = _storageProvider.GetFile(image);
Line 55:             using (Stream imageStream = imageFile.OpenRead()) {
Line 56:                 using (Image drawingImage = Image.FromStream(imageStream))
Line 57:                 {
Line 58:                     bool shouldCreateImage = true;

please?