aspnet / Mvc

[Archived] ASP.NET Core MVC is a model view controller framework for building dynamic web sites with clean separation of concerns, including the merged MVC, Web API, and Web Pages w/ Razor. Project moved to https://github.com/aspnet/AspNetCore
Apache License 2.0
5.62k stars 2.14k forks source link

.net core post unable to receive #8764

Closed eyiadmin closed 5 years ago

eyiadmin commented 5 years ago

exceptional information is returned when the amount of post data is too large,the exception mesaage is "C:\Users\ADMINI~1\AppData\Local\Temp\2\" "at Microsoft.AspNetCore.Http.Internal.BufferingHelper.get_TempDirectory() at Microsoft.AspNetCore.WebUtilities.FileBufferingReadStream.CreateTempFile() at Microsoft.AspNetCore.WebUtilities.FileBufferingReadStream.ReadAsync(Byte[] buffer, Int32 offset, Int32 count, CancellationToken cancellationToken) at Microsoft.AspNetCore.WebUtilities.StreamHelperExtensions.DrainAsync(Stream stream, ArrayPool1 bytePool, Nullable1 limit, CancellationToken cancellationToken) at Microsoft.AspNetCore.Mvc.Formatters.JsonInputFormatter.ReadRequestBodyAsync(InputFormatterContext context, Encoding encoding) at Microsoft.AspNetCore.Mvc.ModelBinding.Binders.BodyModelBinder.BindModelAsync(ModelBindingContext bindingContext) at Microsoft.AspNetCore.Mvc.ModelBinding.ParameterBinder.BindModelAsync(ActionContext actionContext, IModelBinder modelBinder, IValueProvider valueProvider, ParameterDescriptor parameter, ModelMetadata metadata, Object value) at Microsoft.AspNetCore.Mvc.Internal.ControllerBinderDelegateProvider.<>c__DisplayClass0_0.<g__Bind|0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeInnerFilterAsync() at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeNextExceptionFilterAsync()"

mkArtakMSFT commented 5 years ago

Thanks for contacting us, @eyiadmin. Please provide more details regarding your error. It's not clear which version of the SDK you use as well as what your scenario is. Also, please provide a repro project for us to investigate the issue. On the side note, it may be you're facing the max request size limit. Have a look at: https://github.com/aspnet/Announcements/issues/267

mkArtakMSFT commented 5 years ago

Hi. We're closing this issue as we have heard no response from you for some time now. If you have more details and are encountering this issue please add a new reply and re-open the issue.