dotConnect for PostgreSQLsupport@devart.com

Deployment

To deploy applications written with dotConnect for PostgreSQL you should register run-time assemblies Devart.Data.PostgreSql.dll and Devart.Data.dll at Global Assembly Cache (GAC) for appropriate framework or place them in the folder of your application (Bin folder for web projects). These two assemblies should be available in all applications written with dotConnect for PostgreSQL. Make sure that your project contains the license resource as it is described in Licensing.

When deploying ASP.NET applications , the following additional assemblies may be needed:

When your code uses dotConnect for PostgreSQL via a factory-based class, you should register configuration information in the DbProviderFactories section of the *.config file to inform your environment about the existence of the provider factory. The provider factory is described either in machine.config (globally), in app.config or in web.config (just for your application), but not in both files. This is done as follows:

<system.data>
  <DbProviderFactories>
    <remove invariant="Devart.Data.PostgreSql" />
    <add name="dotConnect for PostgreSQL" invariant="Devart.Data.PostgreSql" description="Devart dotConnect for PostgreSQL" type="Devart.Data.PostgreSql.PgSqlProviderFactory, Devart.Data.PostgreSql, Version=5.30.196.0, Culture=neutral, PublicKeyToken=09af7300eec23701" />
  </DbProviderFactories>
</system.data>

Replace 5.30.196.0 here with your actual version.


When deploying Entity Framework projects, it is necessary to:

  1. Check if the Devart.Data.PostgreSql.Entity.dll assembly available for your application. The assembly should reside in the application's folder or in GAC. Be aware that there are two versions of Devart.Data.PostgreSql.Entity.dll in the folder of provider installation - for Entity Framework v 1 and for Entity Framework v 4.
  2. Inform your environment about the provider factory existence (add the entry to the DbProviderFactories section as it is described above).

If you are registering the provider in the machine.config file, please take into account the Entity Framework version. Entity Framework v1 - specific applications require an entry in the .NET Framework 2.0 configuration file, and Entity Framework v4 - specific applications should be registered in the .NET Framework 4.0 configuration file.

You can also read Microsoft's Deployment Considerations on ADO.NET Entity Framework.

Deploying LightSwitch applications is described here

To deploy applications written with LinqConnect support in dotConnect for PostgreSQL, besides deploying the general assemblies you should register run-time LinqConnect assemblies Devart.Data.PostgreSql.Linq.dll and Devart.Data.Linq.dll at Global Assembly Cache (GAC) or place them in the folder of your application (the Bin folder for web projects).

Another way to install the needed *.dll is to launch the dotConnect for PostgreSQL setup program and choose "Minimal installation". Note that according to End-User License Agreement this is the only install you can do on target machine. You must not distribute any other part of dotConnect for PostgreSQL.

Applications written with dotConnect for PostgreSQL may not contain the license resource when they are deployed on the target machine where dotConnect for PostgreSQL is installed with "Minimal" option.

When dotConnect for PostgreSQL application is used in partially trusted code (this is actual for web projects), it requires medium trust plus SocketPermission.

 

 


© 2002-2012 Devart. All rights reserved.