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

IIS & XMLHTTP

I was recently on a OO Design course<g> and as a result I've decided to
"Tier" my ASP classic pages for maintainability.

Browser <----> PT <---> BT <---> DT
PT == Presentation Tier
BT == Business Tier
DT == Data Tier

Right now, the browser communicates with just one ASP page and it's a fairly
simple job to divide each one into 3 separate ASP pages with each new page
doing the work of one tier and communicating with the other tiers using
XMLHTTP (I'm using Msxml2.ServerXMLHTTP in non-async mode) and returning XML
to the calling tier.

I'm a small web site, so right now, all of my tiers will exist on just one
box. While I can get it to work, I've found that XMLHTTP communication
between pages on the same box does not work unless you use different Virtual
Directories for each tier _and_ you set them to different "Application
Protection" - high, medium and low. If you don't do this, the web server
"hangs" as MS so correctly states in point 2 of
http://support.microsoft.com/?id=290591

The only solutions I see here is to either have separate boxes for each tier
or manage the protection for each Virtual Directory - both of which I can't
do, because the servers are not mine.

Does anybody have any suggestions on how to solve this problem, as it seems
to be a fundamental weakness in IIS. I'm guessing that large sites have the
luxury of separating the tiers onto distinct boxes, but what do other
small/medium sites do, that want to maintain "tier" code?

BTW - it does not seem to matter whether the type of protection is higher or
lower for the calling page to the called page - it just needs to be
different - is that understanding correct?

Brian Staff


Jul 19 '05 #1
2 4308
Your data tier should probably be your database.
Your business tier would be either a COM component or web classes
Your presentation tier would be your .ASP page

That's how I've typically see these types of things divided up.

You may additionally choose to have a data access layer (DAL) which all your
middle tier code goes through to speak to the underlying data source.

Cheers
Ken

"Brian Staff" <brianstaff@[NoSpam]compuserve.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
: I was recently on a OO Design course<g> and as a result I've decided to
: "Tier" my ASP classic pages for maintainability.
:
: Browser <----> PT <---> BT <---> DT
: PT == Presentation Tier
: BT == Business Tier
: DT == Data Tier
:
: Right now, the browser communicates with just one ASP page and it's a
fairly
: simple job to divide each one into 3 separate ASP pages with each new page
: doing the work of one tier and communicating with the other tiers using
: XMLHTTP (I'm using Msxml2.ServerXMLHTTP in non-async mode) and returning
XML
: to the calling tier.
:
: I'm a small web site, so right now, all of my tiers will exist on just one
: box. While I can get it to work, I've found that XMLHTTP communication
: between pages on the same box does not work unless you use different
Virtual
: Directories for each tier _and_ you set them to different "Application
: Protection" - high, medium and low. If you don't do this, the web server
: "hangs" as MS so correctly states in point 2 of
: http://support.microsoft.com/?id=290591
:
: The only solutions I see here is to either have separate boxes for each
tier
: or manage the protection for each Virtual Directory - both of which I
can't
: do, because the servers are not mine.
:
: Does anybody have any suggestions on how to solve this problem, as it
seems
: to be a fundamental weakness in IIS. I'm guessing that large sites have
the
: luxury of separating the tiers onto distinct boxes, but what do other
: small/medium sites do, that want to maintain "tier" code?
:
: BTW - it does not seem to matter whether the type of protection is higher
or
: lower for the calling page to the called page - it just needs to be
: different - is that understanding correct?
:
: Brian Staff
Jul 19 '05 #2
Ken,

Ah! so COM eliminates the "IIS threading" problem. I do understand that the
tiers can be programmed in any language at all, but I'm quite content doing
it all in ASP.

I do have it working on my test machine using ASP for all 3 tiers, with
separate Virtual Directories using different protection. I just want to know
if I can get around the need for different protection on each VD.

Brian

"Ken Schaefer" <ke*******@THISadOpenStatic.com> wrote in message
news:uK**************@tk2msftngp13.phx.gbl...
Your data tier should probably be your database.
Your business tier would be either a COM component or web classes
Your presentation tier would be your .ASP page

That's how I've typically see these types of things divided up.

You may additionally choose to have a data access layer (DAL) which all your middle tier code goes through to speak to the underlying data source.

Cheers
Ken

"Brian Staff" <brianstaff@[NoSpam]compuserve.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
: I was recently on a OO Design course<g> and as a result I've decided to
: "Tier" my ASP classic pages for maintainability.
:
: Browser <----> PT <---> BT <---> DT
: PT == Presentation Tier
: BT == Business Tier
: DT == Data Tier
:
: Right now, the browser communicates with just one ASP page and it's a
fairly
: simple job to divide each one into 3 separate ASP pages with each new page : doing the work of one tier and communicating with the other tiers using
: XMLHTTP (I'm using Msxml2.ServerXMLHTTP in non-async mode) and returning
XML
: to the calling tier.
:
: I'm a small web site, so right now, all of my tiers will exist on just one : box. While I can get it to work, I've found that XMLHTTP communication
: between pages on the same box does not work unless you use different
Virtual
: Directories for each tier _and_ you set them to different "Application
: Protection" - high, medium and low. If you don't do this, the web server
: "hangs" as MS so correctly states in point 2 of
: http://support.microsoft.com/?id=290591
:
: The only solutions I see here is to either have separate boxes for each
tier
: or manage the protection for each Virtual Directory - both of which I
can't
: do, because the servers are not mine.
:
: Does anybody have any suggestions on how to solve this problem, as it
seems
: to be a fundamental weakness in IIS. I'm guessing that large sites have
the
: luxury of separating the tiers onto distinct boxes, but what do other
: small/medium sites do, that want to maintain "tier" code?
:
: BTW - it does not seem to matter whether the type of protection is higher or
: lower for the calling page to the called page - it just needs to be
: different - is that understanding correct?
:
: Brian Staff

Jul 19 '05 #3

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

Similar topics

5
by: Matt Kruse | last post by:
I'd like to test for Opera8.00's missing setRequestHeader method before actually instantiating the object. For example, this works in firefox: if (XMLHttpRequest.prototype.getRequestHeader) { ......
4
by: sfslug | last post by:
Hello. I'm using xmlhttp in a windows application to return xml data. The xml data is returned successfully, but I get errors when I try loading the xmlhttp response object to a dataset. I can...
2
by: samir.kuthiala | last post by:
I do some requests in the background on a page using the XMLHttpRequest object. My site uses NTLM Authentication. However if the user is not logged in, it throws up an ugly dialog box. Is there...
9
by: balakrishnan.dinesh | last post by:
hi friends, Exactly what i want to know is, In my product we are using xmlhttp request to retrive some data from the server, And Im using IE browser, its working fine in IE. Now i want to work...
3
by: Ivan P | last post by:
Hello! I have a index.php that on one click calls via AJAX a file.php. index.php looks like this: <html > <head> <script language="javascript" type="text/javascript" >
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
2
by: empiresolutions | last post by:
I'm using the following AJAX code to send GET vars to my processing PHP file. This works great as is except that it will not accept a *&* (AND symbol) in the text input. It trys to pass what is after...
1
by: msg2ajay | last post by:
hello, i am very new to Ajax i have tried an example but it showing some error can anybady tell me where i am doing mistake... my coding is as follows ajax.html: ----------- ...
1
by: fidgen | last post by:
Hiya, I'm trying to get a AJAX driven update to my list of news articles, so when users click the title of the news article, it pops up the article content in a thickbox overlay. Retrieving...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

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.