web.config and global.asax

  • Thread starter Thread starter Mark
  • Start date Start date
M

Mark

I have two projects - they both need to use the same web.config file, the
same global.asax file, and share a common "look and feel" via several user
controls.

Is there an easy way for two projects to share these resources in VS.NET so
we don't have to worry about synchronization issues ASIDE from combining the
two projects into one?

Thanks in advance!
Mark
 
Not directly. You can fudge the global.asax by encapsulating the
functionality into a class library and calling the routines from each
global.asax. For the config, you are largely on your own, as configs work
for one project; the only solution I can think of is to create a separate
config type file.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

**********************************************************************
Think Outside the Box!
**********************************************************************
 
Thanks Greg.

What would be impact of putting these two projects (.dll) in the same
virtual directory on our live server, putting both .dll in the same bin
folder, and then only copying one of the web.config files and one
global.asax file to this "shared" virtual directory? Is that "legal" or
will that generate complications?

Thanks in advance!

Mark
 
Back
Top