Fixing “ResGen.exe" exited with code–1073741701”
in Visual Studio 2010
Set the 32-bit flag on resgen.exe
a. Open a Visual Studio command-prompt as an administrator
b. Navigate to the Microsoft SDKs\Windows\v7.0A\bin directory.
c. ***SAVE A COPY*** of your original resgen.exe file. This is very important if you want to be able to replace our tweak with the original file without having to repair your installation. copy resgen.exe regen.exe.old
d. Set the 32-bit flag to true using corflags.exe corflags.exe resgen.exe /32BIT+ /Force
e. Note the warning about strong name issues.
On my machine the build now succeeds, without needing to do any additional work due to strong name issues. IF you have problems after trying this method, you can try the following to skip string name verification for that assembly-
f. Register resgen.exe for strong name verification skipping using sn.exe sn.exe –Vr resgen.exe WARNING! This is a security risk. You are bypassing strongname verification for this assembly, making it possible for malicious code posing as resgen.exe to execute.
To turn verification back on, use sn.exe –Vu resgen.exe
Reference:
http://geekswithblogs.net/SoftwareDoneRight/archive/2010/11/23/fixing-ldquoresgen.exequot-exited-with-codendash1073741701rdquo-in-visual-studio-2010.aspx
in Visual Studio 2010
Set the 32-bit flag on resgen.exe
a. Open a Visual Studio command-prompt as an administrator
b. Navigate to the Microsoft SDKs\Windows\v7.0A\bin directory.
c. ***SAVE A COPY*** of your original resgen.exe file. This is very important if you want to be able to replace our tweak with the original file without having to repair your installation. copy resgen.exe regen.exe.old
d. Set the 32-bit flag to true using corflags.exe corflags.exe resgen.exe /32BIT+ /Force
e. Note the warning about strong name issues.
On my machine the build now succeeds, without needing to do any additional work due to strong name issues. IF you have problems after trying this method, you can try the following to skip string name verification for that assembly-
f. Register resgen.exe for strong name verification skipping using sn.exe sn.exe –Vr resgen.exe WARNING! This is a security risk. You are bypassing strongname verification for this assembly, making it possible for malicious code posing as resgen.exe to execute.
To turn verification back on, use sn.exe –Vu resgen.exe
Reference:
http://geekswithblogs.net/SoftwareDoneRight/archive/2010/11/23/fixing-ldquoresgen.exequot-exited-with-codendash1073741701rdquo-in-visual-studio-2010.aspx