Install and Configure the .NET Application

Prev Next

Follow the steps of the following procedures to install and configure the ASP.NET sample application.

To install the ASP.NET web sample

  1. On the Internet Information Services (IIS) server, create a new virtual directory with the ASP.NET web pages:

    1. Specify the alias name (e.g. CrontoSignSample).

    2. Browse to the directory where the ASP.NET application files are located (e.g. C:\Inetpub\CrontoSignWebSite).

    3. Ensure that the default access rights (read and run scripts) have not been changed.

    Creating a new virtual directory on the ASP.NET application via the installation of the CrontoSign Libraries package is not recommended.

    Although you can copy the contents of this folder to any location, OneSpan recommends using the C:\Inetpub\CrontoSignWebSite path.

  2. Open the CrontoSignSample Properties dialog.

  3. On the Documents tab, enable the index.aspx default document.

  4. On the Directory Security tab, edit the authentication control properties and select Enable anonymous access for the administrator account to allow the user to access the ASPX pages.

    With anonymous access, a user without specific rights can access the Web sample.

  5. In Properties Dialog > ASP.NET, edit the ASP.NET version field to select the correct framework.

    This step allows the IIS server to use the .NET framework in the ASP pages.

    CrontoSign Libraries Screenshot ASP.NET properties

  6. Copy the Authentication Suite .NET wrapper (AAL2Wrap.dll) to the bin folder of the ASP.NET application.

The ASP.NET application is accessible at http://localhost/CrontoSignSample.

URLs are case-sensitive on most application servers. You will not be able to access the ASP.NET application if you use for example http://-localhost/crontosignsample.

To configure the database

  1. Stop the IIS server.

  2. Configure the application: in the CrontoSignWebSite/web.config file, define the database.fullpath property.

    This property defines the database name and path that the sample will use. The database is an SQLite database and will be created in the defined path. The default name of the sample database is crontosignSample.db.

    Make sure you have read and write permissions to ensure the database is created properly and in the required location.

  3. Restart the IIS server.

To clear the database

  1. Stop the IIS server.

  2. Navigate to the location of the database file as defined with the database.fullpath property (see the application configuration above).

  3. Delete the database file.

  4. Restart the IIS server.