Select to view content in your preferred language

Registering .dll's made with c# in ArcMap

2551
5
04-29-2012 11:43 PM
LazarKovacevic
Emerging Contributor
Hi,

I have a problem if i wont to register my dll in other versions than ArcGIS 9.2. In other vesions i got error like: Could not load file or assembly 'ESRI.ArcGIS.ADF.Local' Version=... etc.

Can someone help me or explane what can be a problem with this and how to solve this?
0 Kudos
5 Replies
NeilClemmons
Honored Contributor
Which versions are you talking about?  ESRI's position is that you recompile your application for each version you want to support and my experience is that this is the best way to do it.  Backwards compatibility is not supported, so you can't deploy your application to computers with an earlier version of the software (including service packs) unless you recompile against that version.  You may be able to deploy to computers with a newer version, but again, recompiling is recommended.  You cannot deploy an application compiled against 9.x to a computer with 10.x installed.  You will have to recompile as well as follow ESRI's instructions on how to upgrade your application from 9.x to 10.
0 Kudos
LazarKovacevic
Emerging Contributor
What to do step by step if i want to register .dll file ( made in c# and work with ArcGIS9.2) in ArcGIS10?
0 Kudos
ThaiTruong
Deactivated User
You can try the steps listed on here:
http://support.esri.com/en/knowledgebase/techarticles/detail/37639

1. Use ESRIRegAsm.exe to register their components
2. The use Categories.exe to double check to see your dll added to a right category.  Otherwise, find the category you want to add your dll to, highlight that category, browse to your dll and add it as a new object.

Like Neil's suggestion, you should recompile your code for ArcGIS 10.
0 Kudos
LazarKovacevic
Emerging Contributor
Il try. Thanks to both of you!
0 Kudos
LazarKovacevic
Emerging Contributor
Hello!
I have visual c# 2005 express edition, ArcGIS 9.2 and .dll made in c# which works in 9.2, but i want to make it work in 9.0 or 10.0. Is it possible to do in both cases (in both application) or only in one of them, or maybe its not possible at all? How can i recompile my dll so it can work in other versions of ArcGIS. Please, can someone explane....
Thank you
0 Kudos