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

Detect if internal web site is available

Hi,

Apologies if this has been discussed before but I have tried to search
and found nothing really helpful as I am not entirely sure exactly what
to search for..!

Is it possible to detect via ASP.Net if a web site on a remote
(internal) IIS server is available?

Background: We have 4 sites in star layout WAN with site A in the
center and B, C & D on the spurs. For various reasons our Intranet / DB
server (IIS 6 / SQL 2000) is located at spur site B so if the link
between A and B goes down then A, C & D all lose the Intranet.

Our users (being users!) then assume that because the Intranet is down
the whole Internet is down and promptly decide to not do any work at
all... ;-) (This also happens at all 4 sites when we down the Intranet
for maintenance)

It has been requested that we run a local IIS in all 4 sites (We
already have IIS 6 running webmail on Exchange 2003 at all 4 sites)
which will be all users first point of call. This will check if the
Intranet is available and redirect to it and if not display a friendly
warning page with links to our Internet site, Google etc.

TIA for any help you can give.

Regards,

Shevek

Apr 4 '06 #1
1 1295
OK, discovered that the google magic word was "scraping" and found
this:

http://aspalliance.com/articleViewer.aspx?aId=237&pId=

I have amended the code slightly to this:
Private Function CheckServer(ByVal Server As String) As String
Try
Dim req As System.Net.HttpWebRequest
Dim res As System.Net.HttpWebResponse
req = req.Create(Server)
res = req.GetResponse()
res.Close()
Return res.ResponseUri.AbsoluteUri = Server
Catch ex As Exception
Return ex.Message
End Try
End Function

but this keeps returning "The remote server returned an error: (401)
Unauthorized."

After a bit of google work I discovered 2 possible fixes (Win2K3
loppback fix which we already have and <httpWebRequest
useUnsafeHeaderParsing="true" /> in machine.config) but neither have
resolved the issue.

Can anyone shed any further light on this...?

Regards

Apr 4 '06 #2

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

Similar topics

3
by: Raj | last post by:
Hi All, Is it possible to detect if a client software is installed on a machine using browser javascript. we are building a web/windows software and when the user logs into the web application,...
8
by: Brent | last post by:
Does anyone know the best way to detect and track a visitors screen resolution. I know the javascript to detect the users resolution but I am a bit confused on the best way to track and save this....
6
by: hb | last post by:
Hi, Would you please tell me how to detect if the client's browser is closed? I need such event to trigger a database modification. Thank you hb
7
by: hiriumi | last post by:
Hello folks, I have a web application that has basic authentication turned on (IIS). What I would like to accomplish is detect whether user is navigating away from the site or simply going to the...
9
by: JT | last post by:
Here is the overall structure I will be referring to: End-program ProvideWorkFlow.dll Forms and methods that properly manipulate calls to methods in AccessUtils AccessUtils (a web service)...
6
by: =?Utf-8?B?YzY3NjIyOA==?= | last post by:
Hi all, I am thinking about doing this since I got several cases that some of our internal users open more than one browser at the same time from our server. When one of the transactions was not...
5
by: pamela fluente | last post by:
I have placed a button on a page to open a pdf stored on another site. When the user clicks on the button I do a Redirect to the pdf URL .... and this seems to work fine. Question: is this...
24
by: dE|_ | last post by:
I have started looking into scripts for screen size detect with the intention of using them to pick from a number of CSS style sheets tailored to the size. Is there a good reason why this is not...
13
by: Bob Altman | last post by:
Hi all, I have authored several native DLLs (call them A, B, and C). These libraries have references between each other (A calls B which calls C). These libraries are built and made available...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
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
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
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,...
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.