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



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

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

missing a using directive or an assembly reference?)






Nicholas Paldino [.NET/C# MVP]


You should be using the /reference (or /r for short) switch to specify
the references that your files need for the compilation to succeed.

You could use VS.NET and it would be much, much easier, btw, no need for
command line compiling. =)

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