473,386 Members | 1,773 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,386 software developers and data experts.

Webservice error

hi,

I've got a webproject that calls a webservice 4 times to check information
in an CRM system. These checks are made in an asynchronous process. These
processes call an instance of the webservice class, there all the functions
of the webservice are grouped in functions.

the first three times, it works perfectely also in the production
environment, that is on a different domain/server. The fourth time, the
asyncronous process starts, makes an instance of the "webservice" class and
calls the function "ConfirmRegistration", but when it comes to the rule

dim sResult as string=oService.Confirm(arg1,arg2;arg3)

The compiler stops at the catch section of the try catch, saying that the
object reference is not set to an instance of an object.

The webservice works perfectely, as I've tested seperately. But in this case
the compiler doesn't even call the service, it jumps out of it due to this
error.

Does anyone have an idea regarding this?

Thanks,
Nov 23 '05 #1
2 2014
DWS
dim sResult as string=oService.Confirm(arg1,arg2;arg3)

A syncronous call? I suspect oService has not been initialized or maybe set
to nothing by some other process. set a breakpoint on your test machine and
insure its value before the call. Also check your arg123 have some values.

Good Luck
DWS
"Lumen" wrote:
hi,

I've got a webproject that calls a webservice 4 times to check information
in an CRM system. These checks are made in an asynchronous process. These
processes call an instance of the webservice class, there all the functions
of the webservice are grouped in functions.

the first three times, it works perfectely also in the production
environment, that is on a different domain/server. The fourth time, the
asyncronous process starts, makes an instance of the "webservice" class and
calls the function "ConfirmRegistration", but when it comes to the rule

dim sResult as string=oService.Confirm(arg1,arg2;arg3)

The compiler stops at the catch section of the try catch, saying that the
object reference is not set to an instance of an object.

The webservice works perfectely, as I've tested seperately. But in this case
the compiler doesn't even call the service, it jumps out of it due to this
error.

Does anyone have an idea regarding this?

Thanks,

Nov 23 '05 #2
I found it, very stupid off course...
I forgot to abort the tread when it finished executing, so when the service
was called the 4th time, the three others where finished but not closed. The
application pool generated an error of some sort. By ending the threads,
there wasn't a problem anymore.

Sorry for the stupid question, but thanks for the help.

dim sResult as string=oService.Confirm(arg1,arg2;arg3)

A syncronous call? I suspect oService has not been initialized or maybe set
to nothing by some other process. set a breakpoint on your test machine and
insure its value before the call. Also check your arg123 have some values.

Good Luck
DWS
"Lumen" wrote:
hi,

I've got a webproject that calls a webservice 4 times to check information
in an CRM system. These checks are made in an asynchronous process. These
processes call an instance of the webservice class, there all the functions
of the webservice are grouped in functions.

the first three times, it works perfectely also in the production
environment, that is on a different domain/server. The fourth time, the
asyncronous process starts, makes an instance of the "webservice" class and
calls the function "ConfirmRegistration", but when it comes to the rule

dim sResult as string=oService.Confirm(arg1,arg2;arg3)

The compiler stops at the catch section of the try catch, saying that the
object reference is not set to an instance of an object.

The webservice works perfectely, as I've tested seperately. But in this case
the compiler doesn't even call the service, it jumps out of it due to this
error.

Does anyone have an idea regarding this?

Thanks,

Nov 23 '05 #3

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

Similar topics

1
by: Nalaka | last post by:
Hi, I am testing with Visual studio 2005, web projects. Situation: I have one solution with two web projects, created as file system projects. (I am tesing using the built in server, not IIS)...
4
by: Tim Gallivan | last post by:
Hello group, I'm trying to develop a proof of concept webservice which asynchronously calls a function in a DLL. The function raises an event when it is finished, and works when used as part of...
7
by: stephan querengaesser | last post by:
hi ng, i try to invoke a webservice-method with an filter-object, that contains value types. if i donīt want to filter the return value of the method, i have to pass a new instance of the...
5
by: AliR | last post by:
Hi Everyone, I have a Visual C++ MFC program, and I am trying to use a webservice written in C#. When I add the webservice to my project using Add Web Reference the sproxy compiler complains...
0
by: =?Utf-8?B?TWFuaQ==?= | last post by:
Hi All, Problem in deploying my WebService developed using Asp.net WebServices 2005. I have designed simple WebService using Asp.net Webservices 2.0 , The webservice look this , using System;...
1
by: UT-BadBoy | last post by:
Hi, I've been receving this error "System.InvalidOperationException: The namespace, , is a duplicate." and have been unable to locate the exact cause of the exception. I've written a...
2
by: =?Utf-8?B?TGFycnlLdXBlcm1hbg==?= | last post by:
Our WebDev team seems to have found a problem that exposes a bug in .NET 2.0. This problem can be shown when trying to access a WebService using SSL and through a proxy server after using the...
10
by: Anton | last post by:
Hi, when accessing a secured 3rd party webservice i'm getting a 401 HTTP Statuscode (unauthorized). When entering the url in a browser and entering the username and password manually, the wsdl is...
7
by: Amirallia | last post by:
Hi, I consume my webservice with the IE browser and all is ok when I call it with one browser. But when I call it a the same time with two browsers, the IE page tells me that the apllication...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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...
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...

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.