Setting the provider's connection string at run time

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for PostgreSQL
Pinturiccio
Devart Team
Posts: 2192
Joined: Wed 02 Nov 2011 09:44

Re: Setting the provider's connection string at run time

Post by Pinturiccio » Thu 21 Jun 2012 10:08

Sorry for the delay. We could not reproduce the issue. Could you please create and send us a small test project for reproducing the issue.

JORGEMAL
Posts: 168
Joined: Thu 03 Jul 2008 23:55

Re: Setting the provider's connection string at run time

Post by JORGEMAL » Wed 27 Jun 2012 16:02

I decided to continue testing my project and this is what I found.
The class that implements to roles that is referenced in the web.config's Role Manager section defines the database name within the overriden Initialize method using a session variable which is defined in the Session_Start event of the Global.asax. It seems that this overriden Initialize method is run firstly before the Session_Start event is fired so my Session variable was empty. I changed this behavior setting the database name in another way and now everything is working just fine.
Thanks for your support and for adding this feature.

Respectfully,
Jorge Maldonado

Post Reply