"Unrecoverable Error" in ProxyGen

Q:

When I try to use ProxyGen to generate a descriptor file for ShapeAppCSharp.exe, it reports an unrecoverable error. No error code is given, but it reports that the exception has been thrown by a target of an invocation. I get the same error when I apply ProxyGen to a couple of my own projects - even a new "empty" windows form application. Here is a sample from the command window:

 

C:\Program Files\Visual Studio Tools for Applications 2.0 SDK\2008\Visual Studio Tools

For Applications\Tools\ProxyGen>proxygen.exe/l:"C:\ShapeAppSamples\

ShapeAppCSharp\core\bin\Debug\ShapeAppCSharp.exe"/o:"C:\ShapeAppSamples\

ShapeAppCSharp\Proxy\ShapeAppCSharpOM.xml" /f

 

An unrecoverable error was encountered during processing.

Exception has been thrown by the target of an invocation.

This may have been caused by earlier errors.

ProxyGen.exe Information: 0 : Finished

 

I should add that ShapeAppCSharp.exe itself runs satisfactorily.

 

 

A:

The error you were encountering was due to a lack of spaces between switches in the command.  Specifically the "/l" and "/o" switches must each be preceded by a space.  Also keep in mind that ProxyGen will not create a folder, so the "Proxy" folder must exist at C:\ShapeAppSamples\ShapeAppCSharp prior to running the command.

Here is the corrected command:

proxygen.exe /l:"C:\ShapeAppSamples\ShapeAppCSharp\core\bin\Debug\ShapeAppCSharp.exe" /o:"C:\ShapeAppSamples\ShapeAppCSharp\proxy\ShapeAppCSharpOM.xml" /f

 

 


Posted Jun 18 2009, 12:09 PM by BillL
Copyright Summit Software Company, 2008. All rights reserved.