Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

How to change file upload limit in Cassini?
boble
#1 Posted : Wednesday, April 1, 2009 11:05:18 AM(UTC)
Groups: Member
Joined: 4/1/2009(UTC)
Posts: 1

Hi Everyone,

I am using Ultidev Cassini for ASP.Net 2.0 Web Server (assembly version 2.1.0.3) and having troubles uploading files with a size greater than 60 Mb.

What is the file upload limit in Cassini and how to change it?

Any help is really appreciated.

Thanks,
Slava
Ultidev Team
#2 Posted : Wednesday, April 1, 2009 12:26:58 PM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hello, Slava.

We are not aware of any artificial limits, but we'll investigate to determine whether it's a Cassini limitation or maybe an ASP.NET configurable request size limit that affecting the size of an uploaded file.

We'll let you know what we have found. If you have an IIS server installed on the same machine, try running your app under IIS and see if there are any differences - just to be sure we are dealing with a bug in Cassini Web Server.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Ultidev Team
#3 Posted : Friday, April 3, 2009 7:13:30 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Slava,

By default ASP.NET request size is limited to about 4BM. Adding the following line to your web.config will allow you to upload up to 99MB files. Or, to be more precise, will allow requests to be up to 99MB in size. So your uploaded file should be 99MB minus the size of the viewstate and other form fields.

Code:
<system.web>
...
<httpRuntime maxRequestLength="99000" />
...
</system.web>


Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Rss Feed  Atom Feed
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.