473,386 Members | 1,943 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.

C# windows app calling serviced component (COM+)

LF
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?
Nov 16 '05 #1
2 1750
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]
- mv*@spam.guard.caspershouse.com

"LF" <LF@discussions.microsoft.com> wrote in message
news:9F**********************************@microsof t.com...
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?

Nov 16 '05 #2
LF
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]
- mv*@spam.guard.caspershouse.com

"LF" <LF@discussions.microsoft.com> wrote in message
news:9F**********************************@microsof t.com...
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?


Nov 16 '05 #3

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

Similar topics

6
by: william | last post by:
Could anyone tell me how to debug a Serviced Component (COM+) in .NET? I tried to attach the debugger to the host process, but failed, got error "unable to attach the process. There is no managed...
9
by: Stan | last post by:
Here is my scenario: Web server ------------ Framework 1.1 Application proxy for the serviced component Component server ------------------- Framework 1.0
2
by: Ansari | last post by:
hi all, I want to use serviced component in ASP.NET any walkthrough or link to a resource. I have tried a lot but serviced component could be initialized in ASP.NET page. However I can...
0
by: Abid Ali | last post by:
hi all, i have developed a serviced component which being successfully accessed in windows application. but when I access this component through Web Services it fails at the time of...
0
by: Mihiri | last post by:
Hi, I have created sample .Net Serviced Component and registered it with com+ services as a server application. (windows 2000). In my client application(vb.net) , Com+ objects are disposed...
0
by: Mark Mims | last post by:
I am having a problem with a .NET serviced component running in MTS trying to call a web service on a remote machine on our internal network. The serviced component is using a domain account for...
0
by: =?Utf-8?B?QkY=?= | last post by:
I am trying to work on Serviced Component in .NET 2.0 environment. I don't see much information about serviced component in .NET 2.0 environment. I worked on serviced component 2 years ago with...
2
by: =?Utf-8?B?QkY=?= | last post by:
I am currently working on moving our business objects into COM+ serviced components. But in the process, there are too many changes such ComVisible and serviced component does not support...
0
by: bharathreddy | last post by:
In .Net COM+ components are referred to as serviced components, Namespace: System.EnterpriseServices; Advantage of Serviced Components: object pooling, database connection pooling,
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
1
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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.