473,403 Members | 2,183 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,403 software developers and data experts.

Web serice works when I am debugging, but does not when I am not.

Hi,
I have a C#.net Web application which calls a web service
(http://eutils.ncbi.nlm.nih.gov/entre...p/eutils.wsdl). It has run
just fine for months. Recently I started getting "System.Net.WebException:
The underlying connection was closed" errors. I started the application up in
debugging mode and it ran fine. After fiddling with things for awhile I now
find that it works while I am running in debug mode, but does not when I am
not in debug mode. I don't know if it matters, but I am not calling the web
service asynchronously.

Any idea what is going on? I am going to try it asynchronously and see if
that works, but this seems really weird to me either way!
Thanks,
Ethan
Jul 26 '06 #1
1 1442
Hi again,
I have some more information about this, but I still don't have a
solution. Please take a look and see if it triggers any thoughts....

The the project in which I have this web service is a direct descendant of
another project. I made a copy of the project and then went in and manually
changed the Namespace designation in each file.

I looked at the web service in the object browser and it is still listed as
being under the OLD namespace! I tried dropping the web service and then
readding it. No help. I tried dropping it and then readding it under a new
name. No help. I looked at the "reference.cs" file under the web service and
it lists the old namespace. I manually changed the namespace in the
reference.cs file and the web service shows up under the correct namespace in
the object browser, but still only works when I am running in debug mode.

I think that debug mode either has appropriate permissions to use the web
service under that namespace somehow or it resolves the namespaces in a way
that works. I don't know which. While I could get away with deleting the old
namespace I don't want to and I have other projects, which I can't remove,
which use the same service and are having similar issues.

I am running .Net 1.1.

Thanks for any thoughts!
Ethan

"Ethan Strauss" wrote:
Hi,
I have a C#.net Web application which calls a web service
(http://eutils.ncbi.nlm.nih.gov/entre...p/eutils.wsdl). It has run
just fine for months. Recently I started getting "System.Net.WebException:
The underlying connection was closed" errors. I started the application up in
debugging mode and it ran fine. After fiddling with things for awhile I now
find that it works while I am running in debug mode, but does not when I am
not in debug mode. I don't know if it matters, but I am not calling the web
service asynchronously.

Any idea what is going on? I am going to try it asynchronously and see if
that works, but this seems really weird to me either way!
Thanks,
Ethan
Jul 26 '06 #2

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

Similar topics

1
by: Roby Eisenbraun Martins | last post by:
Hi, In VB6 there is an option to stop the code (when debugging) when an error occurs even if there is an error treatment in the code (on error goto). Where is this option in .NET? Thank you,...
6
by: Sheila Jones | last post by:
Hi, I posted this question in the visual studio newsgroup, but didn't get a reply. I'm reposting it here, hoping it's not too off-topic: When debugging a C# program, how do I see the IL code?...
3
by: Alfonzo Morra | last post by:
Hi, I recently started using VC7.1 (upgraded from VC6). I've noticed that when stepping through code, some of the values of my variables make no sese at all. For instance, I had some code like...
2
by: Johnnie Norsworthy | last post by:
I am trying to debug a C# ASP.NET application in VS.NET. I have added a text box to my form for storing a user signature which I am trying to persist using cookies. In my Page_Load() I have...
5
by: snicks | last post by:
I'm trying to exec a program external to my ASP.NET app using the following code. The external app is a VB.NET application. Dim sPPTOut As String sPPTOut = MDEPDirStr + sID + ".ppt" Dim p As...
4
by: Torben Laursen | last post by:
Hi Is there a way to prevent the debugger from stepping into the stl code when I am debugging my code? Thanks Torben
0
by: Socorro | last post by:
I'm getting a strange recurring error when debugging a website project. It happens frequently and takes a long time (even hours sometimes) to recover and work around. Object...
9
by: ayuni | last post by:
hye.. plz help me.. im now develop a project running on .net n microsoft SQL server.. during debugging, this error was occur:- error while trying to run project.Unable to start debugging on the...
3
by: Pixel.to.life | last post by:
All, A question on JIT debugging with VS2005. I have a managed app that builds great on one machine (Vista Home basic, VS2005, JIT enabled for managed/unmanaged code). I can also debug it...
3
by: =?Utf-8?B?cmF1bGF2aQ==?= | last post by:
Vista sp1 C# Hi: after I opened a vs2005 IDE... my breakpoints when debugging in vs2008 dont work any more, any ideas? the test finished but It does not stop. Thanks
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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
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
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...

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.