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
- Right-click the Windows Start menu and choose Explore.
- Choose ToolsFolder Options.
- Choose the View tab.
- Uncheck the Use Simple File Sharings option.
- Click Apply to All Folders.
- Click OK.
- Locate the XML file being used in the project, then right-click and select Properties.
- If available, select the Security tab.
- Add user EveryOne and set Full Rights to the file.
To give users rights when UseUniqueFileName is true and user authentication is in use
- On the Windows Control Panel User Accounts dialog, create a new user.
- 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.
- Using the Windows Explorer, located the folder CacheFiles.
- Right-click and choose Properties.
- Choose the Security tab and add the user you created in Step 1.
- Add Full Rights to the folder.
- Move the XML file to this folder.
- 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.