DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Thu, 23 Aug 2007 04:28:18 -0700,    posted on: microsoft.public.dotnet.languages.csharp        back       

Thread Index
  1    unknown
          2    Nicholas Paldino [.NET/C# MVP]


.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
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
Date:Thu, 23 Aug 2007 04:28:18 -0700   Author:  

Re: .NET COM Interoperability!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!   
Hon,

    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. =)


-- 
          - Nicholas Paldino [.NET/C# MVP]
          - mvp@spam.guard.caspershouse.com

 wrote in message 
news:1187868498.828816.318130@i38g2000prf.googlegroups.com...

> 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
> 
Date:Thu, 23 Aug 2007 10:36:35 -0400   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us