473,587 Members | 2,227 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Web Exception:
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 1446
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.Web Exception:
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
1208
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, Roby Eisenbraun Martins
6
1736
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? I can only get the disassembly window to show the original C# source and the native Intel assembly code. Thanks!
3
1061
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 this: int i = 1, j =1 ; for ( MyClass::ResultType::const_iterator ResultIt = ShowAll.getResults().begin(); ResultIt != ShowAll.getResults().end();...
2
1631
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 added the following: try { Signature.Text = Request.Cookies.Value; } catch
5
3618
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 New System.Diagnostics.Process 'p.Start(MDEPDirStr & "macrun.exe", sPPTOut) p.Start("C:\WINDOWS\SYSTEM32\CALC.EXE")...
4
1843
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
875
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 '/f86f32b3_a8cf_4e9a_9c7d_8438ccb97ea8/+pd9c7c61+uykillwuuyrnlg_10.rem' has been disconnected or does not exist at the server. I have searched numerous sites for this...
9
1190
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 web server. You do not have permission to debug the application.the URL for this project it in the Internet zone. please..please help me... thank...
3
2403
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 on this machine with breakpoints and all.
3
3577
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
8339
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...
0
8220
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...
0
6619
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5712
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...
0
5392
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...
0
3840
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3872
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2347
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
0
1185
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...

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.