Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.1
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 16th, 2005, 09:55 PM
Authorized User
 
Join Date: Jan 2005
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default Access to the path Error Message

I am receiveing the bellow error message when I try to upload a file in my ASP.NET C# application. This is a pretty common problem, and usually can be solved by adding the ASPNET user account to the file folder permissions and granting it write access. I've done that, infact I've also tried adding the EVERYONE account and also using impersination using my ADMINISTRATOR account. I ported my project over to another computer and it had the same problem. This is weird - has anyone seen this problem before?



Thanks.

-- JQ



Server Error in '/POSShop01' Application.
--------------------------------------------------------------------------------

Access to the path "c:\inetpub\wwwroot\POSShop01\UserImages" 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 "c:\inetpub\wwwroot\POSShop01\UserImages" 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 5 or Network Service on IIS 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 write 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.


 
Old January 18th, 2005, 09:20 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

I think EVERYONE is only people in the domain and you do NOT want to give Admin privileges. Make 100% sure the ASPNET user account has write privileges.






Similar Threads
Thread Thread Starter Forum Replies Last Post
<bean:message key="error.access.rights"/> sparun1607 Struts 1 September 23rd, 2011 03:08 AM
Crystal reports Access to the path error tribe Crystal Reports 7 July 5th, 2007 04:51 AM
access path Prowling NightStalker Access VBA 2 November 9th, 2004 03:40 PM
Error Message: SQL Server does not exist or access danielboland SQL Server 2000 1 January 19th, 2004 01:28 PM
Error Message: SQL Server does not exist or access brettdavis4 BOOK: ASP.NET Website Programming Problem-Design-Solution 6 August 3rd, 2003 06:31 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.