473,398 Members | 2,403 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Desktop client and web services - Object reference not set to an instance of an object

Hello,

I have a desktop client application which calls web services. The
application works perfectly. But if I leave application intact about 30
minutes, and after a call a web method an exception is thrown which said:
"Object reference not set to an instance of an object".

Does anyone get this error?

Thanks,

Ruslan
Nov 21 '05 #1
3 4892
Ruslan,

Interesting, are you instancing the object every time new or do you have it
placed somewhere global and instanced it only at the start of the program?

Cor

"Ruslan" <ru*********@hotmail.com>
Hello,

I have a desktop client application which calls web services. The
application works perfectly. But if I leave application intact about 30
minutes, and after a call a web method an exception is thrown which said:
"Object reference not set to an instance of an object".

Does anyone get this error?

Thanks,

Ruslan

Nov 21 '05 #2
Every time the object is instanced. I have a lot of web methods, more than
100. After about 30 minutes of leaving application intact no one works. The
interesting think is that, this exception appears not at the all computers.
At some computer appear at others not. I checked the IIS, all the options
are the same.


"Cor Ligthert" <no************@planet.nl> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
Ruslan,

Interesting, are you instancing the object every time new or do you have it placed somewhere global and instanced it only at the start of the program?

Cor

"Ruslan" <ru*********@hotmail.com>
Hello,

I have a desktop client application which calls web services. The
application works perfectly. But if I leave application intact about 30
minutes, and after a call a web method an exception is thrown which said: "Object reference not set to an instance of an object".

Does anyone get this error?

Thanks,

Ruslan


Nov 21 '05 #3
Is it possible that the particular client has different proxy settings than
other clients? If so, the proxy server may be dropping the connection after
the time expires. I haven't run into this exactly, but my guess is that you
can reset the proxy connection by creating a new WebProxy object and use the
following code:

WebProxy proxyObject = new WebProxy("http://proxyserver:80/",true);
GlobalProxySelection.Select = proxyObject;

This should set the new proxy object to be used for all HTTPRequest calls.

I do not know for certain if this will work, so post back if it does... it
would be interesting to know.

Hope this helps,
--- Nick

"Ruslan" <ru*********@hotmail.com> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
Every time the object is instanced. I have a lot of web methods, more than
100. After about 30 minutes of leaving application intact no one works. The interesting think is that, this exception appears not at the all computers. At some computer appear at others not. I checked the IIS, all the options
are the same.


"Cor Ligthert" <no************@planet.nl> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
Ruslan,

Interesting, are you instancing the object every time new or do you have

it
placed somewhere global and instanced it only at the start of the program?

Cor

"Ruslan" <ru*********@hotmail.com>
Hello,

I have a desktop client application which calls web services. The
application works perfectly. But if I leave application intact about 30 minutes, and after a call a web method an exception is thrown which

said: "Object reference not set to an instance of an object".

Does anyone get this error?

Thanks,

Ruslan



Nov 21 '05 #4

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

Similar topics

3
by: Ruslan | last post by:
Hello, I have a desktop client application which calls web services. The application works perfectly. But if I leave application intact about 30 minutes, and after a call a web method an...
6
by: Ken Allen | last post by:
I am relatively new to .Net and C#, but I hav ebeen programing in other languages and done some COM work for a number of years. I am attempting to understand how to map an older program...
2
by: Chakkaradeep | last post by:
hi all, as it was discussed earlier in this forum titled,"Execution of Another Application in Services", i got the answer that Services are not meant for executing another applications, but...
1
by: JTrigger | last post by:
I need to call a .Net web service that takes an array or object as a parameter from a PERL client. I have been trying to use the PERL SOAP::Lite package to do this without success. I can call one...
0
by: Peter Conrey | last post by:
I have a perl web service (using SOAP::Lite) with a method called "Detail" that returns a strucure (hash reference to be exact). It works fine when consumed by a Perl client, but when I try to...
0
by: Daniel Thune, MCSE | last post by:
I am having a problem with formatting a SOAP Header in a .Net client. The client calls a Java Axis 1.1 based web service. In order to authenticate the caller, the web service call is intercepted by...
7
by: Jamie Phillips | last post by:
I'm sure this topic has been "around the block" a few times, but I have not been able to find ANY solutin that fits this particular problem. I have written a Java Axis web service that has a method...
1
by: Vaibhav Modak | last post by:
Hi All, I have a Web Service written in Java (Web Logic) and I am trying to call it in my ASP. NET client. I am facing a problem while getting the data from the Web Service Method. My Web...
4
by: John | last post by:
I have WSDL file with <wsdl:fault> element. When I use Websphere WSAD to generate Java proxy classes from WSDL, I am able to see the custom exception classes that correspond to the <wsdl:fault>...
0
by: vpal61 | last post by:
Hello, I have an Excel/VBA web service client with SOAP Toolkit, consuming Apache Tomcat webservice, which is working fine. Now I am trying to migrate to .NET, and build client in VS2005 with...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
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...
0
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,...
0
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...

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.