cwadams1955
Programmer
I'm starting my first ASP.NET project, and intended to model parts of it on an existing project. The existing project has a module, "ModInit.vb" which contains database connection information, like this:
Note that this is outside of any subroutine or function residing in the module.
On the original application, I can set a breakpoint and see that this code is being entered after the Global.asx module's "Application_Start" sub exits. But on my application, this ModInit module never hits, and I can't find anything in the settings or code in the original application that instructs the application to use that module - as far as I can tell, my app is set up the same as the original. What am I missing here? Thanks for any assistance.
Code:
Module ModInit
'Development Connect Strings
Public SQLDBConn1 As String = "Persist Security Info=False;Server=MyServer;Database=MyDataBase;User ID=Admin;password=password;Integrated Security=false"
On the original application, I can set a breakpoint and see that this code is being entered after the Global.asx module's "Application_Start" sub exits. But on my application, this ModInit module never hits, and I can't find anything in the settings or code in the original application that instructs the application to use that module - as far as I can tell, my app is set up the same as the original. What am I missing here? Thanks for any assistance.