C# windows app calling serviced component (COM+)

G

Guest

Hi,
I created a simple windows application to call a method on a serviced
component in COM+. But as soon as I call the method in my code, I get a
"Invalid pointer" - System.NullReferenceException.

When I create the exact replica in a Web app format the solution works fine.

Can anybody share some insight as to why am I getting this exception?
 
N

Nicholas Paldino [.NET/C# MVP]

LF,

Can you show some of the code you are using to create it? Is it managed
code on both sides (in which case you would have a reference to the actual
assembly, instead of to an exported proxy)? Are you using interfaces
instead of class definitions?

More information is needed. =)
 
G

Guest

Hi Nicholas,
Thanks for the response. I found the issue. One of my assemblies were trying
to read a file and couldn't find the path.
All sorted.

Thanks,



Nicholas Paldino said:
LF,

Can you show some of the code you are using to create it? Is it managed
code on both sides (in which case you would have a reference to the actual
assembly, instead of to an exported proxy)? Are you using interfaces
instead of class definitions?

More information is needed. =)

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

LF said:
Hi,
I created a simple windows application to call a method on a serviced
component in COM+. But as soon as I call the method in my code, I get a
"Invalid pointer" - System.NullReferenceException.

When I create the exact replica in a Web app format the solution works
fine.

Can anybody share some insight as to why am I getting this exception?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top