web.config and global.asax

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mark

    web.config and global.asax

    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


  • Cowboy \(Gregory A. Beamer\)

    #2
    Re: web.config and global.asax

    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!
    *************** *************** *************** *************** **********
    "Mark" <field027_nospa m_@umn.edu> wrote in message
    news:%23yjRoHXm DHA.2528@TK2MSF TNGP10.phx.gbl. ..[color=blue]
    > 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[/color]
    so[color=blue]
    > we don't have to worry about synchronization issues ASIDE from combining[/color]
    the[color=blue]
    > two projects into one?
    >
    > Thanks in advance!
    > Mark
    >
    >[/color]


    Comment

    • Mark

      #3
      Re: web.config and global.asax

      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


      "Cowboy (Gregory A. Beamer)" <NoSpamMgbworld @comcast.netNoS pamM> wrote in
      message news:OyNcXiXmDH A.2404@TK2MSFTN GP12.phx.gbl...[color=blue]
      > 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!
      > *************** *************** *************** *************** **********
      > "Mark" <field027_nospa m_@umn.edu> wrote in message
      > news:%23yjRoHXm DHA.2528@TK2MSF TNGP10.phx.gbl. ..[color=green]
      > > I have two projects - they both need to use the same web.config file,[/color][/color]
      the[color=blue][color=green]
      > > same global.asax file, and share a common "look and feel" via several[/color][/color]
      user[color=blue][color=green]
      > > controls.
      > >
      > > Is there an easy way for two projects to share these resources in VS.NET[/color]
      > so[color=green]
      > > we don't have to worry about synchronization issues ASIDE from combining[/color]
      > the[color=green]
      > > two projects into one?
      > >
      > > Thanks in advance!
      > > Mark
      > >
      > >[/color]
      >
      >[/color]


      Comment

      Working...