By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,853 Members | 2,144 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,853 IT Pros & Developers. It's quick & easy.

Webservice error

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.