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 9th, 2004, 01:24 PM
Registered User
 
Join Date: Mar 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default security setting problem

When I hit the site http://localhost/thephile/, I got the following error message:

Server cannot access application directory 'D:\Wrox\ThePhile\'. The directory does not exist or is not accessible because of security settings.

Application directory is 'D:\Wrox\ThePhile\'. Is there something wrong with the security settings? I did give the folder as Web Sharing.

Can anyone give me a help? Thanks.
 
Old March 9th, 2004, 01:27 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

You'll have to make sure that the account that ASP.NET is running under (usually the ASPNET or the IWAM_UserName account) has sufficient permissions to the D:\Wrox\ThePhile\ folder. Marking it for "Web Sharing" alone is not enough.

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old March 9th, 2004, 02:41 PM
Registered User
 
Join Date: Mar 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Can you tell me how to check it? Thanks.

 
Old March 9th, 2004, 03:02 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Right click the folder and go to properties. You should see a 'Security' tab. If you don't try this:

Open 'My Computer'. Click 'Tools' and then 'Folder Options'. Then click on the 'View' Tab and scroll all the way to the bottom. Uncheck 'Use Simple File Sharing(Recommended)' and click 'Ok' or 'Yes' to the warning.

Once that has been done you should be able to go the the folder where your db.mdb is at and right click on the folder and give <machine name>\aspnet account write access to the folder.

You must be using NTFS and NOT FAT16 or FAT32.
 
Old May 10th, 2006, 11:55 AM
Registered User
 
Join Date: May 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I was following your instructions and discoverd that I did not have a asp.net username setup. Once I did that it works perfectly.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Security problem dparsons ASP.NET 1.0 and 1.1 Professional 0 January 28th, 2006 02:02 PM
Security problem doctorsom VS.NET 2002/2003 1 December 14th, 2005 03:38 PM
setting security for Access 2K Loralee Access 0 June 19th, 2005 02:39 PM
File security setting wwshi Classic ASP Basics 0 March 30th, 2004 10:20 PM
Security Problem Annihilator VS.NET 2002/2003 0 November 26th, 2003 02:01 PM





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