Wrox Programmer Forums
|
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution 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 March 29th, 2004, 12:08 PM
Registered User
 
Join Date: Mar 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Access to the path "C:\Inetpub\wwwroot\wrox\ThePhi

I got this error message when i key in the http://localhost/thephilevb

Error Message:
Access to the path "C:\Inetpub\wwwroot\wrox\ThePhileVB\Config\Polls.C onfig" is denied.

Error Stack:
System.UnauthorizedAccessException: Access to the path "C:\Inetpub\wwwroot\wrox\ThePhileVB\Config\Polls.C onfig" is denied.
   at System.IO.__Error.WinIOError(Int32 errorCode, String str)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode)
   at Wrox.WebModules.Polls.Configuration.ModuleConfig.G etSettings() in C:\wrox\ThePhileVB\WebModules\Polls\Polls.Configur ation\ModuleConfig.vb:line 35
   at Wrox.WebModules.Polls.Business.Question.GetCurrent Id() in C:\wrox\ThePhileVB\WebModules\Polls\Polls.Business \Question.vb:line 224
   at Wrox.WebModules.Polls.Web.Controls.User.Poll.DataB ind() in C:\wrox\ThePhileVB\WebModules\Polls\Poll.ascx.vb:l ine 260
   at Wrox.WebModules.Polls.Web.Controls.User.Poll.Page_ Load(Object sender, EventArgs e) in C:\wrox\ThePhileVB\WebModules\Polls\Poll.ascx.vb:l ine 62
   at System.Web.UI.Control.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain()


 
Old March 29th, 2004, 04:42 PM
Authorized User
 
Join Date: Mar 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You probably need to use NTFS to give the ASPNET user write access to that directory.

 
Old March 30th, 2004, 03:52 AM
Registered User
 
Join Date: Mar 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thx richw32001 but I am using NTFS.



 
Old April 1st, 2004, 08:52 AM
Friend of Wrox
 
Join Date: May 2003
Posts: 229
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

Read the following posts containing discussion on this topic

http://p2p.wrox.com/topic.asp?TOPIC_ID=640



Charul Shukla
 
Old April 11th, 2004, 04:53 PM
Registered User
 
Join Date: Apr 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi everyone,

Hopefully this post will be read. Anyhow the following syntax does work for me:

FileStream fsReadXml = new FileStream(myFilename, FileMode.Open, FileAccess.Read);

but when I try to cast a vote I get an error:

Access to the path "c:\Polls.xml" is denied.

FileStream fsReadXml = new FileStream(myFilename, System.IO.FileMode.Open);

Is there a corrective syntax for this???

Any and all help is appreciated.

MikeY


 
Old August 2nd, 2007, 12:30 AM
Registered User
 
Join Date: Aug 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to s_sramkumar
Default

If you are using window 2003 then give all permission to IUser_<Machine> account.

If you are using winXP then you need to give permission to Network_Service account

Thanks
Ramkumar
 
Old August 3rd, 2007, 06:21 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

on XP it would be controlled either by the ASPNET user account, or by the IUSR_<Machine> account - I don't remember for sure which of these.

On Win 2003 it would be NT Authority\NetworkService.

Eric






Similar Threads
Thread Thread Starter Forum Replies Last Post
Access to the path ... is denied BenCh BOOK: ASP.NET Website Programming Problem-Design-Solution 4 April 14th, 2006 04:55 PM
Accessing C:\Inetpub\wwwroot on networked machine RussellT Dreamweaver (all versions) 7 March 5th, 2006 08:58 AM
access path Prowling NightStalker Access VBA 2 November 9th, 2004 03:40 PM
Wrox Books Learning Path... rkconsulting Wrox Book Feedback 1 October 23rd, 2003 08:54 AM





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