Build and run app on servers w/o dotConnect installed

Build and run app on servers w/o dotConnect installed

Postby alex.webb » Mon 29 Apr 2013 22:40

We have an ASP.NET MVC 4 application that depends on dotConnect for PostgreSQL in conjunction with Entity Framework for its datastore.
The application has multiple projects, of which I believe more than one will need to depend on dotConnect.

In particular,
1. The entry point, an MVC Project which contains web.config.
2. A testing project.
3. A data provider project to separate data logic into a single module.

It is not feasible for us to install dotConnect on all the systems we need to be able to build and run our application on.

Among other steps, we used the Licence Wizard on a computer with dotConnect installed, then tested. This had the effect of placing the "licenses.licx" file as an embedded resource. When that did not work, we then used the "Compiling License Manually" instructions to produce a file "dll.licenses", which we added as an embedded resource. Following both of those steps we received the same error: "License not valid due to the problems with dotConnect for PostgreSQL installation." The machine giving this error does not have dotConnect installed, that being the point.

In addition, we had already added a DbProviderFactories node to web.config, and referenced
Devart.Data.PostgreSql.dll
Devart.Data.PostgreSql.Entity
Devart.Data.PostgreSql.PostgreSql.Web and
Devart.Data.dll in the MVC project.

The application builds and runs normally on computers with dotConnect installed.

What do we need to do be able to compile and run our application on servers that do not have dotConnect installed? What if anything have we done wrong?

Edit:
I wanted to note that we can build our application without errors, the errors come when we try to run the application and access the database.
alex.webb
 
Posts: 1
Joined: Mon 29 Apr 2013 22:34

Re: Build and run app on servers w/o dotConnect installed

Postby Shalex » Fri 03 May 2013 16:43

Please specify the following information:
1) the exact type of the project (e.g.: Console Application, ASP.NET Web Application, etc) which throws "License not valid due to the problems with dotConnect for PostgreSQL installation.". If it is ASP.NET Web Application, make sure that you have added the name of the process of the web server, on which the web application is deployed, to licenses.config (class library licensing)
2) the chain of calls which leads to opening a connection (e.g.: w3wp.exe -> YourWebApp.dll -> Devart.Data.PostgreSql.dll)
3) send us the screenshot of the License Information window when the project is opened
Shalex
Devart Team
 
Posts: 7793
Joined: Thu 14 Aug 2008 12:44


Return to dotConnect for PostgreSQL