Registration of SQL Anywhere ASP.NET providers

Your web application must be configured to use the SQL Anywhere ASP.NET providers and not the default providers. To register SQL Anywhere ASP.NET providers:

  • Add a reference to the iAnywhere.Web.Security assembly to your web site.

  • Add an entry for each provider to the <system.web> element in web.config file.

  • Add the name of the SQL Anywhere ASP.NET provider to the defaultProvider attribute in the application.

The provider database can store data for multiple applications. For each application, the applicationName attribute must be the same for each SQL Anywhere ASP.NET provider. If you do not specify an applicationName value, an identical name is assigned to each provider in the provider database.

To reference a previously registered connection string, replace the connectionString attribute with the connectionStringName attribute.

 XML code sample for Membership Provider registration
 XML code sample for Roles Provider registration
 XML code sample for Profiles Provider registration
 XML code sample for Personalization Provider registration
 XML code sample for Health Monitoring Provider registration