Select to view content in your preferred language

Issue with ESRIRegAsm

2274
10
02-01-2010 03:27 AM
RobertClark
Occasional Contributor
One of our projects is failing to build when registering the assembly.  when run with the error code option we get the following:

Managed Exception: Exception has been thrown by the target of an invocation.
Operation Failed
00938700

In our xml project file we have:
  <Target Name="BeforeClean">
    <Exec WorkingDirectory="$(CommonProgramFiles)\ArcGIS\bin" Command="esriRegasm.exe &quot;$(TargetPath)&quot; /v 9.4 /p Desktop /u /s /e" Condition="Exists('$(TargetPath)')" />
  </Target>
  <Target Name="AfterBuild">
    <Exec WorkingDirectory="$(CommonProgramFiles)\ArcGIS\bin" Command="esriRegasm.exe &quot;$(TargetPath)&quot; /v 9.4 /p Desktop /s /e" />
  </Target>
0 Kudos
10 Replies
MarkoApfel
Deactivated User
Be carefully to have the right cmd-prompt! At 64bit-systems you need the cmd from %windir%\SysWOW64 - otherwise esriRegasm throws strange errors.

http://geekswithblogs.net/mapfel/archive/2011/04/26/145053.aspx
0 Kudos