Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CreateDataBaseManager does not run in web app
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
VB 8.0
OS:
Vista
Miscellaneous
Thread ID:
01263959
Message ID:
01264713
Views:
12
Stuart,

>I am trying to encrypt the connection string in my config file, I have subclassed the databaseManager and the AppSettings, and overridden the CreateDatabaseManager method in the factory class. I got this working in a test windows form application, but when I moved it to my web Service it failed. It fails on createDataSet, and the CreateDataBaseManager method does not seem to run.
>Any idea what I am not doing?

First of all, make sure Global.asax is instantiating an instance of your project-level factory (it does it at application startup). Next, make sure you are overriding the factory method in your web application--not your business object project. Finally, you can set a breakpoint in the get() of the mmAppBase.DatabaseMgr property and trace through to see what's happening.

Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Reply
Map
View

Click here to load this message in the networking platform