Hi,
I have, in vain, tried to create a com object from a remote server.
Setup;
This is the code that fails.
Projekt.ClassName
_BOMsg = (SBO_BO_1_1.BO_MessageClass)Activator.CreateComIns tanceFrom
("E:\\SharpDevelop
Projects\\Woff\\bin\\Debug\\Interop.Projekt.dll"," Projekt.ClassName").Unwrap();
It compiles but then fails misserably when I try to run it, and this
is the error:
Woff.RsMarshallTest.CreateSBOMsg failed:
System.MissingMethodException : Constructor on type Projekt.ClassName
not found.
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr,
Binder binder, Object[] args, CultureInfo culture, Object[]
activationAttributes)
at System.Activator.CreateInstance(Type type, BindingFlags
bindingAttr, Binder binder, Object[] args, CultureInfo culture,
Object[] activationAttributes)
at System.Activator.CreateComInstanceFrom(String assemblyName,
String typeName, Byte[] hashValue, AssemblyHashAlgorithm
hashAlgorithm)
at System.Activator.CreateComInstanceFrom(String assemblyName,
String typeName)
at Handelsbanken.SPP.Woff.RsMarshall.TestSBOMsg() in
e:\SharpDevelop Projects\Woff\RsMarshall.cs:line 43
at Woff.RsMarshallTest.CreateSBOMsg() in e:\SharpDevelop
Projects\Woff\RsMarshallTest.cs:line 29
I have no constructor since it is a vb6 som component so what else?
Any help is appreciated.
Thanxs Greger 1 2633
Curt,
It looks like you are trying to call CreateComInstanceFrom on the
interop wrapper that is already created. You don't need to do this. If you
have an interop wrapper already created, you can just load that assembly,
and dynamically create the class from that (through a call to
CreateInstance).
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Curt" <go****@elgrego.org> wrote in message
news:a1**************************@posting.google.c om... Hi,
I have, in vain, tried to create a com object from a remote server. Setup;
This is the code that fails.
Projekt.ClassName _BOMsg = (SBO_BO_1_1.BO_MessageClass)Activator.CreateComIns tanceFrom ("E:\\SharpDevelop Projects\\Woff\\bin\\Debug\\Interop.Projekt.dll"," Projekt.ClassName").Unwrap();
It compiles but then fails misserably when I try to run it, and this is the error:
Woff.RsMarshallTest.CreateSBOMsg failed:
System.MissingMethodException : Constructor on type Projekt.ClassName not found. at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) at System.Activator.CreateComInstanceFrom(String assemblyName, String typeName, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm) at System.Activator.CreateComInstanceFrom(String assemblyName, String typeName) at Handelsbanken.SPP.Woff.RsMarshall.TestSBOMsg() in e:\SharpDevelop Projects\Woff\RsMarshall.cs:line 43 at Woff.RsMarshallTest.CreateSBOMsg() in e:\SharpDevelop Projects\Woff\RsMarshallTest.cs:line 29
I have no constructor since it is a vb6 som component so what else?
Any help is appreciated.
Thanxs Greger This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Céline |
last post by:
HI everybody,
I am trying to get somewhere with VisualStudio.net. The problem is
that my web server is not on my PC (for company security reason) on is
remote.
Everytime I try to create a...
|
by: Stan |
last post by:
My webserver calls a component on another server through DCOM, the component
goes to SQL, SQL raises the exception and here is what the client gets:
"Cannot find member name...
|
by: Dave McCracken |
last post by:
I am hosting .Net UserControls in HTML pages with Object Tags. These
UserControls are clients of remotable objects that run on the same machine.
The remote objects execute callbacks via sponsor...
|
by: Bryan |
last post by:
I have a multi-threaded C# console application that uses WMI
(System.Management namespace) to make RPC calls to several servers (600+ )
and returns ScheduledJobs. The section of my code that...
|
by: Ollie |
last post by:
okay sorry for cross posting but want to see if any one can explain the
solution to this problem for me:
I have a .Net ASP.Net app written in C# that use COM+ components to do some
business...
|
by: Jasleen |
last post by:
I have written one Widows Service in ATL, having a ATL component running.
Now it is very easy to create the VC client by calling CoCreateINstanceEx to
create the component running in the service...
|
by: Zanna |
last post by:
Hi all!
I hope someone can help me.
I have in my lan a PC with IIS installed and this works as web server.
On another PC I have VS.net 2003 installed.
I'd like to debug asp/aspx pages on...
|
by: Julia |
last post by:
Hi,
Can a Remote object be a WebService as well?
i want to able to connect to a remote object either using .NET remoting
and HTTP\SOAP
so I wonder if I can create a singleton(statefull)...
|
by: Jonathan Wareham |
last post by:
Hi,
I am new to .NET but did a lot with VB6/ActiveX. One thing I did with VB6
was to have some components (ActiveX EXEs) installed on a remote computer
and the main application would sit on...
|
by: =?Utf-8?B?TVNU?= |
last post by:
To demonstrate my problem, I have a very simple VB Windows application. It
has a text box that is used to display a counter, a button to reset the
counter, and a timer that increments the counter...
|
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: 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: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
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...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |