Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Basics
| Search | Today's Posts | Mark Forums Read
ASP.NET 3.5 Basics If you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Basics 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 October 21st, 2010, 08:07 AM
Registered User
Points: 1,897, Level: 17
Points: 1,897, Level: 17 Points: 1,897, Level: 17 Points: 1,897, Level: 17
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2005
Location: Mumbai, Maharastra, India.
Posts: 352
Thanks: 14
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rupen
Default XMLdocument Load : access to path is denied

Hi,

When I tried to execute :

Code:
XmlDocument doc = new XmlDocument();
doc.Load(ConfigPath);
getting error as : access to path ... is denied.

ConfigPath is set dynamically.

I have given full permissions to aspnet, everyone and iisapp users.
Also have impersonate using my login id and password.

What exactly m missing?
 
Old October 21st, 2010, 09:03 AM
samjudson's Avatar
Friend of Wrox
Points: 8,687, Level: 40
Points: 8,687, Level: 40 Points: 8,687, Level: 40 Points: 8,687, Level: 40
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

Well access to path is denied is a fairly self explanatory error message.

If ConfigPath is being set dynamically then are you sure it is being set correctly. Perhaps it is permissions on the directory that need changing?

Maybe your application is running in Medium Trust and doesn't have permission to load files from a directory outside a specific set of directories.

Without more information about how ConfigPath is being set we can't really help much more.
__________________
/- Sam Judson : Wrox Technical Editor -/

Think before you post: What have you tried?




Similar Threads
Thread Thread Starter Forum Replies Last Post
Access is denied" load a simple xml file nana XML 12 May 12th, 2010 07:01 AM
401.3 Access denied due to Access Control List cforsyth .NET Framework 2.0 8 May 28th, 2009 01:56 PM
Access Denied for Download File(s) access. Kramerj BOOK: Expert One-on-One Access Application Development 0 May 27th, 2009 12:30 PM
Access to the path ... is denied BenCh BOOK: ASP.NET Website Programming Problem-Design-Solution 4 April 14th, 2006 04:55 PM
Crystal Report in asp.net - path is denied kssiva_s Crystal Reports 0 February 12th, 2005 09:30 AM





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