Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Feb 24, 2012 06:49 AM by Song-Tian - MSFT
Member
34 Points
22 Posts
Feb 21, 2012 09:34 PM|LINK
I used an ajax AsyncFileUpload for save images.
In the localhost, all is correct, but in the development server only save little files (max 276 kb), if the size file es > 276kb is display the message: Server Response Error: 'Unknown Server error'
The web.config:
<httpRuntime maxQueryStringLength="100000" maxRequestLength="51100" executionTimeout="36000" requestLengthDiskThreshold="15360" useFullyQualifiedRedirectUrl="false"
The Code C#:
...
string nombre = (string)ViewState["nombreFecha"] + fileExtension; archivo.SaveAs(Server.MapPath(ConfigurationManager.ConnectionStrings["rutaArchivo"].ConnectionString + "\\" + nombre));
As I say in the begin, the problem is only in the development server
All-Star
65759 Points
11153 Posts
Feb 22, 2012 02:13 AM|LINK
Hi, Please refer this
http://blog.mrt-web.com/2010/12/ajax-control-toolkit-asyncfileupload.html
http://forums.asp.net/p/1478903/3446599.aspx
http://forums.asp.net/t/1751822.aspx/1
http://stackoverflow.com/questions/3426864/asyncfileupload-how-do-i-hide-the-max-request-length-exceeded-alert-error
Feb 22, 2012 08:57 PM|LINK
All this pages indicate add code that is found in my code.
43697 Points
4304 Posts
Microsoft
Feb 24, 2012 06:49 AM|LINK
Hi,
Please check the server. I think your code is no problem.
Trover
Member
34 Points
22 Posts
AsyncFileUpload only save little files
Feb 21, 2012 09:34 PM|LINK
I used an ajax AsyncFileUpload for save images.
In the localhost, all is correct, but in the development server only save little files (max 276 kb), if the size file es > 276kb is display the message: Server Response Error: 'Unknown Server error'
The web.config:
<httpRuntime maxQueryStringLength="100000" maxRequestLength="51100" executionTimeout="36000"
requestLengthDiskThreshold="15360" useFullyQualifiedRedirectUrl="false"
The Code C#:
...
string nombre = (string)ViewState["nombreFecha"] + fileExtension;
archivo.SaveAs(Server.MapPath(ConfigurationManager.ConnectionStrings["rutaArchivo"].ConnectionString + "\\" + nombre));
...
As I say in the begin, the problem is only in the development server
chetan.sarod...
All-Star
65759 Points
11153 Posts
Re: AsyncFileUpload only save little files
Feb 22, 2012 02:13 AM|LINK
Hi, Please refer this
http://blog.mrt-web.com/2010/12/ajax-control-toolkit-asyncfileupload.html
http://forums.asp.net/p/1478903/3446599.aspx
http://forums.asp.net/t/1751822.aspx/1
http://stackoverflow.com/questions/3426864/asyncfileupload-how-do-i-hide-the-max-request-length-exceeded-alert-error
Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.
Trover
Member
34 Points
22 Posts
Re: AsyncFileUpload only save little files
Feb 22, 2012 08:57 PM|LINK
All this pages indicate add code that is found in my code.
Song-Tian - ...
All-Star
43697 Points
4304 Posts
Microsoft
Re: AsyncFileUpload only save little files
Feb 24, 2012 06:49 AM|LINK
Hi,
Please check the server. I think your code is no problem.
Feedback to us
Develop and promote your apps in Windows Store