473,396 Members | 2,109 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,396 software developers and data experts.

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 1532
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*****@TAKETHISOUTkamath.com> wrote in message
news:uI**************@TK2MSFTNGP15.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********@hotmail.com> wrote in message
news:uQ****************@TK2MSFTNGP12.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*****@TAKETHISOUTkamath.com> wrote in message
news:uI**************@TK2MSFTNGP15.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********@hotmail.com> wrote in message
news:uQ****************@TK2MSFTNGP12.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*****@TAKETHISOUTkamath.com> wrote in message
news:uI**************@TK2MSFTNGP15.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
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...
1
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...
5
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...
4
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...
5
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...
7
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...
7
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...
0
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...
5
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....
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.