473,770 Members | 4,718 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1978
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******** ********@TK2MSF TNGP10.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.netNoS pamM> wrote in
message news:Oy******** ******@TK2MSFTN GP12.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******** ********@TK2MSF TNGP10.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
2370
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
1502
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 it on a 2003 box with both version 1.0 and 1.1 installed. This appears to work. When move the page and code to my clients hosting service (Earthlink) which only supports version 1.0 of the framework, I get the error below. I know that my...
3
6128
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 the production server the global.asax code behind is compiled into the project.dll (i guess). This renders the physical paths unusable (naturally). Coming from
2
1363
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
4383
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") = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\mydb.mdb;" End Sub
1
1880
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 file, how can the global.asax detect the right web.config file ?
1
3212
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 virtual directory. The apps are not related. Old app web.config has: <httpModules> <add name="a" type="foo.a, foo" /> <add name="b" type="bar.b, bar" />
3
5734
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 website. When the user's session ends my Global.asax "Session_End" function is called and it removes any temporary resources that the user was using. When I hard code the location of the temporary resource folder I am able to locate the temporary...
3
5662
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 this variable in the Global.asax file and set or read it's value? I know how to do it in a regular ..aspx.cs file, but not in the Global.asax file.
0
9595
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10232
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10059
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10008
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7420
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5313
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5454
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3974
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3578
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.