473,746 Members | 2,215 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Getting System.ObjectDi sposedException from a web service call

Hello all,
Environment - Winforms app calling into a webservice

Exception returned - "A first chance exception of
type 'System.ObjectD isposedExceptio n' occurred in
system.dll"
Additional information: Cannot access a disposed object
named "System.Net.Soc kets.NetworkStr eam".

We are making a webmethod call that gets back a simple ID
[integer].

The generated proxy -
-------------------
[System.Web.Serv ices.Protocols. SoapDocumentMet hodAttribute
("http://tempuri.org/GenerateEntityI D",
RequestNamespac e="http://tempuri.org/",
ResponseNamespa ce="http://tempuri.org/",
Use=System.Web. Services.Descri ption.SoapBindi ngUse.Literal,

ParameterStyle= System.Web.Serv ices.Protocols. SoapParameterS
tyle.Wrapped)]
public void GenerateEntityI D(string IdentityType,
int IdentityCount, ref int IdentityValue) {
object[] results = this.Invoke
("GenerateEntit yID", new object[] {
IdentityType,
IdentityCount,
IdentityValue}) ;
IdentityValue = ((int)(results[0]));
}
Consumer Code -
-----------------

LHWebService.Re gistration registration = new
LHWebService.Re gistration();
registration.Pr eAuthenticate = true;
registration.Cr edentials =
CredentialCache .DefaultCredent ials;
registration.Ge nerateEntityID
(tableName,numb er,ref entityID);

Would appreciate any help to solve this problem

Regards
Naveen
Nov 21 '05 #1
0 2596

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

Similar topics

0
1108
by: OldMacDonald | last post by:
I have a Web Service which I call ASynchronously. The problem its not getting kicked off. This is how I am calling it over HTTP and after calling the webservice I have a redirect to another page. I don't know if that is allowed. Here is how I call it on a click of a button. COASTWebService.DeployService proxy = new COASTWebService.DeployService(); IAsyncResult result;
2
1613
by: KJAbbott | last post by:
I have developed an application in VS 2005 for the Compact Framework. This application makes asynchronous web service calls on a timer. If the application is closed at a random time it will throw an unhandled ObjectDisposedException. The exception comes up in the debugger with no line information. I think this is an uncatchable exception. The only thing I can find on the web about this is from CF 1 before the release of service pack 3...
3
2506
by: Grant Schenck | last post by:
Hello, I have a Windows Service developed in C# .NET. I'm making it a remote server and I can, via an IPC Channel, expose methods and call them from a client. However, I now want my remoted object to be able to invoke a method on my server object and given that the object is built in a C# Class DLL shared between the client and server I'm not sure how to get access to the server object from the remoted object. So, what techniques...
7
4001
by: Brian | last post by:
hello Gentlemen, been trying to get a shell program working where I have a Windows service that also has a Notification icon in the system tray..... I got this idea from microsofts Visual Basic .Net cookbook, but cannot seem to get it to work. Also I am using the Visual Studio 2005 not 2003 as original book was I believe created for. and I added an icon resource into the project also. You can add your
0
1035
by: *shame-faced* via DotNetMonster.com | last post by:
dear all, this is a slighly ridiculous thing to have done to my own code, but i've managed it nonetheless - i call a form with a datagrid, to display search results. everything was working fine. i generally do the form closing events actions in the end, so just now, i tried a "DatagridResults.dispose" along with a couple of other .disposes thinking i was being tidy and not using up extra resources. then i realised that my declarations...
3
13413
by: shad3jd | last post by:
Hi everyone, first post here AND new to VB.NET .. So please excuse any goofs that follow! I have written a simple console application that extracts data from multiple XML files and inserts the data into a table which resides on our AS/400. All of the code appears to be working correctly and all the data which I expect from the XML files does end up in the table on the 400 ... But when the project is finishing/closing, I get this error thrown...
33
11862
by: JamesB | last post by:
I am writing a service that monitors when a particular app is started. Works, but I need to get the user who is currently logged in, and of course Environment.UserName returns the service logon (NT_AUTHORITY\SYSTEM). I understand that when the service starts, no user may be logged in, but that's ok, as the app I am monitoring can only be run by a logged in user. Do I need to use WMI to get the user context of Explorer.exe or is there a...
2
3941
by: Bernard Borsu | last post by:
Hi ! My website breakdown at least 20 times per day with a System.ObjectDisposedException. The only information available are those given by the httpmodule treating the unhandledexception causing breakdown. Here are these information : Type de l'événement : Erreur Source de l'événement : ASP.NET 2.0.50727.0
5
4977
by: Brian | last post by:
Hello all. I have a simple application that I was using to test and understand the System.Timers.Timer and noticed that when I stop the application, on occasion, it throughs the following exception. An exception of type 'System.ObjectDisposedException' occurred in System.Windows.Forms.dll but was not handled in user code Additional information: Cannot access a disposed object.
0
8970
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
8795
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
9486
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
9346
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
9279
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
8219
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
6763
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
4573
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4827
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.