Unable to connect to the remote server

Unable to connect to the remote server

am 29.01.2008 21:02:57 von ibidibi411

Hi,

I'm running IIS 5.1 on WindowsXP Pro and am trying to connect my
VB.NET application to a simple test application that is set up in
IIS. The URL for the Web reference is: http://192.168.0.201/BasicAuthService/Service.asmx

But every time I right-click on the reference in the Solution Explorer
and select "Update Web Reference" it sits there for a long time and
then dies with the error:

"There was an error downloading 'http://192.168.0.201/BasicAuthService/
Service.asmx' Unable to connect to the remote server. A connection
attempt failed because the connected party did not respond after a
period of time, or established connection failed because connected
host failed to respond."

I also cannot connect from the VB.NET code for the same reason.

BasicAuthService is a folder under wwwroot and it shows up fine in the
Object Browser of VS. I have tried variations on security settings
for the service within the IIS MMC or setting directory permissions,
etc.

This is a very simple Hello World service example I got from The
Microsoft Mobile Development Handbook. I had set this up to allow
basic authentication.

Any help would be very much appreciated!

John D.

Re: Unable to connect to the remote server

am 29.01.2008 21:29:58 von Kristofer Gafvert

Is IIS started?
Do you have a firewall that blocks the request?
Can you connect to the website using Internet Explorer?

--
Regards,
Kristofer Gafvert
http://www.gafvert.info/iis/ - IIS Related Info


skrev i meddelandet
news:1c13afec-ed79-404f-9369-7f1a0b4454a5@t1g2000pra.googleg roups.com...
>
> Hi,
>
> I'm running IIS 5.1 on WindowsXP Pro and am trying to connect my
> VB.NET application to a simple test application that is set up in
> IIS. The URL for the Web reference is:
> http://192.168.0.201/BasicAuthService/Service.asmx
>
> But every time I right-click on the reference in the Solution Explorer
> and select "Update Web Reference" it sits there for a long time and
> then dies with the error:
>
> "There was an error downloading 'http://192.168.0.201/BasicAuthService/
> Service.asmx' Unable to connect to the remote server. A connection
> attempt failed because the connected party did not respond after a
> period of time, or established connection failed because connected
> host failed to respond."
>
> I also cannot connect from the VB.NET code for the same reason.
>
> BasicAuthService is a folder under wwwroot and it shows up fine in the
> Object Browser of VS. I have tried variations on security settings
> for the service within the IIS MMC or setting directory permissions,
> etc.
>
> This is a very simple Hello World service example I got from The
> Microsoft Mobile Development Handbook. I had set this up to allow
> basic authentication.
>
> Any help would be very much appreciated!
>
> John D.

Re: Unable to connect to the remote server

am 29.01.2008 21:48:12 von ibidibi411

On Jan 29, 3:29=A0pm, "Kristofer Gafvert"
wrote:
>
> Is IIS started?

I believe it is. In Control Panel/Services the IIS Admin service is
started and if I right-click on my local computer in the IIS MMC the
context menu has "Restart IIS" I have tried restarting several times
with no luck.

> Do you have a firewall that blocks the request?

Well, the Windows Firewall was enabled, so I disabled it totally and
restarted IIS just for good measure. It did not change anything-- I
still get exactly the same error.

> Can you connect to the website using Internet Explorer?

No. What does this mean??

Thanks!!

John

Re: Unable to connect to the remote server

am 29.01.2008 21:53:33 von Kristofer Gafvert

Can you access IIS locally using Internet Explorer?

