472,353 Members | 1,939 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,353 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 1364
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...
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...
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...
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...
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...
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...
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...
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...
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...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python...

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.