Hello,
I'm calling a VB.NET web service, also from VB.NET, and I get the error
" Object reference not set to an instance of an object" on the
following line in Reference.vb, when it tries to make the call:
Dim results() As Object = Me.Invoke("Phys_Post", New Object()
{SessionID, a, b, c, d, CountList})
I can call other web services I've written just fine. This one is more
complex in that it has an arraylist of structures as a parameter. In
the past I've found that I need to instantiate this as an empty array
Dim counts As localhost.Physicalcountlist()
counts = New localhost.Physicalcountlist() {}
and not just declare its type. But I still get the error. The other
parameters are just integers and strings, no arrays. I understand what
the error is saying, but I can't figure out exactly what it's referring
to, or why it's happening.
Any suggestions?
Thanks,
DaveO. 1 2486
"DaveO." <da**********@yahoo.com> schrieb Hello,
I'm calling a VB.NET web service, also from VB.NET, and I get the error " Object reference not set to an instance of an object" on the following line in Reference.vb, when it tries to make the call:
Dim results() As Object = Me.Invoke("Phys_Post", New Object() {SessionID, a, b, c, d, CountList})
I can call other web services I've written just fine. This one is more complex in that it has an arraylist of structures as a parameter. In the past I've found that I need to instantiate this as an empty array
Dim counts As localhost.Physicalcountlist() counts = New localhost.Physicalcountlist() {}
and not just declare its type. But I still get the error. The other parameters are just integers and strings, no arrays. I understand what the error is saying, but I can't figure out exactly what it's referring to, or why it's happening.
Any suggestions?
Maybe you don't get an answer because other people also, like me, didn't
find an Invoke method taking a string as the first parameter. It's also not
clear what "Me" is. A WindowsForm? In that case, the first arg must be a
delegate.
This is only a hint. I probably won't be able to help you if it's a web
service problem.
Armin This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Florian Loitsch |
last post by:
I'm currently writing a JS->Scheme compiler (which, using Bigloo,
automatically yields a JS->C, JS->JVM, JS->.NET compiler), and have a
question concerning the function-parameters:
According to...
|
by: Steve Lutz |
last post by:
Hi All,
I have a Windows Service that runs well. The service hosts a remote object.
The purpose of the object is so that I can "peak" into the service to see
what it's doing. I wrote a small...
|
by: Karel Vandenhove |
last post by:
Hi,
I get an error "cannot apply indexing with to an expression of type
object" when I try to compile the code below.
SSLScannerManager is a COM component. (Used to access fingerprint...
|
by: Lionel |
last post by:
Hello all,
two quick questions:
One: What is the difference between adding a reference to something in my C#
project so I can use it (for example, adding a reference to
"Microsft.DirectX" when...
|
by: Jens Øster |
last post by:
Hi
I am writing a ASP.NET web application that must sent some e-mails.
I get the exception “Could not access 'CDO.Message' object” when I call SmtpMail.Send. This only happens when I send...
|
by: Christian Hvid |
last post by:
What is the easiest way to get the "row object" or "item object" when a
datagrid is clicked?
I have web form with a datagrid. And I have an array of something called
BlogEntry that I bind to the...
|
by: DaveW |
last post by:
Can anyone help?
We have a site written in ASP.NET that uses verisigns payflow pro object.
About once a week (its been getting more frequent) the page that uses the
object starts timing out and...
|
by: =?Utf-8?B?QmFkaXM=?= |
last post by:
I'm doing a server side automation(I know it's bad but..) and its working
fine locally and when accessing it from a remote machine using web browser is
was giving me this error"Retrieving the COM...
|
by: =?Utf-8?B?QmFkaXM=?= |
last post by:
I'm doing a server side automation(I know it's bad but..) and its working
fine locally and when accessing it from a remote machine using web browser is
was giving me this error"Retrieving the COM...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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,...
|
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...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |