Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Large File Upload Problem

Status
Not open for further replies.

aspengal

Technical User
Dec 27, 2004
41
US
In my C# .net application, I have to upload Files from my desktop to a file server. The problem is Iam unable to upload files >2 MB. My web.config file has this in the systemweb tag. Any other setting to be done in the machine.config? I have changed the responsedeadlockinterval in the machine.config to my executiontimeout, but no luck....Any other setting on the IIS???? THe file share has enough previlage to upload files...

<system.web>
<compilation defaultLanguage="c#" debug="true" />
<pages enableViewStateMac="false" validateRequest="false"/>
<customErrors mode="Off" /><trace enabled="true" requestLimit="100" pageOutput="false" traceMode="SortByTime" localOnly="false" />
<sessionState mode="SQLServer" allowCustomSqlDatabase="true" sqlConnectionString="data source=CHVPKNTGAPS10; database=*****;user id=*****;password=*********" cookieless="false" timeout="20" />
<globalization requestEncoding="utf-8" responseEncoding="utf-8" />
<httpRuntime maxRequestLength="512000" executionTimeout="54000" useFullyQualifiedRedirectUrl="false" minFreeThreads="8" minLocalRequestFreeThreads="4" appRequestQueueLimit="100"/>
<machineKey validationKey="*****"
decryptionKey="" validation="***"/>
</system.web>

 
Try a default web.config in a plain test project that only uploads a file.

Use only this.
<httpRuntime maxRequestLength="512000" />

This isolate whether or not it is something else in your code.
 
This web.config and my code works perfectly fine in my Local Host. Only when I deploy it to the Production server, it fails. Any thoughts?
 
With the simple example, mentioned above, what is the error message. Can you post that error page. This does happen with only files over 2 megs, or any file?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top