Solved

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

Posted on 2011-09-27
7
328 Views
Last Modified: 2012-08-14
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
0
Comment
Question by:IT-VAS
  • 4
  • 2
7 Comments
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 36709865
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
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 36709870
0
 

Author Comment

by:IT-VAS
ID: 36709936
Hi,

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

/Johan
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 69

Expert Comment

by:Éric Moreau
ID: 36710111
it should be running
0
 

Author Comment

by:IT-VAS
ID: 36717572
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
 
LVL 69

Assisted Solution

by:Éric Moreau
Éric Moreau earned 250 total points
ID: 36717659
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 250 total points
ID: 36891504
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now