Make changes for a .NET Web Forms application

Note

Unless you plan always to start the tutorial database manually before your Web Forms application connects to the database, you must grant ASP.NET users full control of the directories containing the database and the SQL Anywhere database engine, and extend that permission to all the files in those directories.

NoteIf you followed the procedure in the Granting ASP.NET user permissions section of the Deploying Applications and Components to .NET book to set permissions on one or both of the directories, you do not need to set them again here.

  1. In Windows Explorer, browse to the PowerBuilder Tutorial directory (described in “The Tutorial directory”).

    This directory contains the tutorial database.

    NoteIf you already set permissions on this directory by following the procedure in the Granting ASP.NET user permissions section of the Deploying Applications and Components to .NET book, you will not need to repeat the procedure at Step 10.

  2. Right-click the directory and select Properties from the pop-up menu.

  3. Select the Security tab of the Properties dialog box for the directory and click the Add button.

    The Select Users, Computers, or Groups dialog box displays.

  4. Click Locations, choose the server computer name from the Locations dialog box, and click OK.

  5. Type ASPNET, IIS_WPG, or IIS_USRS in the list box labeled “Enter the object names to select” and click OK.

    Enter ASPNET for IIS 5, IIS_WPG for IIS 6, or IIS_USRS for IIS 7. The ASP.NET account you enter is added to the Security settings tab for the current directory.

    Shows the Selet Users, Computers, or Groups dialog box.
  6. Select the new user account in the top list box on the Security tab, then select the “Full Control” check box under the Allow column in the bottom list box.

  7. Click the Advanced button.

    The Advanced Security Settings dialog box displays for the current directory.

  8. Select the check box labeled “Replace permission entries on all child objects with entries shown here that apply to child objects” and click OK.

    A Security dialog box displays to warn you it will remove current permissions on child objects and propagate inheritable permissions to those objects, and prompts you to respond.

  9. Click Yes at the Security dialog box prompt, then click OK to close the Properties dialog box for the current directory.

  10. Repeat steps 1-9 for the SQL Anywhere 11\Bin32 directory, if you have not already done so.