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 August 3rd, 2003, 10:23 AM
Registered User
 
Join Date: Aug 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Configuring Directory Security

On page 41 of Beginning ASP.NET with VB.Net it provides instructions to configure directory security. I think this example was created using windows 2000.

The problem is that I am using win XP Proffessional, and when I try and alter my directory security there is no security tab. I've tried selecting the properties while in IIS, from the actual folder, from its shorcut and right clicking and selecting 'sharing and security' but none of these have given me the properties that look similar to the example on page 41.

Can anyone tell me how i can change my security setting?

P.S. i have altered all paths so that they correspond to my directories.

These are the errors i receive when trying to access the page.

Error1:
Server Error in '/BegASPNET' Application.
--------------------------------------------------------------------------------

Operation must use an updateable query.
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.Data.OleDb.OleDbException: Operation must use an updateable query.

Source Error:


Line 90: ' ================================================== ===============
Line 91: ' update the data store
Line 92: objAdapter.Update(objDataSet, "Employees")
Line 93:
Line 94:


Source File: C:\Inetpub\BegASPNET\ch13\synchronize.aspx Line: 92



Error2:
Server Error in '/BegASPNET' Application.
--------------------------------------------------------------------------------

Access to the path "C:\Inetpub\BegASPNET\ch13\Employees2.xml" 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\BegASPNET\ch13\Employees2.xml" is denied.

The ASP.NET process is not authorized to access the requested resource. For security reasons the default ASP.NET process identity is '{machinename}\ASPNET', which has limited privileges. Consider granting access rights to the resource to the ASP.NET process identity.

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 "{machinename}\ASPNET" user. Highlight the ASP.NET account, and check the Write box in the Allow column.

Source Error:

Line 31:
Line 32: ' save it to a new file
Line 33: objDataSet.WriteXml(Server.MapPath("Employees2.xml "))
Line 34:
Line 35: ' read in the new file



 
Old August 3rd, 2003, 12:28 PM
Registered User
 
Join Date: Aug 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

PROBLEM SOLVED:

Troubleshooting
If the Security tab is not available and you cannot configure special permissions for users and groups:
· The file or folder to which you want to apply special permissions is not on an NTFS file system drive. You can set permissions only on drives that are formatted to use the NTFS file system.
· Simple file sharing is enabled. By default, simplified sharing is enabled in Windows XP unless you are on a domain. To work around this behavior, disable simplified sharing.

SUMMARY
This article describes how to disable simplified sharing. Note that you cannot disable simplified sharing in Microsoft Windows XP Home Edition.

By default, simplified sharing is enabled on a Windows XP-based computer if the computer is not a member of a domain. Simplified sharing lets you easily share folders with everyone on your workgroup or network and make folders in your user profile private. However, if simplified sharing is enabled, you cannot prevent specific users and groups from gaining access to your shared folders. If you disable simplified sharing, you can allow specific users and groups to gain access to a shared folder; those users must provide a password to gain access to your shared folder.

If simplified file sharing is enabled, you see the Simple File Sharing user interface rather than the classic Security and Sharing tabs. This new user interface is implemented by default in Windows XP Home Edition and Windows XP Professional if you are working in a workgroup. If you disable simplified sharing, the classic Security and Sharing tabs appear and you can specify which users and groups have access to shared folders on your computer.

NOTE: Security can be set only on a partition that uses the NTFS file system. If you remove the Everyone group from the NTFS permissions, the file or folder is inaccessible over the network.

back to the top
How to Disable Simple File Sharing
1. Click Start, and then click My Computer.
2. On the Tools menu, click Folder Options, and then click the View tab.
3. In the Advanced Settings section, clear the Use simple file sharing (Recommended) check box.
4. Click OK.








Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP.NET and directory security quintesv ASP.NET 1.0 and 1.1 Basics 1 September 26th, 2006 09:41 AM
configuring security in Tomcat aadz5 Apache Tomcat 0 May 29th, 2006 11:00 AM
Chapter 1: Configuring Directory Security BonnieY BOOK: Beginning ASP.NET 1.0 4 September 3rd, 2003 10:40 PM
configuring directory security butterbean ASP.NET 1.0 and 1.1 Basics 3 August 19th, 2003 04:17 PM





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