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

Error looking up webservice, in the test mode

Hi,
I am testing with Visual studio 2005, web projects.

Situation:
I have one solution with two web projects, created as file system projects.
(I am tesing using the built in server, not IIS)
First project is a webService.
Second consumes the webservices by the first.
Problem/Error:
Often when I run the second, to call the websrvice from the first, following
error happens.
When I just re-run, no problems.
It fails trying to call the webservice of the second.

How do I stop this from happenning?
(seems like some session is expiring, and the subsequent call fails (have to
constantly test, while changing aspx))
---- ERROR ----------------------------
An established connection was aborted by the software in your host machine

Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Net.Sockets.SocketException: An established
connection was aborted by the software in your host machine

Thanks
Nalaka
Nov 19 '05 #1
1 2089
Hi Nalaka,

Welcome to ASPNET newsgroup.
From your description, you've build a asp.net 2.0 web app and a webservice
project through the whidbey vs.net IDE and choose the file system projects.
When you call the webservice from the web app, sometimes there'll occur
error for lookingup webservice, yes?

Based on my experience, this problem is likely caused by the webservice is
built in a file system based project. For file system based project, the
VS.NET IDE will use the internal webserver to host it , however since the
internal websever may start on a random port each time it start (on demand)
and the port may vary between the different time you start your webservice(
for example, close the project and open/run after long time). So when you
call it in your asp.net web project, the webservice's instance may not
started yet or started on a different port from the one your web app access
last time.

To avoid this, I suggest you run your webservice asmx page first (through
browser ) so as to make it alive on a certain port (in the internal
webserver). Then, adjust the web Reference's URL in your web project so as
to make sure the webservice can be accessed correctly. In addition, if
there's IIS installed on your dev machine, you can also consider deploy the
webservice project to the IIS server and access the webservice from webapp
through the IIS project( the URL will not vary in different time)

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


--------------------
| From: "Nalaka" <na******@nospam.nospam>
| Subject: Error looking up webservice, in the test mode
| Date: Thu, 28 Jul 2005 11:41:54 -0700
| Lines: 37
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| Message-ID: <Ov**************@TK2MSFTNGP15.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: m181-9.bctransit.bc.ca 199.60.181.9
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP15.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:115007
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Hi,
| I am testing with Visual studio 2005, web projects.
|
| Situation:
| I have one solution with two web projects, created as file system
projects.
| (I am tesing using the built in server, not IIS)
| First project is a webService.
| Second consumes the webservices by the first.
|
|
| Problem/Error:
| Often when I run the second, to call the websrvice from the first,
following
| error happens.
| When I just re-run, no problems.
| It fails trying to call the webservice of the second.
|
| How do I stop this from happenning?
| (seems like some session is expiring, and the subsequent call fails (have
to
| constantly test, while changing aspx))
|
|
| ---- ERROR ----------------------------
| An established connection was aborted by the software in your host machine
|
| Description: An unhandled exception occurred during the execution of the
| current web request. Please review the stack trace for more information
| about the error and where it originated in the code.
|
| Exception Details: System.Net.Sockets.SocketException: An established
| connection was aborted by the software in your host machine
|
|
|
| Thanks
| Nalaka
|
|
|

Nov 19 '05 #2

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

Similar topics

17
by: Patrick | last post by:
I am almost certain that I could use HTTP Post/Get to submit XML Web Service call (over SSL as well, if using Version 3 of MSXML2) from an ASP Application? However, would I only be able to call...
10
by: Brian Conway | last post by:
I have no idea what is going on. I have a Login screen where someone types in their login information and this populates a datagrid based off of the login. Works great in debug and test through...
4
by: Sanjay | last post by:
I have written a web service to return information from the database. This works and the data is returned in XML format from the database and displayed on the web page as well when this web service...
1
by: ramarnath | last post by:
Hi, I've created a webservice, which is working fine in development environment and UAT environment. but i received following error often in staging environment, not all the time. ...
0
by: AndyG | last post by:
I am calling a webservice from a web page. I was getting this error "The underlying connection was closed: An unexpected error occurred on a receive." When I run it in debug mode, it works fine. To...
3
by: Arne | last post by:
Is there a secret trick to debugging a Web service? I compile my web service and test app in debug mode. The webservice has <compilation defaultLanguage="vb" debug="true" /> in web.config. I set...
4
by: jf li | last post by:
I have a Asp.net web application and a Asp.net Web service application. The Web application is using HtmlInputFile to get a 50M size of file selected by end user, read the data of this file and...
4
by: Matthew.DelVecchio | last post by:
hello, i am developing an ASP.NET web app that consumes a 3rd party vendor webservice. it is my first one so while ive done my homework, im not an expert on the matter. our partner's...
1
by: Mongo | last post by:
I am getting the following error when I try to run a new webservice I have placed on any one of 4 windows 2003 servers. (Running under ASP.NET 1.1) To minimize the problem, I created a simple...
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
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
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...
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,...
0
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...

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.