UK WEB HOSTING FORUM FOR DISCUSSION ON WEB HOSTING SERVICE AND SUPPORT
LINUX HOSTING WINDOWS HOSTING PACKAGES SHOPPING CART OSCOMMERCE ZEN CART AGORA
ECOMMERCE HOSTING ASP MSSQL FRONTPAGE HOSTING PHP MYSQL HOSTING DISCUSSION FORUM
CPANEL RESELLER HOSTING DEDICATED SERVER VPS HOSTING PLESK VIRTUOZZO
Quick Search
Your forum announcement here!

  UK Web Hosting | Dedicated Server Windows and Linux VPS Forum > Technical Support > Windows Shared Hosting

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 29-05-2008, 18:33
Junior Member
 
Join Date: Jan 2008
Posts: 22
Default Folder permissions problems since new Plesk update?

Hi there,

I have a Photo album website hosting made using ASP.NET, the website hosting allows users to upload their photos, delete, as well as insert new comments. It has a folder called "UploadedPhotos" where all the photos are stored and it uses a SQL Server to store user accounts and photo and comments records.

This worked fine for 1 month, but today I noticed that when I try to upload a photo it produces this error:

Access to the path 'D:\inetpub\vhosts\somesite.com\httpdocs\UploadedP hotos\25.jpg' is denied.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.UnauthorizedAccessException: Access to the path 'D:\inetpub\vhosts\somesite.com\httpdocs\UploadedP hotos\25.jpg' is denied.

ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS Web Server 5 or Network Service on IIS Web Server 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

To grant ASP.NET access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.


Before it never gave this error, and it would upload a photo to the folder (using FileUpload control's SaveAs method) without any problems. I have not changed any codes or anything.

I asked one of the helpers on LivePerson chat and "Paul" said I have to go to Plesk to change the permission for the folder.

Now my question is, what has happened? I didnt need even need to go to Plesk before and set any Permission, so why do I have to now?

Is it because Plesk was updated a few weeks ago as I remeber? Can one of the admins please help me.

Thank you.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 29-05-2008, 18:49
eUK-Martin's Avatar
Windows System Administrator
 
Join Date: Nov 2005
Location: Earth
Posts: 457
Default

Hello Will,

You must have had full permissions on the old server, now when the server was upgraded Plesk must have re-checked the permissions on all the sites and must have remove the write permissions.

I have given permissions on your Photo folder and also was able to upload file from the site.
__________________
Martin
Windows System Admin.


Windows VPS Hosting - Windows Dedicated Server - Web Hosting Tutorials

Email :: windows @ eUKhost.com AND support @ eUKhost.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 29-05-2008, 18:57
Junior Member
 
Join Date: Jan 2008
Posts: 22
Default

Hi Martin,

Thanks for your fast reply,

So I must have had full permission, the thing is I have never gone into Plesk to add any permission until today, so one of the admin must have added it for me when they were helping me before 1 month ago.

There are lots of groups and usernames, in future if I want to do it again for a different folder, which group shall I assign the permissions to?

Plesk IIS Web Server User (IUSR_myUserName) and Plesk IIS Web Server WP User (IWAM_plesk(default))?

And what are the differences between these two groups. Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 30-05-2008, 00:30
Spencer's Avatar
Windows System Administrator
 
Join Date: May 2008
Posts: 10
Default

Hi Will,

As you have developed the web pages in ASP.net, so the error is self explanatory. I will elaborate user role for setting the permissions.

ASP.NET User : This is a machine user and normally not required when you run a web site hosting with Plesk control panel. As Plesk uses the application Pool user to run ASP pages.

IUSR_myUserName : This is anonymous user (Web User) who access the website hosting, so to upload the photo on your website hosting, It will also need write permission to be set on Uploaded Photos folder. It handles the connection between your web page and the Server.

IWAM_plesk(default) : This is the user responsible to run ASP applications on the Server, so to upload the photo on your website hosting, this one will need to have write permission on Uploaded Photos folder.

Let us know, if you have any further questions. We will be glad answering them for you.
__________________
Spencer T.
Windows Hosting || Windows Reseller Hosting
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

« Mp3 | URL Rewriting »


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 19:14.

 

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by Web Hosting 3.1.0
Copyright © 2001-2008, eUKhost.com. All rights reserved.

 
Site Map

VPS Hosting
VPS Hosting plans

Dedicated Server Hosting
Dedicated Server plans

Business Web Hosting
100% uptime Hosting

Cpanel Hosting
cPanel Shared Hosting

Reseller Hosting
Reseller Web Hosting

Windows Hosting
Windows Shared Hosting

Windows VPS

Windows VPS Hosting

Semi Dedicated Servers
Semi-Dedicated Hosting

Dedicated Server Mirroring
Dedicated Server Mirroring

Webhosting Knowledgebase
Frequently asked Questions

Web Hosting Blog
eUKhost Blog

Web Hosting Support
Support Helpdesk

UK Data Center
eUKhost Datacenter

Web Hosting Forum
eUKhost Forum

Support Tutorials
Online Flash Tutorials

Offsite Back-up Plans
Remote Backup Service

Customer Testimonials
eUK Customer Testimonials


knowledgebase articles

eUKhost.com Services

Pre-Sales Questions
Pre-sales FAQ's

Domain Names
Domain registration FAQ's

cPanel Hosting
cPanel Hosting FAQ's

Windows Web Hosting
Plesk Control Panel

Reseller Hosting
Reseller Hosting FAQ's

VPS Hosting
Virtual Private Server

Semi-Dedicated Servers
Semi-Dedicated FAQ's

Dedicated Servers
Dedicated Server Hosting


popular blog categories


Web Hosting
Website Hosting articles

UK Web Hosting
UK Hosting articles

Dedicated Server Hosting
Dedicated Server guidelines

VPS Hosting
VPS hosting articles

cPanel Hosting
cPanel Hosting articles

Linux Operating System
Linux Operating techniques

Windows Web Hosting
Windows plesk articles

Web Hosting
Web Hosting Service