Use COM dll developed in VS2010.NET on a Windows2000 client

Hi,

I have developed a class library named TestProjCOM using the "Create a COM callable assembly in Visual basic.NET" on the following page.
http://support.microsoft.com/kb/817248

After building the solution I have these files in my /Release directory
TestProjCOM.dll
TestProjCOM.tlb
TestProjCOM.pdb
TestProjCOM.xml

Now I want to use the dll on a Windows 2000 machine. How do I go ahead and register the dll?

Br,
Johan
IT-VASAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
CodeCruiserConnect With a Mentor Commented:
0
 
Éric MoreauSenior .Net ConsultantCommented:
apps built with VS2010 targeting the .Net Framework 4.0 can't run on W2K. check http://msdn.microsoft.com/en-us/library/8z6watww(v=VS.100).aspx
0
 
Éric MoreauSenior .Net ConsultantCommented:
0
Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

 
IT-VASAuthor Commented:
Hi,

Will it be possible to create the Class library for .NET framework 2 and get it to work under W2K?

/Johan
0
 
Éric MoreauSenior .Net ConsultantCommented:
it should be running
0
 
IT-VASAuthor Commented:
Hi,

I have tried registering with regasm.exe in the command prompt. I can reference the .TLB file in Visual Basic 6,
but I get an error when I try to create the object. During regasm it says something about a strong name.
How can I get my .dll to be strong name?

Br,
Johan

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>Regasm C:\testprojCOM2\TestProjCOM
2.dll /tlb: C:\testprojCOM2\TestProjCOM2.tlb /codebase
Microsoft (R) .NET Framework Assembly Registration Utility 2.0.50727.3053
Copyright (C) Microsoft Corporation 1998-2004.  All rights reserved.

RegAsm : warning RA0000 : Registering an unsigned assembly with /codebase can ca
use your assembly to interfere with other applications that may be installed on
the same computer. The /codebase switch is intended to be used only with signed
assemblies. Please give your assembly a strong name and re-register it.
Types registered successfully
Assembly exported to 'C:\testprojCOM2\TestProjCOM2.tlb', and the type library wa
s registered successfully

I
0
All Courses

From novice to tech pro — start learning today.