Re: using a C# class library in both COM and .NET code?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Jason,

What you are doing is two completely different things. When you
registered through COM (which you did incorrect, btw, you need to call
regsvcs to register assemblies for COM+, I believe), it created a TLB and
then registered that. .NET uses a completely different mechanism to find
assemblies.

Chances are your assembly is in the GAC as a result of the COM
registration, so I wouldn't worry. If it isn't, then place a copy of the
..NET assembly in the bin subdirectory of your ASP.NET application, and it
will find it just fine.


--
- Nicholas Paldino [.NET/C# MVP]
- mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx

"jason" <iaesun@xxxxxxxxx> wrote in message
news:1117643291.039107.40610@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> huh! manually browsing for the .DLL did the trick. how will this be
> resolved during runtime though, i wonder?
>
> thanks though. i can at least start coding with this help
>


.



Relevant Pages

  • Re: Non-strong named interop libraries Part 2
    ... The SMTP server there behaves as before, no log file ... > should NOT use regsvcs.exe which is meant to register COM+ classes in the ... > referenced assemblies Interop.dll and Wrapper.dll to be strong named too. ... >> created as in the MSDN article, I can clearly see that EventInterop.dll ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Deployment COM Interop question
    ... I'm not very familiar with InstallShield... ... them to see if they support registering .NET Assemblies for COM Interop. ... On the development machine, the>>>'register for com interop' setting when set to true, does the trick. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: ComVisible true
    ... Execute regasm ... you try to register the class that failed using regasm? ... Set the "Register for COM Interop ... assemblies and types visible; they are visible to COM by default. ...
    (microsoft.public.dotnet.framework.interop)
  • RE: Calling VB.Net classes from VB6
    ... when I register a dll ... NOT put it on the list of .Net assemblies available for reference. ... ComClassAttribute to simply the process of exposing COM components from ...
    (microsoft.public.dotnet.languages.vb)
  • Re: .NET COM interop installation
    ... Orca sounds like a very useful ... After following their instructions my setup worked. ... >> application involves two assemblies that need to be registered as COM ... I am setting the Register ...
    (microsoft.public.dotnet.framework.setup)