473,796 Members | 2,628 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Sharing ASP.NET code between two sites

Hello all,

Consider that you have an ASP.NET application you have deployed as
www.somesite.com. If I would like to create an intranet site with the same
code (say http://intranetsite/ for use within the company firewall) , I
could just point another IIS web site to the same code location, without
having to re-deploy. I have tried this, and it works fine.

However, I would like to know if anyone has run into issues in this
scenario. Assume that the code is not dependent on URL, and the two sites
share the same resources, but are logically independent of each other.

Thanks!

--
Manohar Kamath
Editor, .netWire
www.dotnetwire.com

Nov 19 '05 #1
3 1555
Manohar,

This sounds kind of like a scary scenario. it will work as long as the pages
will *truly* stay in sync and there aren't any other resources that need to
be used or configured separately on the two sites (ie. web.config, config
settings etc.).

I suppose you can figure which data to access based on the site name or
other pathing, but still as soon as there's something app specific in either
of these directories the whole thing will go bad.

Be careful <g>...

+++ Rick ---

--

Rick Strahl
West Wind Technologies
www.west-wind.com
www.west-wind.com/weblog

"Manohar Kamath" <mk*****@TAKETH ISOUTkamath.com > wrote in message
news:uI******** ******@TK2MSFTN GP15.phx.gbl...
Hello all,

Consider that you have an ASP.NET application you have deployed as
www.somesite.com. If I would like to create an intranet site with the same
code (say http://intranetsite/ for use within the company firewall) , I
could just point another IIS web site to the same code location, without
having to re-deploy. I have tried this, and it works fine.

However, I would like to know if anyone has run into issues in this
scenario. Assume that the code is not dependent on URL, and the two sites
share the same resources, but are logically independent of each other.

Thanks!

--
Manohar Kamath
Editor, .netWire
www.dotnetwire.com

Nov 19 '05 #2
Rick,

The assumption is that there is nothing that is URL-specific in the code,
the apps are identitical except for how they are called via URL. Even the
data they access are the same. I am trying to see if there is anything else
I might be missing -- e.g. FrontPage (my guess is we won't enable FP
extensions).

Thanks!

--
Manohar Kamath
Editor, .netWire
www.dotnetwire.com
"Rick Strahl [MVP]" <ri********@hot mail.com> wrote in message
news:uQ******** ********@TK2MSF TNGP12.phx.gbl. ..
Manohar,

This sounds kind of like a scary scenario. it will work as long as the pages will *truly* stay in sync and there aren't any other resources that need to be used or configured separately on the two sites (ie. web.config, config
settings etc.).

I suppose you can figure which data to access based on the site name or
other pathing, but still as soon as there's something app specific in either of these directories the whole thing will go bad.

Be careful <g>...

+++ Rick ---

--

Rick Strahl
West Wind Technologies
www.west-wind.com
www.west-wind.com/weblog

"Manohar Kamath" <mk*****@TAKETH ISOUTkamath.com > wrote in message
news:uI******** ******@TK2MSFTN GP15.phx.gbl...
Hello all,

Consider that you have an ASP.NET application you have deployed as
www.somesite.com. If I would like to create an intranet site with the same code (say http://intranetsite/ for use within the company firewall) , I
could just point another IIS web site to the same code location, without
having to re-deploy. I have tried this, and it works fine.

However, I would like to know if anyone has run into issues in this
scenario. Assume that the code is not dependent on URL, and the two sites share the same resources, but are logically independent of each other.

Thanks!

--
Manohar Kamath
Editor, .netWire
www.dotnetwire.com


Nov 19 '05 #3
I work in this scenario every day. I have two applications that have an
externally facing access point on our DMZ and one on the intranet. The
applications are identical internally and externally with the exception of
the authentication mechanism. While I have considered the idea of having a
single point for deployment, I prefer to redeloy the application for both
environments for many reasons including the ones that Rick discussed.

Firewalls complicate any deployment and with ASP.NET, IIS, and database
access, you're adding a lot of complexity and configuration for what would
notmally be a simple deployment. Keeping everything in sync between the
external site and the intranet site and ensuring that the firewall is
configured to allow communication between all involved machines using the
correct protocol(s) just to have a single deployment point can be a huge
undertaking. If your external application is a seperate deployment, you can
have the firewall opened for communication between the host machine and the
database server and leave it at that. Using a single deployment point in
this case means opening many ports to [possibly] many machines and firewall
administrators are often weary about opening some of those ports.

The other big problem is (as Rick said) what if something does need to be
different between the two environments? In my case, I have a different
authentication for each environment. How about if some pages contain
sensitive information that absolutely must not be available externally? If
anything needs to differ between the apps and you use the single deployment
point, you're hosed.

One other thig is what if the machine hosting the deployment point goes
down? Both access points are rendered inaccessible. Even if the deployments
are identical, having the seperate deployments will allow you to keep some
level of functionality should the need arise provided that your data stores
are on another machine than your deployment point.

HTH,
Dave Fancher
http://davefancher.blogspot.com

"Manohar Kamath" wrote:
Rick,

The assumption is that there is nothing that is URL-specific in the code,
the apps are identitical except for how they are called via URL. Even the
data they access are the same. I am trying to see if there is anything else
I might be missing -- e.g. FrontPage (my guess is we won't enable FP
extensions).

Thanks!

--
Manohar Kamath
Editor, .netWire
www.dotnetwire.com
"Rick Strahl [MVP]" <ri********@hot mail.com> wrote in message
news:uQ******** ********@TK2MSF TNGP12.phx.gbl. ..
Manohar,

This sounds kind of like a scary scenario. it will work as long as the

pages
will *truly* stay in sync and there aren't any other resources that need

to
be used or configured separately on the two sites (ie. web.config, config
settings etc.).

I suppose you can figure which data to access based on the site name or
other pathing, but still as soon as there's something app specific in

either
of these directories the whole thing will go bad.

Be careful <g>...

+++ Rick ---

--

Rick Strahl
West Wind Technologies
www.west-wind.com
www.west-wind.com/weblog

"Manohar Kamath" <mk*****@TAKETH ISOUTkamath.com > wrote in message
news:uI******** ******@TK2MSFTN GP15.phx.gbl...
Hello all,

Consider that you have an ASP.NET application you have deployed as
www.somesite.com. If I would like to create an intranet site with the same code (say http://intranetsite/ for use within the company firewall) , I
could just point another IIS web site to the same code location, without
having to re-deploy. I have tried this, and it works fine.

However, I would like to know if anyone has run into issues in this
scenario. Assume that the code is not dependent on URL, and the two sites share the same resources, but are logically independent of each other.

Thanks!

--
Manohar Kamath
Editor, .netWire
www.dotnetwire.com



Nov 19 '05 #4

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

Similar topics

1
2128
by: CanardWC | last post by:
Hello, Just a little problem. I want to share a shopping cart between 2 php sites for example foo and fii. There'is no login / password solution wanted, so i must use cookie and session. If i use this http://www.foo.com and http://www.fii.com the session_id() will be different in the 2 sites so i can't recognize the user.
1
1664
by: dgermano | last post by:
I need some info to make sure I avoid problems with my webfarms. Currently I'm running 3 separate sites, each with their own webfarm of 2-3 webservers. All of these sites are using the same backend machine for SessionState info. I'm wondering what problems might pop up if I set the MachineKey to the same value on all of the webservers. I know it is required to do this within the web farm for each site so that postbacks to alernate...
5
10533
by: BPearson | last post by:
Hello I would like to have several sites share a single web.config file. To accomplish this, I would point the root of these sites to the same folder. Is there any reason why I might not want to do this? (IIS 5 or 6 In case you're wondering why I would do this, we have many web sites on a single server, and there are groups of sites that need to share common configuration information. I'd like to ease some administration by having one...
4
1650
by: Anders K. Jacobsen [DK] | last post by:
Hi I have some common UserControls i want to share between to sites (on the same mashine but on diffrent virtual paths). right now i have on solution file with aprox 10 projects. 2 of these is webprojetcs wich need to shere some common userControls. Optimally i want a class libarary project wich contains the controls so i could import the DLL and use the controls. But that of course doesnt work.
5
4599
by: Nils Hedström | last post by:
Sorry about my last post. There seems to be a bug in my newsreader-software. My company (companyA) has bought companyB. The website of companyA is www.companyA.com and comanyB's website is www.comanyb.com Management want users logged in on www.companya.com to be automatically logged in on www.companyb.com (and vice versa). I was thinking of using the same stateserver from www.companya.com and www.companyb.com.
7
1285
by: Phil | last post by:
Is it possible to share the ASP.Net database that maintains membership information? I want to use a single database install with several independent sites. I've seen where there is information about "applications" being stored, but haven't found a way to specify between applications/sites. Thanks, Phil
7
4407
by: Nils Hedström | last post by:
I have a web farm that uses a state server for session management. A user logs on to a website (www1.mysite.com). When the same user visits www2.mysite.com I want the user to be logged in. Right now it he is not logged in on www2.mysite.com (both sites use the same state server). The reason for this seems to be that the user gets a new SessionId when he visits a new web server (www2.mysite.com for example). If there was a way to add a...
0
1558
by: Emily | last post by:
Imagine a world where everybody shares and has faith in each other. We have all struggled at one time or another with our jobs or careers and have wondered if there was a better way to make a living. What if the solution was just to help each other, simply by giving and receiving. This would be a radical global experiment in faith. Imagine people all around the world connecting instantaneously and just giving and receiving money to each...
5
1735
by: =?Utf-8?B?QWxleCBNYWdoZW4=?= | last post by:
I'm developing a service which is two sites: a Mobile Site and a PC-Based Site. The whole goal is to have them operate very similarly but, of course, there will be many differences: 1. Web.configs will be different to handle cookieless vs. cookied Sessions 2. Mobile site will have no Master Pages (unfortunately) 3. Design of pages will be VASTLY different However, many elements will be exactly the same: a. I'll use most of the same...
0
9680
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
9528
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10228
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...
0
9052
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6788
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5441
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
5573
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3731
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2925
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.