472,334 Members | 1,507 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,334 software developers and data experts.

Getting System.ObjectDisposedException from a web service call

Hello all,
Environment - Winforms app calling into a webservice

Exception returned - "A first chance exception of
type 'System.ObjectDisposedException' occurred in
Additional information: Cannot access a disposed object
named "System.Net.Sockets.NetworkStream".

We are making a webmethod call that gets back a simple ID

The generated proxy -
[System.Web.Services.Protocols.SoapDocumentMethodAt tribute
Use=System.Web.Services.Description.SoapBindingUse .Literal,

ParameterStyle=System.Web.Services.Protocols.SoapP arameterS
public void GenerateEntityID(string IdentityType,
int IdentityCount, ref int IdentityValue) {
object[] results = this.Invoke
("GenerateEntityID", new object[] {
IdentityValue = ((int)(results[0]));
Consumer Code -

LHWebService.Registration registration = new
registration.PreAuthenticate = true;
registration.Credentials =
(tableName,number,ref entityID);

Would appreciate any help to solve this problem

Nov 21 '05 #1
0 2510

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

Similar topics

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...
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...
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...
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...
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...
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...
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...
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...
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...
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
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...
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...
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...

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.