PC Review


Reply
Thread Tools Rate Thread

C# windows app calling serviced component (COM+)

 
 
=?Utf-8?B?TEY=?=
Guest
Posts: n/a
 
      16th Feb 2005
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?
 
Reply With Quote
 
 
 
 
Nicholas Paldino [.NET/C# MVP]
Guest
Posts: n/a
 
      16th Feb 2005
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 Removed)

"LF" <(E-Mail Removed)> wrote in message
news:9FD656C1-8F26-4EC0-BE0B-(E-Mail Removed)...
> 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?



 
Reply With Quote
 
=?Utf-8?B?TEY=?=
Guest
Posts: n/a
 
      18th Feb 2005
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 [.NET/C# MVP]" wrote:

> 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 Removed)
>
> "LF" <(E-Mail Removed)> wrote in message
> news:9FD656C1-8F26-4EC0-BE0B-(E-Mail Removed)...
> > 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?

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
serviced component question Robert Jordan Microsoft ADO .NET 1 29th Sep 2005 11:06 AM
C# COM+ serviced component =?Utf-8?B?bXN1aw==?= Microsoft C# .NET 3 11th Jan 2005 03:59 PM
Serviced Component and ASP.NET Ansari Microsoft ASP .NET 2 20th Oct 2004 06:30 AM
Access is denied when calling a remote serviced component (framework 1.1->1.0 issue) Stan Microsoft ASP .NET 9 1st Oct 2004 01:55 AM
Access is denied when calling a remote serviced component (framework 1.1->1.0 issue) Stan Microsoft Dot NET 5 24th Sep 2004 10:18 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:36 PM.