The problem was that the mscoree.tlb file was not registered.  Would regasm
have done the right thing for the mscoree.tlb?

Paul Beaulieu

-----Original Message-----
From: Sam Gentile [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 11:45 AM
To: [EMAIL PROTECTED]
Subject: Re: [ADVANCED-DOTNET] tlbexp problems


Tlbexp does not register the type library with COM which is required for
the CCW to spin up. It just does the type lib export into a Interop
Assembly. As you've seen /tlb on the line generates the type lib as
well. You had to do a regtlib. I find the use of regasm to be better.
It's a superset. It genereates the IA, the TLB and registers the COM
stuff.

Sam Gentile
.NET Consultant
[EMAIL PROTECTED]
http://www.samgentile.com
http://radio.weblogs.com/0105852/


-----Original Message-----
From: Moderated discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED]] On Behalf Of Beaulieu, Paul
Sent: Monday, August 12, 2002 11:17 AM
To: [EMAIL PROTECTED]
Subject: Re: [ADVANCED-DOTNET] tlbexp problems

It seems we found the answer to this is that the tlb file was not
registered
on the offending machine.  Running regtlib on the tlb fixes the problem.

Thanks for all your help,

Paul Beaulieu

-----Original Message-----
From: Craig Lee [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 6:55 PM
To: [EMAIL PROTECTED]
Subject: Re: [ADVANCED-DOTNET] tlbexp problems


I played around with this for awhile and found that using regasm with
the /tlb switch worked much better in a Custom Build Step.

Craig Lee.

-----Original Message-----
From: Beaulieu, Paul [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 08, 2002 10:17 AM
To: [EMAIL PROTECTED]
Subject: [ADVANCED-DOTNET] tlbexp problems


The following is an error that is received when trying to export the
type library for a .NET assembly that we have built.

Performing Custom Build Step
Microsoft (R) .NET Framework Assembly to Type Library Converter
1.0.3705.0 Copyright (C) Microsoft Corporation 1998-2001. All rights
reserved. TlbExp error: Type library exporter can not load required
library MSCOREE.TLB. Project : error PRJ0019: A tool returned an error
code: "Performing Custom Build Step"

On the machine that has the error, OLEView.exe is able to open the
mscoree.tlb.  Furthermore, on the machines that work, tlbexp does not
seem dependent on the settings of PATH, LIB, or INCLUDE, or any other
.NET environment variable( When running from a command prompt window).
The same error that occurs above on the the offending machine also
occurs in a command prompt window.  The tlbexp tool does seem to use the
registry for some items.

Does anyone know what could be causing this error.

Thanks for your help.

Paul Beaulieu

You can read messages from the Advanced DOTNET archive, unsubscribe from
Advanced DOTNET, or subscribe to other DevelopMentor lists at
http://discuss.develop.com.

You can read messages from the Advanced DOTNET archive, unsubscribe from
Advanced DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the Advanced DOTNET archive, unsubscribe from
Advanced DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the Advanced DOTNET archive, unsubscribe from
Advanced DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced 
DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to