.NET COM Interoperability issues!!!!!!!!


H

honguin

Hi guys,

I am using a COM client that calls a DotNet object, where the DotNet
framework will create a COM callable wrapper (CCW). COM clients use
the CCW as a proxy for the managed object.

See http://www.c-sharpcorner.com/UploadFile/ajaiman/COMInteropP211092005011850AM/COMInteropP2.aspx

Now, when I create a DotNet Assembly to for usage as reference in the
Visual Basic 6 program, using the following command: -

C:\Projects\Gamma\Gamma-Provisioning\bin\Debug>csc /out:Gamma-
Provisioning.dll /t:library /keyfile:Gamma-Provisioning.snk
gammaProvisioning.cs

It generates a namespace error BELOW where it cannot find the
namespace 'gamma_provisioning', now I know that this is a web
reference used in the c# code, but how can you set this when building
the assembly, so the error below would be erradicated? Anyone know how
to solve this??

Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.42 for
Microsoft (R) Windows (R) 2005 Framework version 2.0.50727 Copyright
(C) Microsoft Corporation 2001-2005. All rights reserved.

gammaProvisioning.cs(11,26): error CS0234: The type or namespace name

'gamma_provisioning' does not exist in the namespace

'Gamma_Provisioning' (are you missing an assembly reference?)

gammaProvisioning.cs(19,9): error CS0246: The type or namespace name

'CliManagementServiceAdvancedService' could not be found (are
you

missing a using directive or an assembly reference?)

.....
.....
.....
.....

Cheers,

Hon
 
Ad

Advertisements

M

Mattias Sjögren

It generates a namespace error BELOW where it cannot find the
namespace 'gamma_provisioning', now I know that this is a web
reference used in the c# code, but how can you set this when building
the assembly, so the error below would be erradicated? Anyone know how
to solve this??

OK, so despite your subject the question really has nothing to do with
COM interop then.

If Visual Studio has generated the web service proxy files already for
you, it's simply a matter of including the source file in the
compilation.

If not, you can use Wsdl.exe to generate the proxy code.


Mattias
 

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