Error: ESRIRegAsm.exe Error: Registration Failed. Could not load file or assembly
【相关信息】
Article ID: 43712
Software:
ArcObjects SDK for the Microsoft .NET Framework 10.3
Platforms:
Windows Windows 7, Windows 8, Server 2012, Server 2008 R2, Windows 8.1, Server 2012 R2
【错误信息】
When attempting to register or unregister an ArcObjects assembly created with a previous version of ArcObjects with version 10.3, the following error is returned:
"Registration failed. Could not load file or assembly 'Esri.ArcGIS.ADF.Local, Version=10.2.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86' or one of its dependencies. The system cannot find the file specified."
For example, assume that a managed COM assembly, classlibraryfor102.dll, is being registeretd that was created with 10.2 and execute the following command line to register it with 10.3:
C:\Projects\ClassLibFor102\bin\Release> "C:\Program Files (x86)\Common Files\ArcGIS\bin\esriregasm.exe" classlibraryfor102.dll /p:Desktop
The following error message is displayed:
【错误原因】
The ESRIRegAsm.exe.config file distributed with 10.3 is wrong. It currently references 10.2.0.0 and not 10.3.0.0 for the assembly binding redirection elements.
Article ID: 43712
Software:
ArcObjects SDK for the Microsoft .NET Framework 10.3
Platforms:
Windows Windows 7, Windows 8, Server 2012, Server 2008 R2, Windows 8.1, Server 2012 R2
【错误信息】
When attempting to register or unregister an ArcObjects assembly created with a previous version of ArcObjects with version 10.3, the following error is returned:
"Registration failed. Could not load file or assembly 'Esri.ArcGIS.ADF.Local, Version=10.2.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86' or one of its dependencies. The system cannot find the file specified."
For example, assume that a managed COM assembly, classlibraryfor102.dll, is being registeretd that was created with 10.2 and execute the following command line to register it with 10.3:
C:\Projects\ClassLibFor102\bin\Release> "C:\Program Files (x86)\Common Files\ArcGIS\bin\esriregasm.exe" classlibraryfor102.dll /p:Desktop
The following error message is displayed:
【错误原因】
The ESRIRegAsm.exe.config file distributed with 10.3 is wrong. It currently references 10.2.0.0 and not 10.3.0.0 for the assembly binding redirection elements.
1 个回复
EsriSupport
赞同来自:
1. Download and unzip ESRIRegAsm.exe.config.zip to obtain a new copy of the ESRIRegAsm.exe.config file. Replace the existing file with this new version.
The default install location of the existing config file is:
2.After replacing the config file, re-execute the ESRIRegAsm.exe registration. For example (using the same example as before): The following message should now be displayed:
【创建及修改时间】
Created: 12/17/2014
Last Modified: 12/19/2014
【原文链接】
http://support.esri.com/en/kno ... 43712
要回复问题请先登录或注册