Select to view content in your preferred language

VB Express Error

2129
3
01-06-2012 04:47 AM
KeaganAllan
Occasional Contributor
Hi,

I am busy completing a tool created in VB Express 2008 using VB.Net.
Everything was working great, until I started playing around with adding in toolbars.

I now get this error:

Error 2 Cannot register assembly "C:\Documents and Settings\username\My Documents\Visual Studio 2008\Pixley_EMF_V2\CWDM_EMF_V1\CWDM_EMF_V1\bin\Debug\CWDM_EMF_V1.dll". Could not load file or assembly 'ESRI.ArcGIS.Desktop.AddIns, Version=10.0.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86' or one of its dependencies. The system cannot find the file specified. CWDM_EMF_V1

When I try to run the tool, a meesage askes me if I want to run using a previous version (the last working version).
It runs fine, but now I cannot add in any new features.

Is there a way to:
a) Get rid of this error?
b) Get the correct version loaded again?

Thanks, I just hope I dont have to start again.

Cheers,
K
0 Kudos
3 Replies
EricMcPhee
Regular Contributor
I had a similar issue and fixed it using this thread.

This can be found under the Project Menu -> "ProjectName" Properties...
then on the Compile Tab
Towards the bottom, make sure theat the "Register for COM interop" checkbox is unchecked, and try building it again.
0 Kudos
KeaganAllan
Occasional Contributor
Hi Eric,

Thank you for your swift response.
Looking in the "Compile" section of the project's properties I do not have an option for the "Register COM Interop".

I am using VB Express so maybe this explains why.
The options I have:

Build output path;
Compile Options - Option Explicit etc;
Warning configurations; and
Advanced Compile options - containing a few options regarding the development framework etc...but not COM Interop options.

Is there maybe another area where this can be altered?

If not, I will have to restart the project and I REALLY do not feel like doing that 1st thing on a Monday morning 🙂

Thanks again fro your help!
K
0 Kudos
KeaganAllan
Occasional Contributor
Ok after much hair pulling and swearing I found a solution.
I thought I would post it here, because the internet needs an answer.

Somewhere along the line my ESRI.ARCGIS.Desktop.AddIns reference was lost.
So, I re-added it by navigating to it's location on my C:\ and lone-behold my project now builds.

Whilst many solutions online state that the Com Interop options in the "Compile" section of the project usually fixes this issue, it seems VB Express does not have this.

I hope this helps other people who have had / are having this problem.
0 Kudos