Select to view content in your preferred language

ViperPIN sample "Can't load type library from specified file"

3424
6
07-07-2011 12:12 PM
OlwynBruce
Deactivated User
Hi there,
I'm trying to check out the ViperPIN sample and am encountering some problems. I downloaded the VB.NET code, compiled it in VS Express 2008 and registered it using ESRIRegAsm.exe. Then I tried adding it to ArcMap 10 (Customize > Add from file...) and got a "can't load type library from specified file" error.

Any suggestions?
Olwyn
0 Kudos
6 Replies
by Anonymous User
Not applicable
Make sure you are adding the .tlb file when you use 'add from file'.
Set ESRIRegAsm.exe to run as administrator before you do this.
0 Kudos
OlwynBruce
Deactivated User
Hi Sean,
There is no .tlb file. How do I generate one using Visual Studio Express 2008?
Cheers,
Olwyn
0 Kudos
by Anonymous User
Not applicable
ok, try the original approach in a command window.
Navigate to the viperpin.dll folder and use:
"C:\Program Files\Common Files\ArcGIS\bin\esriregasm" viperpin.dll

esriregasm.exe must be set to run as administrator (properties->compatibility tab) if you are on a vista or windows 7 machine.
0 Kudos
by Anonymous User
Not applicable
You can also generate the .tlb file in VS2008 express by making sure that 'register for COM Interop' is checked in the build tab of the project properties within VS.
You may have to uncheck and recheck this option to ensure its checked as it looks like its in an intermediate state when you first see it.
0 Kudos
JOBruceYukon
New Contributor

Test response, please ignore

0 Kudos
JOBruceYukon
New Contributor

Second test, continue to ignore

0 Kudos