I assume this is a web project? If so, ASP.NET by default won't allow files greater than 5MB. You can simply edit your web.config file to increase this limit. The web.config file is located in your project root, and you can open it with notepad. In the web.config you must edit the httpruntime element(http://msdn.microsoft.com/en-us/library/e1f13641.aspx) and increase the maxRequestLength & exectionTimeout properties. Doing so will allow you to upload larger files. Here's how you can do this:
-
MOST IMPORTANT STEP - Backup the existing web.config file. If you run into problems you'll be able to restore this backup.
-
Find <system.web> in the web.config file. Add a line break to create a new line underneath <sytem.web>.
-
On the new line you just inserted, input this: <httpRuntime maxRequestLength="10000" executionTimeout="300" /> This should allow you to input files up to 10MB in size without problem.
-
Save the file. Test and see if it works.
-
IF YOU RUN INTO ANY PROBLEMS RESTORE THE BACKUP YOU MADE IN STEP 1