I was wondering if anyone knows what's wrong with my form. I mad e a form for a friend on his translation website
www.christianlingua.com. The form is supposed to be used to get translation files for further quote view. The problem is that somehow it can't accept files with more than 4 mb. I have checked with the server, and there's
no limit from their side. I have also tweaked it in the web config to increase the limit of file upload. But unfortunately there are translation files which are bigger than 4Mb, and currently it doesn't work.
As we all know that, Machine.config is configured to accept HTTP Requests upto 4096 KB (4 MB) and it is reflected in all your ASP.NET applications.
In order to resolve this issue, you need to change the maxRequestLength attribute of the <httpRuntime>. You may also need to set
executionTimeout a larger number in case the upload speed is too slow.
Note: You don't need to set either of these settings to big otherwise it is easy to be attacked by DOS attacks.
In addition, please check your code and see whether there is some logic which redirects the page to error page when the upload file is too big.
Best wishes,
Please mark the replies as answers if they help or unmark if not.
Feedback to us
mo_aspworker
Member
1 Points
2 Posts
translation attachment ASP.NET form
Dec 11, 2012 06:00 PM|LINK
Hello,
I was wondering if anyone knows what's wrong with my form. I mad e a form for a friend on his translation website www.christianlingua.com. The form is supposed to be used to get translation files for further quote view. The problem is that somehow it can't accept files with more than 4 mb. I have checked with the server, and there's no limit from their side. I have also tweaked it in the web config to increase the limit of file upload. But unfortunately there are translation files which are bigger than 4Mb, and currently it doesn't work.
Thanks in advance for all your support!
Michael
h.zahed@live...
Contributor
3171 Points
514 Posts
Re: translation attachment ASP.NET form
Dec 11, 2012 10:37 PM|LINK
Hi,
An alternate solution is to use Microsoft Translation API:
http://www.microsofttranslator.com/dev/
MCP-MCTS-MCPD
Mark the post as Answer, if it helped you in solving your question.
Catherine Sh...
All-Star
23382 Points
2490 Posts
Microsoft
Re: translation attachment ASP.NET form
Dec 13, 2012 09:08 AM|LINK
Hi,
As we all know that, Machine.config is configured to accept HTTP Requests upto 4096 KB (4 MB) and it is reflected in all your ASP.NET applications.
In order to resolve this issue, you need to change the maxRequestLength attribute of the <httpRuntime>. You may also need to set executionTimeout a larger number in case the upload speed is too slow.
Note: You don't need to set either of these settings to big otherwise it is easy to be attacked by DOS attacks.
In addition, please check your code and see whether there is some logic which redirects the page to error page when the upload file is too big.
Best wishes,
Feedback to us
Develop and promote your apps in Windows Store
geniusvishal
Star
14266 Points
2810 Posts
Re: translation attachment ASP.NET form
Dec 13, 2012 10:39 AM|LINK
Please increase the timeout period...
http://stackoverflow.com/questions/10293574/cant-upload-files-larger-than-4-mb-using-fileupload-in-asp-net-3-5
http://msdn.microsoft.com/en-us/library/system.net.mail.smtpclient.timeout.aspx
My Website
www.dotnetvishal.com
mo_aspworker
Member
1 Points
2 Posts
Re: translation attachment ASP.NET form
Dec 14, 2012 04:20 PM|LINK
Thanks! That helped!