Link to home
Start Free TrialLog in
Avatar of Blue Orange
Blue Orange

asked on

Cannot upload files above 1mb IIS7

On any website a run on a remote server I cannot upload files above 1 mb. All websites run on their own applicationpool and the permissions are set the right way. The error returned is CONNECTION RESET. Every upload stream below 1 mb gets accepted and works fine.

Ive also set the following configsettings to one of the websites manually to test if its a limitation:
          <requestFiltering>
          <requestLimits maxUrl="32767" maxQueryString="32767" 
            maxAllowedContentLength="2147483648"/>
    </requestFiltering>

Open in new window

and
<httpRuntime maxRequestLength="2000000000" executionTimeout="999999" />

Open in new window


But I cannot get it to work. Is there any global settings that prevents me from uploading above 1 mb?
Avatar of Shaun Vermaak
Shaun Vermaak
Flag of Australia image

The maxAllowedContentLength controls how much data is allowed to be sent in a response. However you want to control how much can be accepted in a request. This is handled by the maxRequestEntityAllowed attribute of the limits element in the asp section of the config file.

http://stackoverflow.com/questions/1989334/how-do-i-enable-upload-of-large-files-in-classic-asp-on-iis-7
Avatar of Blue Orange
Blue Orange

ASKER

@Dan McFadden:
I've changed the settings according the examples and restarted IIS but not sigar.

@Shaun:
Same goes as the reply to Dan, modified the settings but no effect. Even after a IIS restart.

Can this be a permission issue? Certain write limitions to a directory?
- Are there any warnings or errors in the Application Event Log?
- Do you have http logging enabled?
--- Are there any 4xx or 5xx http errors in the logs?
- How is the application pool configured?
--- What identity is the AppPool set to use?

Dan
@ Dan McFadden; Each AppPool has its own apppool name, which has permissions on the website folder (full write for debug) (IIS AppPool\APPPOOLID). I did end up looking at System32\Logfiles\Httperr logs which returned: (Website ID) Timer_EntityBody since C:\inetpub\logs\LogFiles\ returned no errors.
What are you using to upload files?  Native MS object or a third party?  Can you post code?

Also, have you tried enabling Failed Request Tracing to ID where the issue may be coming from?

Dan
@Dan McFadden; Native MS, I can follow the upload via Chrome (left corner, stops at 1 mb percentage of the total size (eg: 3 mb = 33% then the connection resets and gives me some). I think I didnt; let me check.

Edit : nope, nothing in FailedReq
What version of .NET framework are you using?  What language?

Can you post code?

Dan
@Dan McFadden: We are using .NET FW 4.5+ and C#. I could ask de devs to look into this if you suspect that there is something wrong with the code.  Since multiple websites have this issue (many different setups, but all C# and FW4.5+) I dont think its the code.
ASKER CERTIFIED SOLUTION
Avatar of Dan McFadden
Dan McFadden
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
@Dan McFadden; thanks so far, I have sent the project to the team dev to look at. The timeout is only active on our acceptance environment to test this issue. Ill report back my findings after a report from dev.