Small files upload correctly, but a larger file just under 7mb in size doesn't even get back to the controller when testing under Windows 7 Utitimate 64-bit.
I do have this in the web.config file in the Shared directory:
You've set in your Web.Config, which is fine if it's less than the IIS limit. However, if the IIS limit is less than what you specify in the Web.Config, the smaller limit wins. Did you check the IIS limit? Refer the following link
When I select Use Local IIS Web Server and USE IIS Express, I get the following errors:
Error 1 Unexpected error creating debug information file 'C:\Inetpub\wwwroot\My-MSI.Net\My-Msi.Net\My-MSI.Net\obj\Debug\My-MSI.Net.PDB' -- 'C:\Inetpub\wwwroot\My-MSI.Net\My-Msi.Net\My-MSI.Net\obj\Debug\My-MSI.Net.pdb: Access is denied. ' My-MSI.Net
Warning 2 Could not read state file "obj\Debug\ResolveAssemblyReference.cache". Access to the path 'C:\Inetpub\wwwroot\My-MSI.Net\My-Msi.Net\My-MSI.Net\obj\Debug\ResolveAssemblyReference.cache' is denied. My-MSI.Net
Error 3 Could not write lines to file "obj\Debug\My-MSI.Net.csproj.FileListAbsolute.txt". Access to the path 'C:\Inetpub\wwwroot\My-MSI.Net\My-Msi.Net\My-MSI.Net\obj\Debug\My-MSI.Net.csproj.FileListAbsolute.txt' is denied. My-MSI.Net
eric2820
Contributor
2777 Points
1161 Posts
Uploading .zip files to the server
Mar 24, 2012 02:45 PM|LINK
I'm trying to upload .zip files to the server.
Small files upload correctly, but a larger file just under 7mb in size doesn't even get back to the controller when testing under Windows 7 Utitimate 64-bit.
I do have this in the web.config file in the Shared directory:
<httpRuntime maxRequestLength="20480" executionTimeout="420"/>
What needs to be changed to allow a 7nb ,zip file to upload?
http://www.my-msi.net/Admin
blog
If a post helps you, please mark it as Ansered, thank-you.
Vipindas
Contributor
5514 Points
810 Posts
Re: Uploading .zip files to the server
Mar 24, 2012 04:23 PM|LINK
You've set in your Web.Config, which is fine if it's less than the IIS limit. However, if the IIS limit is less than what you specify in the Web.Config, the smaller limit wins. Did you check the IIS limit? Refer the following link
http://www.cyprich.com/2008/06/19/fixing-file-upload-size-limit-in-iis-7/
eric2820
Contributor
2777 Points
1161 Posts
Re: Uploading .zip files to the server
Mar 24, 2012 08:52 PM|LINK
But I'm not using IIS 7, just the Development Server.
http://www.my-msi.net/Admin
blog
If a post helps you, please mark it as Ansered, thank-you.
ignatandrei
All-Star
134838 Points
21603 Posts
Moderator
MVP
Re: Uploading .zip files to the server
Mar 24, 2012 09:12 PM|LINK
That's the problem! Please use any IIS !
eric2820
Contributor
2777 Points
1161 Posts
Re: Uploading .zip files to the server
Mar 25, 2012 12:05 AM|LINK
When I select Use Local IIS Web Server and USE IIS Express, I get the following errors:
Error 1 Unexpected error creating debug information file 'C:\Inetpub\wwwroot\My-MSI.Net\My-Msi.Net\My-MSI.Net\obj\Debug\My-MSI.Net.PDB' -- 'C:\Inetpub\wwwroot\My-MSI.Net\My-Msi.Net\My-MSI.Net\obj\Debug\My-MSI.Net.pdb: Access is denied. ' My-MSI.Net
Warning 2 Could not read state file "obj\Debug\ResolveAssemblyReference.cache". Access to the path 'C:\Inetpub\wwwroot\My-MSI.Net\My-Msi.Net\My-MSI.Net\obj\Debug\ResolveAssemblyReference.cache' is denied. My-MSI.Net
Error 3 Could not write lines to file "obj\Debug\My-MSI.Net.csproj.FileListAbsolute.txt". Access to the path 'C:\Inetpub\wwwroot\My-MSI.Net\My-Msi.Net\My-MSI.Net\obj\Debug\My-MSI.Net.csproj.FileListAbsolute.txt' is denied. My-MSI.Net
And I don't know how to get around these errors!
http://www.my-msi.net/Admin
blog
If a post helps you, please mark it as Ansered, thank-you.
ignatandrei
All-Star
134838 Points
21603 Posts
Moderator
MVP
Re: Uploading .zip files to the server
Mar 25, 2012 05:41 AM|LINK
re-install IIS.
Vipindas
Contributor
5514 Points
810 Posts
Re: Uploading .zip files to the server
Mar 25, 2012 05:47 AM|LINK
Re-install iis server and try again
http://www.shamly.com/techno/install-internet-information-services-7-on-windows-7-64-bit-machine-eset/
Hope this helps...