Hello All. I have an asp.net application with 3 different assemblies. They
are like this:
1) Assembly: PublicSite (This contains the website UI)
Root namespace: PublicSite
2) Assembly: PublicSite.MyProfile.Business (This contains the business
rules)
Root namespace: PublicSite
3) Assembly: PublicSite.MyProfile.Data (This contains the data layer)
Root namespace: PublicSite
I also have my connection strings defined in the application object. So, in
the main assembly, I can access the connection strings by using
current.application("myConnection"). However, I need to access the
Application object in my Business assembly. How can I do that???
I tried to do this: Dim x as new System.Web.httpContext.Current, but that
didn't work. When I use intellisense, I get the following after System.Web:
{AspNetHostingPermision}, {AspNetHostingPermissionAttribute} and
{AspNetHostingPermissionLevel}
I believe that it's easy to make an argument to say that one should never
try to access the asp.net application object from within a business class,
but currently, we only use these objects for asp.net and not windows
applications. (not that I'm making excuses.....)
Thank you very much for your help!
SteveS
ss*****@trendmls.com