473,396 Members | 1,827 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,396 software developers and data experts.

Activator.GetObject() does not work when called via COM

Hi,

I have a Windows Service written in C# that gets an object via
Remoting using the Activator.GetObject() and then calls a method on it.
When called via .NET apps, everything works great.

I made a .NET Interop wrapper that executes the same method, but when
I call the method via VB6, I get the following error:

"Trying to create a proxy to an unbound type."

This doesn't make sense to me, my base class is derived from
MarshalByRefObject, is there a COM limitation?

Mark.

Oct 25 '06 #1
1 3678
There you go. Hope this can help you. VB.NET and C# should act the same:
http://msdn.microsoft.com/library/de...vbbestprac.asp

I am going to play with it too.
Good luck.
chanmm

<mk*******@gmail.comwrote in message
news:11**********************@k70g2000cwa.googlegr oups.com...
Hi,

I have a Windows Service written in C# that gets an object via
Remoting using the Activator.GetObject() and then calls a method on it.
When called via .NET apps, everything works great.

I made a .NET Interop wrapper that executes the same method, but when
I call the method via VB6, I get the following error:

"Trying to create a proxy to an unbound type."

This doesn't make sense to me, my base class is derived from
MarshalByRefObject, is there a COM limitation?

Mark.

Oct 26 '06 #2

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

Similar topics

2
by: CJM | last post by:
I'm building an ASP app that uses Windows Authentication (IWA). I have an authentication routine that assesses if & how the user can use the application (see code snippet below). Users of a...
0
by: rlum | last post by:
I have a remoting app that calls a windows service using the Activator.GetObject(type, url). works great with studio 2002 and framework 1.0. However I upgraded to 2003 and 1.1. Now it dosen't...
3
by: Otie | last post by:
I found the following under the GetObject help notes and in the example for GetObject: "This example uses the GetObject function to get a reference to a specific Microsoft Excel worksheet...
2
by: Baskar RajaSekharan | last post by:
Hi I have one doubt in C#. I created one component called CustomTesting in VC7. The DLL contains Two Method called Execute and SetOCxInterface. I want to Load the Dll from my Sample...
3
by: System.Reflection Activator | last post by:
************************************** //Load the Assembly Assembly a = Assembly.LoadFrom(sAssembly); //Get Types so we can Identify the Interface. Type mytypes = a.GetTypes(); BindingFlags...
0
by: MichaelSL | last post by:
When I build an executable which uses System.Activator.CreateInstance and execute it on my PC, which has Microsoft Visual Studio installed, the CreateInstance works just fine and the class...
7
by: Ian Frawley | last post by:
Hi I have used the Activator class a number of times in my Windows apps and Windows Services and was thinking of using it again in one of my web services that I have been developing. I have been...
5
by: newscorrespondent | last post by:
This method does not fail if the site is not running! Is there a way to check the proxy for failure? Thanks Tom
0
by: Jules Winfield | last post by:
I have a singleton object that's accessed via remoting by way of Activator.GetObject(): SomeObject someObj=(SomeObject)Activator.GetObject(typeof(SomeObject),someUrl); My question is: Is the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
0
BarryA
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...
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
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...
0
tracyyun
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...

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.