If not, what is returned in the browser (disable "Show friendly HTTP error
messages" in the browser)?

It seems that you are unable to connect to IIS. If you can access IIS
locally, we can rule out a configuration problem with IIS.

--
Regards,
Kristofer Gafvert
http://www.gafvert.info/iis/ - IIS Related Info


skrev i meddelandet
news:bf4ec3f6-7f0f-4319-8858-751fa2abba9f@h11g2000prf.google groups.com...
On Jan 29, 3:29 pm, "Kristofer Gafvert"
wrote:
>
> Is IIS started?

I believe it is. In Control Panel/Services the IIS Admin service is
started and if I right-click on my local computer in the IIS MMC the
context menu has "Restart IIS" I have tried restarting several times
with no luck.

> Do you have a firewall that blocks the request?

Well, the Windows Firewall was enabled, so I disabled it totally and
restarted IIS just for good measure. It did not change anything-- I
still get exactly the same error.

> Can you connect to the website using Internet Explorer?

No. What does this mean??

Thanks!!

John

Re: Unable to connect to the remote server

am 29.01.2008 22:33:43 von ibidibi411

On Jan 29, 3:53=A0pm, "Kristofer Gafvert"
wrote:
> Can you access IIS locally using Internet Explorer?

I can't access the service locally through IE, if that is what you
mean.

If I enter "http://192.168.0.201/BasicAuthService/Service.asmx" into
the
address box and hit enter I get the usual "Cannot display the webpage"
error.

It also has some generic ideas on what causes the problem:


"This problem can be caused by a variety of issues, including:

Internet connectivity has been lost.
The website is temporarily unavailable.
The Domain Name Server (DNS) is not reachable.
The Domain Name Server (DNS) does not have a listing for the website's
domain.
If this is an HTTPS (secure) address, click Tools, click Internet
Options, click Advanced, and check to be sure the SSL and TLS
protocols are enabled under the security section."

> If not, what is returned in the browser (disable "Show friendly HTTP error=

> messages" in the browser)?

I got the aformentioned text with Show friendly messages disabled.

..Looks like an IIS configuration issue, huh? I know nothing about
IIS. I set this up
according to the readme.txt for the sample application I was looking
at.

Thanks!

Ben

Re: Unable to connect to the remote server

am 30.01.2008 21:27:17 von Kristofer Gafvert

In a command prompt, type this:

netstat -ano

Does anything listen on port 80? What process (match the PID in task
manager)? What local addresses are listening on port 80?

--
Regards,
Kristofer Gafvert
http://www.gafvert.info/iis/ - IIS Related Info


skrev i meddelandet
news:1f00300f-f80a-4077-8a5f-cf92bc4fbc85@d4g2000prg.googleg roups.com...
On Jan 29, 3:53 pm, "Kristofer Gafvert"
wrote:
> Can you access IIS locally using Internet Explorer?

I can't access the service locally through IE, if that is what you
mean.

If I enter "http://192.168.0.201/BasicAuthService/Service.asmx" into
the
address box and hit enter I get the usual "Cannot display the webpage"
error.

It also has some generic ideas on what causes the problem:


"This problem can be caused by a variety of issues, including:

Internet connectivity has been lost.
The website is temporarily unavailable.
The Domain Name Server (DNS) is not reachable.
The Domain Name Server (DNS) does not have a listing for the website's
domain.
If this is an HTTPS (secure) address, click Tools, click Internet
Options, click Advanced, and check to be sure the SSL and TLS
protocols are enabled under the security section."

> If not, what is returned in the browser (disable "Show friendly HTTP error
> messages" in the browser)?

I got the aformentioned text with Show friendly messages disabled.

....Looks like an IIS configuration issue, huh? I know nothing about
IIS. I set this up
according to the readme.txt for the sample application I was looking
at.

Thanks!

Ben

Re: Unable to connect to the remote server

am 30.01.2008 22:58:44 von ibidibi411

On Jan 30, 3:27=A0pm, "Kristofer Gafvert"
wrote:
> In a command prompt, type this:
>
> netstat -ano
>
> Does anything listen on port 80? What process (match the PID in task
> manager)? What local addresses are listening on port 80?

Hi Kristofer,

Here's what I get:

Local Addy: 0.0.0.0:80
Foreign Addy: 0.0.0.0:0
State: LISTENING
PID 1444 (inetinfo.exe)

Local Addy: 192.168.0.138:1425
Foreign Addy: 64.233.179.100:80
State: ESTABLISHED
PID: 3500 (Outlook.exe)

Local Addy: 192.168.0.138:3761
Foreign Addy: 216.178.44.20:80
State: ESTABLISHED
PID: 2864 (iexplore.exe)

Looks like the only one with a local port 80 is IIS, doesn't it? I
include the other two because the
foreign address is port 80.

Thanks for the help!!

John (Ben)

Re: Unable to connect to the remote server

am 31.01.2008 05:49:43 von Kristofer Gafvert

It seems that IIS is started and listening on port 80, on all ip addresses.
Do you have any other firewall or security software? What happens if you use
http://localhost/ on the server itself? Does it give you a response?

--
Regards,
Kristofer Gafvert
http://www.gafvert.info/iis/ - IIS Related Info


skrev i meddelandet
news:ab6555d2-428a-461a-b225-3994beb19f80@y5g2000hsf.googleg roups.com...
On Jan 30, 3:27 pm, "Kristofer Gafvert"
wrote:
> In a command prompt, type this:
>
> netstat -ano
>
> Does anything listen on port 80? What process (match the PID in task
> manager)? What local addresses are listening on port 80?

Hi Kristofer,

Here's what I get:

Local Addy: 0.0.0.0:80
Foreign Addy: 0.0.0.0:0
State: LISTENING
PID 1444 (inetinfo.exe)

Local Addy: 192.168.0.138:1425
Foreign Addy: 64.233.179.100:80
State: ESTABLISHED
PID: 3500 (Outlook.exe)

Local Addy: 192.168.0.138:3761
Foreign Addy: 216.178.44.20:80
State: ESTABLISHED
PID: 2864 (iexplore.exe)

Looks like the only one with a local port 80 is IIS, doesn't it? I
include the other two because the
foreign address is port 80.

Thanks for the help!!

John (Ben)

Re: Unable to connect to the remote server

am 31.01.2008 16:42:02 von ibidibi411

Hi Kristofer,

On Jan 30, 11:49=A0pm, "Kristofer Gafvert"
wrote:
> It seems that IIS is started and listening on port 80, on all ip addresses=
..
> Do you have any other firewall or security software? What happens if you u=
sehttp://localhost/on the server itself? Does it give you a response?

I have TrendMicro Client/Server Security Agent. It is running, but
disabled.

http://localhost/ gives a "no web site configured at this address"
error.

Thanks,

John

Re: Unable to connect to the remote server

am 31.01.2008 17:45:31 von Kristofer Gafvert

Okay, so we know that IIS is answering on localhost. What are the bindings
for the website (ip address, port and host header)?

Are you sure the machine is assigned the IP address 192.168.0.201?

--
Regards,
Kristofer Gafvert
http://www.gafvert.info/iis/ - IIS Related Info


skrev i meddelandet
news:b875c290-cc20-4c95-afdf-b0dce00a44fd@p69g2000hsa.google groups.com...
Hi Kristofer,

On Jan 30, 11:49 pm, "Kristofer Gafvert"
wrote:
> It seems that IIS is started and listening on port 80, on all ip
> addresses.
> Do you have any other firewall or security software? What happens if you
> usehttp://localhost/on the server itself? Does it give you a response?

I have TrendMicro Client/Server Security Agent. It is running, but
disabled.

http://localhost/ gives a "no web site configured at this address"
error.

Thanks,

John

Re: Unable to connect to the remote server

am 31.01.2008 18:32:49 von ibidibi411

On Jan 31, 11:45=A0am, "Kristofer Gafvert"
wrote:
> Okay, so we know that IIS is answering on localhost. What are the bindings=

> for the website (ip address, port and host header)?
>
> Are you sure the machine is assigned the IP address 192.168.0.201?

Aha! No, I have no idea where it got that IP... I figured it just got
it from the machine. I've updated the IP to 192.168.0.138 and now I
run this in IE:

http://192.168.0.138/BasicAuthService/Service.aspx

And get "Failed to access IIS metabase"

"The process account used to run ASP.NET must have read access to the
IIS metabase (e.g. IIS://servername/W3SVC). For information on
modifying metabase permissions, please see http://support.microsoft.com/?kbi=
d=3D267904."

Looks like I'm making progress!

Thanks,

John

Re: Unable to connect to the remote server

am 31.01.2008 19:20:18 von ibidibi411

> Aha! =A0No, I have no idea where it got that IP... I figured it just got
> it from the machine. =A0I've updated the IP to 192.168.0.138 and now I
> run this in IE:
>
> http://192.168.0.138/BasicAuthService/Service.aspx
>
> And get "Failed to access IIS metabase"
>
> "The process account used to run ASP.NET must have read access to the
> IIS metabase (e.g. IIS://servername/W3SVC). For information on
> modifying metabase permissions, please seehttp://support.microsoft.com/?kb=
id=3D267904."
>
> Looks like I'm making progress!

I ran some utility aspnet_regiis.exe I believe-- I found it in another
post. That
seems to have moved me a little further. I can now type in the URL:

http://192.168.0.138/BasicAuthService/Service.asmx

And it tells me that my HelloWorld function is supported, but it also
complains:

"This web service is using http://tempuri.org/ as its default
namespace.
Recommendation: Change the default namespace before the XML Web
service is made public."

I'm not too concerned about that, but when I try to call HelloWorld
from my VB app I get a 404
error.

I think I am making progress, though...

Thanks!!

John