473,757 Members | 9,463 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1516
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******** *********@twist er.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******** ******@TK2MSFTN GP11.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******** *********@twist er.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******** *********@twist er.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******** *********@twist er.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******** ******@tk2msftn gp13.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******** *********@twist er.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
968
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 objective is to write a webservice for some of the functionalities from this project. The best way to do this in Visual Studio .NET 2003 seems to me by creating an ASP.NET Web service in c++. I create the default template, wich works just fine. Now I...
1
1801
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 made a simple windows GUI application which makes use of the dll. Good it works fine when i am logged in as the Administrator. I made a Webservice which uses PInvoke thereby making use of the DLL. The DLL reported Error as the WebService is not...
2
2703
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 rows of data. We have setup the machine.config for a executionTimeout of 900. Below is our code for the specific vb.net app and the webservice it uses. Can someone see if I am missing something as to why this is bombing out? Also is there a
2
5711
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 webbrowser controls on it. Besides that i'm using the firewall client for isa server 2004 and it seems that the browsers aren't able to pass thru it... if i disable the firewall the browsers work fine, if i don't, the 2 browsers just stay there...
0
303
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. I then decided to create a webservice to consume the COM+ component. I published the webservice to an XP (sp2) box to test. In iis on the XP box I set the directory security to "Anonymous". In the web.config file of the webservice I set the...
2
1568
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 access check, and integerated Windows authentication check. My client, WinCE 4.2 device, still cannot access the web service. I got a WebException return to WinCE. The same setting is always work in Windows 2000/XP Pro.
2
1466
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 the webservice which should return a string value in the response. The problem is that the responsevalue is null even if the webmethod acts like it should do. I have debugged my code and when i debug the webmethod the return value is set correct,...
1
1333
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 an xml response immediately. The webservice we subscribe to will only take info from a single IP address, so I need to create a sort of proxy at our main office that relays the XML input and responses from and back to our locations.
0
904
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 while using web services like this., while im running the .NET coding, first it is showing webservice page with name "outbound". while clicking outbound again its opeaning webservice page with showing xml path, there im giving xml path, after that...
0
9489
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9298
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9906
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9737
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7286
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6562
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3829
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3399
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2698
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.