473,386 Members | 1,753 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,386 software developers and data experts.

DLL confusion with multiple sites on a single host

I'd be grateful for any input on this one:

I have three web domains. The destinations of two are set to folders
on the first, though that fact is transparent to the user (i.e: it does
not REDIRECT to the first domain). Example:

http://www.maindomain.com (main hosted package)
http://www.subdomain1.com -> www.maindomain.com/subdomain1/
http://www.subdomain2.com -> www.maindomain.com/subdomain2/

To be precise, the two domains' destination is actually
c:\iisroot\maindomain.com\subdomain1 or 2.

If I stick a different HTML or Classic ASP page (default.asp, say) in
each of the root of those three sites, they each appear differently.
Fine. But when I do it with ASPX applications it gets weird.

If I have three different 'default.aspx' files in the root of those
sites, with or without a different class / Inherits tag (e.g.:
Inherits="subdomain2._default2"), the page will return the correct
default.aspx first time AND THEN ALWAYS RETURN THAT SAME PAGE WHEN
DEFAULT.ASPX IS CALLED FROM ANY OF THE OTHER DOMAINS. So if you first
visit subdomain1.com/default.aspx that will be correct, but if you THEN
visit subdomain2.com/default.aspx you will get the page from
subdomain1.com. If, however, you visit
maindomain.com/subdomain2/default.aspx you will get the correct page
for subdomain2. Frustrating.

Now, I figured that all the DLLs are being called from the /bin/
folder in the root of maindomain.com because only they affect if the
site is working. I can't really put them in the root of the subdomains
because it isn't ACTUALLY a root folder, so they won't be called from
there. I also know that when a page is called for the first time it is
compiled by the server (nothing to do with VS.NET). This, I think, is
where the confusion happens.

I figure the server is getting confused by the fact that the DLL is
in the root /bin/ folder (of maindomain.com) but the web form called by
the browser is in the 'root' of subdomain1 or 2. It therefore sees
requests for all three domain as being for the same /default.aspx file
and returns that which it has already compiled. Remember this doesn't
happen with HTML files.

Incidentally, it doesn't seem to matter if the classes are in their
own namespace or not.

Any ideas on how to combat this confusion? It's infuriating!

Nov 19 '05 #1
0 1379

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

Similar topics

3
by: Craig | last post by:
I've developed an single sign on web application that we'd like to use with all the applications we're developing. The application's connection string is stored in web.config. I've gotten some...
6
by: Mark Goldin | last post by:
I have registered a domain that forwards every hit to my home PC. I have configured Default Web site to show one Web from my PC. So when people navigate to www.mydomain.com they see that site....
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...
5
by: George | last post by:
Hi, Is it possible to specify the location of a web.config file in an ASP.NET application? I have one ASP.NET application which is to be hosted on 2 web sites in the same web server. I want...
1
by: Zeng | last post by:
Hello, If I have 20 websites hosted on the same machine and all point to the same application code, how many instances of my app will be running? 1 or 20? This is a very common case where...
9
by: Graham | last post by:
I have been having some fun learning and using the new Controls and methods in .Net 2.0 which will make my life in the future easier and faster. Specifically the new databinding practises and...
1
by: ramata | last post by:
Sorry, the question is related but might not directly linked to ASP.NEt I have a Windows 2003 server machine that is connected to Internet and has single static IP address (say 90.90.90.90). I...
0
by: DeOriginal | last post by:
Hi, This is my scenario - I have four URLs www.mysite1.com www.mysite2.com www.mysite3.com www.mysite4.com
1
by: Joern Schou-Rode | last post by:
Hi all, I am working on a project where we need to host a growing number of web sites (initially around 15). In terms of functionality the sites are identical, and the only differences lies in...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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.