ArcMap 9.3.1 can not see/load .tlb file

2072
1
04-06-2011 07:45 AM
KevinSurbella
New Contributor
Hello,

I've created a Visual Studio 08 Active X - MXCommands dll for a VBA button within ArcMap 9.3.1. I'm able to load and use the .tlb on my computer; however when I try it on my test computer the .tlb file is not visible. The MXCommand is not listed in the Component Category Manager under ESRI MXCommands on the test computer. I used RegAsm (e.g. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe C:\Temp\Mydll.dll) to try and register it on the test computer, but this did not help. Both computers are running MS XP professional. Any suggestions of what I could do or try next would be greatly appreciated.

I also tried this command to register it:

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe C:\Temp\Mydll.dll/tlb: Mytlb.tlb/codebase

And received a RegAsm Error - RA0000 The given path's format is not supported.

Thank you!
0 Kudos
1 Reply
KevinSurbella
New Contributor
Solution:

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe C:\Temp\Mydll.dll /tlb:Mytlb.tlb /codebase

Needed a space between ".ddl" And "/tlb:" and needed a space between ".tlb" And "/code"
0 Kudos