coerrace
asked on
404 IIS 7 ASP.NET Big File Upload Problem
I have the script at the bottom to upload files. If I upload files les than 20 mb around no problem upload perfect but if I put a 179 mb file or higher the IIS7 give me this error:
(404) Not Found. I made a trace of the error and found tell this:
MODULE_SET_RESPONSE_ERROR_ STATUS
ModuleName RequestFilteringModule
Notification 1
HttpStatus 404
HttpReason Not Found
HttpSubStatus 13
ErrorCode 0
ConfigExceptionInfo
Notification BEGIN_REQUEST
ErrorCode The operation completed successfully. (0x0)
Could you tell me what can I do to solve the problem?
Thank you here is the code
String savePath = @"C:\inetpub\wwwroot\esp\a lianza\act ividades\n utricionII I\videoste mp0\";
if (FileUpload0.HasFile)
{
string FileExtention = System.IO.Path.GetExtensio n(FileUplo ad0.FileNa me);
if (FileExtention == ".flv")
{
String fileName = FileUpload0.FileName;
savePath += fileName;
FileUpload0.SaveAs(savePat h);
UploadVideo0StatusLabel.Te xt = "Todo se subió correctamente";
}
else
{
UploadVideo0StatusLabel.Te xt = "is not flv";
}
}
}
(404) Not Found. I made a trace of the error and found tell this:
MODULE_SET_RESPONSE_ERROR_
ModuleName RequestFilteringModule
Notification 1
HttpStatus 404
HttpReason Not Found
HttpSubStatus 13
ErrorCode 0
ConfigExceptionInfo
Notification BEGIN_REQUEST
ErrorCode The operation completed successfully. (0x0)
Could you tell me what can I do to solve the problem?
Thank you here is the code
String savePath = @"C:\inetpub\wwwroot\esp\a
if (FileUpload0.HasFile)
{
string FileExtention = System.IO.Path.GetExtensio
if (FileExtention == ".flv")
{
String fileName = FileUpload0.FileName;
savePath += fileName;
FileUpload0.SaveAs(savePat
UploadVideo0StatusLabel.Te
}
else
{
UploadVideo0StatusLabel.Te
}
}
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Works Thank you
ASKER
<configuration>
<system.web>
<customErrors mode="Off"/>
<authentication mode="Forms">
<forms name="TestAuthCookie" loginUrl="login.aspx" timeout="1000">
<credentials passwordFormat="Clear">
<user name="test" password="test"/>
<user name="test" password="test"/>
</credentials>
</forms>
</authentication>
<authorization>
<deny users="?"/>
</authorization>
<compilation targetFramework="4.0">
<assemblies>
<add assembly="System.Windows.F
<pages controlRenderingCompatibil
</system.web>
<system.webServer>
<security>
<requestFiltering>
<!-- maxAllowedContentLength: bytes -->
<requestLimits maxAllowedContentLength="3
</requestFiltering>
</security>
</system.webServer>
</configuration>
But now give me this error with my web.config an I want 2 upload a file of 200 mb that´s it.
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.Get
System.Web.HttpRequest.Get
System.Web.HttpRequest.Fil
System.Web.HttpRequest.get
System.Web.HttpRequest.get
System.Web.UI.Page.GetColl
System.Web.UI.Page.Determi
System.Web.UI.Page.Process