我在asp.net中使用上传功能并执行此操作
string root = HostingEnvironment.MapPath("~/App_Data");
string imageName = "";
var streamProvider = new MultipartFormDataStreamProvider(root);
try
{
await Request.Content.ReadAsMultipartAsync(streamProvider); // error "Error reading MIME multipart body part." + Cannot access a disposed object.
.... more code
我确定我为App_Data文件夹提供了完全权限,但仍然收到此错误。任何身体可以帮助我吗?
顺便说一下,我已经开始了
maxAllowedContentLength =" 524288000" />