473,385 Members | 1,944 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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
Nov 15 '05 #1
2 1959
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" <fi**************@umn.edu> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
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

Nov 15 '05 #2
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)" <No************@comcast.netNoSpamM> wrote in
message news:Oy**************@TK2MSFTNGP12.phx.gbl...
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" <fi**************@umn.edu> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
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


Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Ruslan | last post by:
Hello, I have to project: one ASN.NET project and another - Web Service in the same solution. I want to use the same web.config and global.asax files. Does it possible?
0
by: Roy Chastain | last post by:
I have a simple page or two and a simple global.asax file that loads some configuration from the web.config file. I developed this on a Windows XP box with framework version 1.1 installed. I run...
3
by: hansiman | last post by:
I use Application_Start in global.asax to set some physical folder paths ie.: Application("pdf") = "c:\www\<site>\pdf\" global.asax uses code behind. When I move the project from the dev to...
2
by: Arpan | last post by:
Can someone please tell me what are the differences between the web.config file & the global.asax file? Thanks, Arpan
6
by: Bob | last post by:
Hi, i was wondering whether i would use global.asax or web.config for the connectionstring to the database. I put this in global.asax. Sub Application_Start Application("Connect") =...
1
by: teo | last post by:
I put some variables in a web.config file I have a global.asax file that needs to use one of those variables How can global.asax read that value? If I have more than one web.config ...
1
by: Samuel R. Neff | last post by:
We have a problem with Web.config inheritance in two of our applications. We have an old app which is poorly written and must be in the root of the server. We have a newer app which runs from a...
3
by: lilOlMe | last post by:
Hi there, I'm developing a ASP.NET application using VB.NET as the server side code. In my application, I have a directory that holds temporary resources for the duration of a user's stay on my...
3
by: =?Utf-8?B?R3JlZw==?= | last post by:
I've created an <appSettingsvariable called "AppStartTime". Within the Global.asax file in the Application_Start procedure I want to set the "AppStartTime" to the current time. How can I access...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.