Answered by:
Unable to Upload Files to Site

Question
-
I have a clean installation of WSP, having used it on other serevrs, was pretty confident in the installation process. I created servers, virtual servers, hosting plans etc. and all appears to work fine.
I have now created my first customer, and defined a website for them. But when I use the WSP file manager to upload a zip of the website, I receive a 404 error "File or directory not found". I have checked the permissions on the folder behind WSP and they all seem to have the correct permissons.
Can any one suggest where I have gone wrong.
The server is Windows Server 2008 Standard and is a domain member, not controller. WSP is installed with all three roles on this server, with WSP Server roles also installed on two other servers, i.e. the mail server and the domain controller. But for web hosting all the resources are located on this server.
Monday, September 5, 2011 2:22 AM
Answers
-
Hi,
Since this only happens for big files, it is most probably that some request length limit settings is causing this issue.
I agree with Ke-i, the maxRequestLength value in your portal web.config should be bigger than the size of file you upload. However, based on my experience, this will cause an .net error like "max request length exceed" not 404.
Another related configuration settings I could think of is with IIS request filtering settings. The value "maxAllowedContentLength" should also be bigger than the file size, or you will encounter an 404.13 error. The default value of the settings is 30000000 bytes, which is approximately 28.6MB. You can use the following command to increase the value for your portal application:
%windir%\system32\inetsrv\appcmd set config "WebsitePanel Portal" -section:system.webServer/security/requestFiltering /requestLimits.maxAllowedContentLength:"A Larger Value"
If the issue persists, please let me know.
Thanks.
Please mark the replies as answers if they help or unmark if not. If you have any feedback about my replies, please contact msdnmg@microsoft.com. Microsoft One Code Framework- Proposed as answer by ExpertServices Team - Dmitry FitsnerEditor Monday, September 12, 2011 4:29 AM
- Marked as answer by Lloyd Zhang Tuesday, September 13, 2011 7:43 AM
Friday, September 9, 2011 7:24 AM
All replies
-
Hi,
Basically, for permissions, the upload operation needs "WPServer" account(the account your WSP Server application pool runs in) have read\write perssions to the site folder. However, according to the error information, it doesn't seem to be permission related. Does this occur every time you upload a file for your site? What is detailed error information in audit log?
Thanks.
Please mark the replies as answers if they help or unmark if not. If you have any feedback about my replies, please contact msdnmg@microsoft.com. Microsoft One Code FrameworkWednesday, September 7, 2011 7:36 AM -
Hi,
I agree I don;t think this is permissions, I have checked permissions on folders and files etc. from an old working installaiton and compared them to this one, and they are the same.
I have also checked the app pool is using WPServer.
I checked the event log, but nothing is listed.
To begin with, I thought it was all files, but it now appears to be only big files that have a problem.
Thanks
Thursday, September 8, 2011 12:41 AM -
Hello,
I think, it could be caused by maxRequestLength parameter at the <httpRuntime> section in the web.config. A default value is 4096 (4 MB). But it is not certain whether the place which should be corrected was Enterprise Server, Portal Server, or member WEB server. Sorry...
I hope this can help you.
Thursday, September 8, 2011 1:21 AM -
Hi,
Since this only happens for big files, it is most probably that some request length limit settings is causing this issue.
I agree with Ke-i, the maxRequestLength value in your portal web.config should be bigger than the size of file you upload. However, based on my experience, this will cause an .net error like "max request length exceed" not 404.
Another related configuration settings I could think of is with IIS request filtering settings. The value "maxAllowedContentLength" should also be bigger than the file size, or you will encounter an 404.13 error. The default value of the settings is 30000000 bytes, which is approximately 28.6MB. You can use the following command to increase the value for your portal application:
%windir%\system32\inetsrv\appcmd set config "WebsitePanel Portal" -section:system.webServer/security/requestFiltering /requestLimits.maxAllowedContentLength:"A Larger Value"
If the issue persists, please let me know.
Thanks.
Please mark the replies as answers if they help or unmark if not. If you have any feedback about my replies, please contact msdnmg@microsoft.com. Microsoft One Code Framework- Proposed as answer by ExpertServices Team - Dmitry FitsnerEditor Monday, September 12, 2011 4:29 AM
- Marked as answer by Lloyd Zhang Tuesday, September 13, 2011 7:43 AM
Friday, September 9, 2011 7:24 AM