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

please help with webservice problem

When I call a webservice with an ASP.NET application, I get the following
error:

"The underlying connection was closed: Unable to connect to the remote
server. "

With my brower, I can get the asmx page and get the expected output on the
page.

With a console application, I can call the webservice and retrieve from it
what I am supposed to retrieve.

Only when an ASP.NET application calls the web service, do I get the "the
underlying connection was closed: Unable to connect to the remote server"
error message.

The only relevent msdn page
(http://support.microsoft.com/default...b;en-us;819450) isn't very
helpful. It says MS has confirmed it as a bug, and says to contact them
for a fix!!!! And there might be a charge! ARE YOU KIDDING ME?

The last time I contacted them, it was like talking to a wall.

Thanks. Any help would be greatly appreciated.

Nov 18 '05 #1
5 1502
Hi David,

Is it possible that the ASP.NET account doesn't have permission to access
that Web service? IE and a console app would pass through your personal
authentication but not a process.

You might want to put the Web service in debug mode and set a break point so
you can step through and see just what the error message is.

Ken

"David" <sp************@spammersgohome.com> wrote in message
news:S4*****************@twister.socal.rr.com...
When I call a webservice with an ASP.NET application, I get the following
error:

"The underlying connection was closed: Unable to connect to the remote
server. "

With my brower, I can get the asmx page and get the expected output on the
page.

With a console application, I can call the webservice and retrieve from it
what I am supposed to retrieve.

Only when an ASP.NET application calls the web service, do I get the "the
underlying connection was closed: Unable to connect to the remote server"
error message.

The only relevent msdn page
(http://support.microsoft.com/default...b;en-us;819450) isn't
very
helpful. It says MS has confirmed it as a bug, and says to contact them
for a fix!!!! And there might be a charge! ARE YOU KIDDING ME?

The last time I contacted them, it was like talking to a wall.

Thanks. Any help would be greatly appreciated.


Nov 18 '05 #2
I allow anonymous access to the webservice.

Apparently MS has identified it as a bug, but the fix it describes is rather
vague. Have you followed the link?
(http://support.microsoft.com/default...b;en-us;819450)

"Ken Cox [Microsoft MVP]" <BA************@sympatico.ca> wrote in message
news:e9**************@TK2MSFTNGP11.phx.gbl...
Hi David,

Is it possible that the ASP.NET account doesn't have permission to access
that Web service? IE and a console app would pass through your personal
authentication but not a process.

You might want to put the Web service in debug mode and set a break point
so you can step through and see just what the error message is.

Ken

"David" <sp************@spammersgohome.com> wrote in message
news:S4*****************@twister.socal.rr.com...
When I call a webservice with an ASP.NET application, I get the following
error:

"The underlying connection was closed: Unable to connect to the remote
server. "

With my brower, I can get the asmx page and get the expected output on
the
page.

With a console application, I can call the webservice and retrieve from
it
what I am supposed to retrieve.

Only when an ASP.NET application calls the web service, do I get the "the
underlying connection was closed: Unable to connect to the remote
server"
error message.

The only relevent msdn page
(http://support.microsoft.com/default...b;en-us;819450) isn't
very
helpful. It says MS has confirmed it as a bug, and says to contact them
for a fix!!!! And there might be a charge! ARE YOU KIDDING ME?

The last time I contacted them, it was like talking to a wall.

Thanks. Any help would be greatly appreciated.

Nov 18 '05 #3
the bug in the article is about .net not correctly supporting keep-alives in
verion 1.0. you can upgrade to 1.1 for free or if you must stick with 1.0,
turn keep-alive off for the web site.

-- bruce (sqlwork.com)


"David" <sp************@spammersgohome.com> wrote in message
news:S4*****************@twister.socal.rr.com...
| When I call a webservice with an ASP.NET application, I get the following
| error:
|
| "The underlying connection was closed: Unable to connect to the remote
| server. "
|
| With my brower, I can get the asmx page and get the expected output on
the
| page.
|
| With a console application, I can call the webservice and retrieve from it
| what I am supposed to retrieve.
|
| Only when an ASP.NET application calls the web service, do I get the "the
| underlying connection was closed: Unable to connect to the remote server"
| error message.
|
| The only relevent msdn page
| (http://support.microsoft.com/default...b;en-us;819450) isn't
very
| helpful. It says MS has confirmed it as a bug, and says to contact them
| for a fix!!!! And there might be a charge! ARE YOU KIDDING ME?
|
| The last time I contacted them, it was like talking to a wall.
|
| Thanks. Any help would be greatly appreciated.
|
|
|
Nov 18 '05 #4
Hi David,

Are you using .NET 1.0 or 1.1? The article suggests it is a 1.0 problem.

At any rate, I'd phone MS Support and tell them you want the fix they are
advertising. You shouldn't be charged for a bug fix. Make sure you have the
KB article number handy.

Ken
"David" <sp************@spammersgohome.com> wrote in message
news:1m*****************@twister.socal.rr.com...
I allow anonymous access to the webservice.

Apparently MS has identified it as a bug, but the fix it describes is
rather vague. Have you followed the link?
(http://support.microsoft.com/default...b;en-us;819450)


Nov 18 '05 #5
I am using 1.1

"Ken Cox [Microsoft MVP]" <BA************@sympatico.ca> wrote in message
news:eV**************@tk2msftngp13.phx.gbl...
Hi David,

Are you using .NET 1.0 or 1.1? The article suggests it is a 1.0 problem.

At any rate, I'd phone MS Support and tell them you want the fix they are
advertising. You shouldn't be charged for a bug fix. Make sure you have
the KB article number handy.

Ken
"David" <sp************@spammersgohome.com> wrote in message
news:1m*****************@twister.socal.rr.com...
I allow anonymous access to the webservice.

Apparently MS has identified it as a bug, but the fix it describes is
rather vague. Have you followed the link?
(http://support.microsoft.com/default...b;en-us;819450)

Nov 18 '05 #6

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

Similar topics

0
by: Kristof Thys via .NET 247 | last post by:
Hello, I've been struggling for weeks with this problem, I hope I find some help here... To start, in our company, we have a large existing c++ project (native code, unmanaged c++) The...
1
by: Shalini | last post by:
Hi I am posting this again.Sorry for the trouble. I just have a third party dll which does some custom functionality. The Dll have some apis which run only when the user is an administrator. I...
2
by: john | last post by:
Hello, We have a tablet pc that is trying to sync data to our main sql server during the night but we keep getting a timeout issue. The tablet pc has an access database that contains about 5000...
2
by: Miguel | last post by:
Hi, I'm developing an application in C# with Windows Forms for my company that is similar to the MSN Messenger. This application uses a webservice for registering users, etc... and as 2...
0
by: Chris | last post by:
Hi, I have tried for a month with this and got no success. So I need you help. I have created a COM+ component hosted on a win 2003 box. I have written a client VB.NET app and they work excellent....
2
by: hulinning | last post by:
Hi, I create my Webservice in 2003 VS and test in Windows 2000 and Windows XP Pro without any problem. When I deploy it over Windows 2003 server, It fails to connect to the WS. I got Anonymous...
2
by: Jannicke | last post by:
Hi. I have a project that contains a webservice. To test my webservice I have another class in the same project. In the project I have added a webreference to my webservice. In my class file i call...
1
by: smerf | last post by:
I am really new to this .Net stuff, but I am wondering if you can help me with a webservice issue. I have 15 locations that need to access a webservice. The webservice accepts XML and returns...
0
by: sunilrakesh435 | last post by:
Please help me for this webservice solution....... -------------------------------------------------------------------------------- Hi. Im sunil . Im new to use web services.I got a problem...
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: 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
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: 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
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
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.