473,837 Members | 1,759 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Sock ets.SocketExcep tion: An established
connection was aborted by the software in your host machine

Thanks
Nalaka
Nov 19 '05 #1
1 2113
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******@nospa m.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.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: m181-9.bctransit.bc. ca 199.60.181.9
| Path: TK2MSFTNGXA01.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP15.phx. gbl
| Xref: TK2MSFTNGXA01.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:1150 07
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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.Sock ets.SocketExcep tion: 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
14800
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 web-service in a an asynchronous mode (with a callback function)? If so, how?
10
2731
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 VS, however, when I change to release and put it out on the web it fails giving me the following error message The underlying connection was closed. Could not establish a trust relationship with the remote server.
4
2918
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 called getsampledata is invoked. Now I create a web page and created a webservice using the web reference technique in the VS .NET to consume this web service. The web page (application), web server, web service and database are on the same...
1
3281
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. ------------------ Client found response content type of 'text/html; charset=Windows-1252', but expected 'text/xml'. The request failed with the error message: --
0
605
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 help me debug this, I have the webservice write lines to a text file to determine how far it gets. I determined the browser returns the error page, and the webservice is still running. The webservice finishes shortly after. It seems to me like I...
3
5025
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 breakpoints in my web service. I try to step into my web services with F11 from my test app. My webservices executes, but I never reach my breakpoint and my webservice never executes in debug mode.
4
6215
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 pass the data to the web service. I already modified both web.config files and changed maxRequestLength to 60000(kb). When I debug the upload process, it seems the Web application can get the 50M file and read the data without problem, but when the...
4
20491
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 webservice operates on SSL via an "https://" url. they also gave me a .PFX certificate which ive installed via window's MMC utility, into the "Computer account"'s Personal store; as indicated by articles id found. i then export a .CER to the filesystem...
1
2634
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 webservice called "TestApp" that exposes as the lone method on the service. I create a simple installer package for the msi and run it on the server. When I go to http://.../TestApp/Service1.asmx, the generated page and test page appear fine. ...
0
9846
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
9683
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
10883
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10579
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...
1
10633
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7007
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();...
0
5852
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4050
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3126
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.