Setting the provider's connection string at run time
-
- Devart Team
- Posts: 2420
- Joined: Wed 02 Nov 2011 09:44
Re: Setting the provider's connection string at run time
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.
Re: Setting the provider's connection string at run time
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
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