Bugs item #1591991, was opened at 2006-11-07 13:28 Message generated for change (Comment added) made by fitsosu You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1591991&group_id=31650
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Core Group: 0.85 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Gigi de langa Pesti (fitsosu) Assigned to: Nobody/Anonymous (nobody) Summary: resgen TargetInvocationException: InvalidOperationException: Initial Comment: The NAnt, withc is started from a CCNET service, reports the following error: --------- External Program Failed: C:\Documents and Settings\build\Local Settings\Temp\tmp2231.tmp\resgen.exe (return code was -1163019603) error: Invalid ResX input. error: Specific exception: TargetInvocationException Message: Invalid ResX input. ---> TargetInvocationException: Exception has been thrown by the target of an invocation. ---> InvalidOperationException: Failed to load ImageList. 2 error(s). --------- I believe that resgen.exe fails because it does not have the ‘Resgen.exe.manifest’ file in the TEMP directory where is running. This file contains: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <dependency> <dependentAssembly> <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="*" publicKeyToken="6595b64144ccf1df" language="*" /> </dependentAssembly> </dependency> </assembly> In the previous version of nant [85-rc3] I solved the problem by puting this Resgen.exe.manifest file to the following directory: ‘\Microsoft Visual Studio .NET 2003\SDK\v1.1\Bin’ Anyone has a clue if I am right and/or has an solution/explination for this error ? ---------------------------------------------------------------------- >Comment By: Gigi de langa Pesti (fitsosu) Date: 2006-11-08 09:06 Message: Logged In: YES user_id=1639615 I need to compile a project, witch has an serialized ImageList, with a different version of Microsoft.Windows.Common-Controls. In order to do this I need a file named “Resgen.exe.manifest” to exist in the folder where “resgen.exe” tool is installed. I observed that this version of nant (0.85) copy and executes resgen.exe from an other directory (temp one). This is the reason why it fails to build the project where other (than default) version of Common-Controls is needed. In nant 0.85-rc3 the “resgen.exe” is executed from the directory where is installed, and not from a temp one. This assumption are made based one the error messages I obtained: Nant 0.85-rc3: External Program Failed: C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\bin\resgen.exe (return code was -1163019603) Nant 0.85: External Program Failed: C:\Documents and Settings\build\Local Settings\Temp\tmp2231.tmp\resgen.exe (return code was -1163019603) And you can see that is a different behavior between the two versions. And I can solve the problem for RC3, as mentioned above, but for the newer version I will need a way to obtain the directory where “resgen.exe” will be copyed in order to put the needed file. Or maybe you can give another solution for this issue. PS> If you want to replicate the problem try to compile this project with nant: (see in attach). ---------------------------------------------------------------------- Comment By: Gert Driesen (drieseng) Date: 2006-11-07 19:20 Message: Logged In: YES user_id=707851 Can you please provide a small repro for this issue ? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1591991&group_id=31650 ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ nant-developers mailing list nant-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-developers