RAD Studio for Microsoft .NET
ContentsIndex
PreviousUpNext
Setting Permissions for XML File Use

You need to grant rights to clients who will be using your ASP.NET applications, if you want to avoid a permissions error when using an XML file as a data source. There are two ways to do this, as described in the following procedures.

Note: DB Web Controls (Borland.Data.Web namespace) are being deprecated in 2007. You should use standard Web controls instead.

To give users rights when the UseUniqueFileName property is false

  1. Right-click the Windows Start menu and choose Explore.
  2. Choose ToolsFolder Options.
  3. Choose the View tab.
  4. Uncheck the Use Simple File Sharings option.
  5. Click Apply to All Folders.
  6. Click OK.
  7. Locate the XML file being used in the project, then right-click and select Properties.
  8. If available, select the Security tab.
  9. Add user EveryOne and set Full Rights to the file.

To give users rights when UseUniqueFileName is true and user authentication is in use

  1. On the Windows Control Panel User Accounts dialog, create a new user.
  2. In the IIS virtual directory where your web application is built, create a new folder named CacheFiles. Typically, your IIS virtual directories are in the C:\Inetpub\wwwroot directory.
  3. Using the Windows Explorer, located the folder CacheFiles.
  4. Right-click and choose Properties.
  5. Choose the Security tab and add the user you created in Step 1.
  6. Add Full Rights to the folder.
  7. Move the XML file to this folder.
  8. Set the XMLFileName property of the DBWebDataSource in your application to this file.
Note: You must make sure that the Use Simple File Sharings
option in your Windows Folder Options is unchecked.

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!