473,811 Members | 3,290 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 1454
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
1217
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
1742
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
1072
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(); ++ResultIt, i++ ) {
2
1636
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
3651
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") 'p.Start("C:\WINDOWS\SYSTEM32\macrun.exe", sPPTOut)
4
1861
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
886
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 error, and I see several references to remote objects, but I'm not sure they apply to me because I'm...
9
1197
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 you.
3
2426
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
3590
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
9605
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
10647
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
10384
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
10395
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
10130
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9204
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7667
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6887
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
5692
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.