I am running a page that is trying to send files over 4mb to a server. I did set the httpRuntime attribute to be larger in both the client and server side web.config files. Also my IT guy reset my IIS to handle up to 1 GB of data. This program still wont
send the files. and i get this error.
Server Error in '/SQA' Application.
--------------------------------------------------------------------------------
System.Web.Services.Protocols.SoapException: There was an exception running the extensions specified in the config file. ---> System.Web.HttpException: Maximum request length exceeded.
at System.Web.HttpRequest.GetEntireRawContent()
at System.Web.HttpRequest.get_InputStream()
at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
--- End of inner exception stack trace ---
at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
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.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: There was an exception running the extensions specified in the config file. ---> System.Web.HttpException: Maximum request length exceeded.
at System.Web.HttpRequest.GetEntireRawContent()
at System.Web.HttpRequest.get_InputStream()
at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
--- End of inner exception stack trace ---
at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
Did you check your web.config file for the maximum request length allowed? Search for this tag <httpRuntime> and check out the value for the attribute maxRequestLength. I guess the default is 4 mb, set it to a higher size. Else add the following node to
your web.config (if its not available)
I see that you've already tried increasing the size etc, but you may want to see this one too for the rest of the information: http://weblogs.asp.net/jgalloway/archive/2008/01/08/large-file-uploads-in-asp-net.aspx
Well like I said before... the maxRequestLength is set.
Update. I found out that the program works when i send the file on the client side. When i try to send over 4MB with the web service it fails. The web.config file is correct for the web service too.
TheDiddy
Member
48 Points
165 Posts
httpRuntime Error
Jul 10, 2009 04:03 PM|LINK
I am running a page that is trying to send files over 4mb to a server. I did set the httpRuntime attribute to be larger in both the client and server side web.config files. Also my IT guy reset my IIS to handle up to 1 GB of data. This program still wont send the files. and i get this error.
Please help
LOVE THIS SITE! So helpful!
a.karthik
Member
174 Points
37 Posts
Re: httpRuntime Error
Jul 10, 2009 04:30 PM|LINK
Hi,
Did you check your web.config file for the maximum request length allowed? Search for this tag <httpRuntime> and check out the value for the attribute maxRequestLength. I guess the default is 4 mb, set it to a higher size. Else add the following node to your web.config (if its not available)
<configuration> <system.web> <httpRuntime maxRequestLength="32768" /> </system.web> </configuration>Hope this helps!
! My Blog
shanakaperer...
Member
46 Points
8 Posts
Re: httpRuntime Error
Jul 10, 2009 04:32 PM|LINK
did you change the 'maxRequestLength' value in machine and webconfig files?
Click here for more info
TheDiddy
Member
48 Points
165 Posts
Re: httpRuntime Error
Jul 10, 2009 08:44 PM|LINK
Yes they have been changed and the IIS settings are good too.
Its set to 102400 actually
PeteNet
All-Star
81342 Points
11398 Posts
Re: httpRuntime Error
Jul 10, 2009 09:59 PM|LINK
use a HttpModule to transfer, sample: http://dotnetslackers.com/Community/blogs/haissam/archive/2008/09/12/upload-large-files-in-asp-net-using-httpmodule.aspx
I see that you've already tried increasing the size etc, but you may want to see this one too for the rest of the information: http://weblogs.asp.net/jgalloway/archive/2008/01/08/large-file-uploads-in-asp-net.aspx
Peter
viral sarvai...
Participant
848 Points
268 Posts
Re: httpRuntime Error
Jul 11, 2009 11:00 AM|LINK
write below code in the web.config
<httpRuntime maxRequestLength="32768" />
may be this will help full to you
Blogs : http://codesimplified.com
TheDiddy949
Member
8 Points
4 Posts
Re: httpRuntime Error
Jul 11, 2009 03:12 PM|LINK
Well like I said before... the maxRequestLength is set.
Update. I found out that the program works when i send the file on the client side. When i try to send over 4MB with the web service it fails. The web.config file is correct for the web service too.
TheDiddy949
Member
8 Points
4 Posts
Re: httpRuntime Error
Jul 12, 2009 11:33 PM|LINK
Any ideas of what is wrong!??!
malcolms
All-Star
18687 Points
3124 Posts
MVP
Re: httpRuntime Error
Jul 13, 2009 12:51 AM|LINK
Could you try removing the old temporary ASP.NET files and resetting IIS?
So remove the files from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files.
TheDiddy
Member
48 Points
165 Posts
Re: httpRuntime Error
Jul 13, 2009 03:59 PM|LINK
That was done... still failing on the server side.