Page 1 of 1

resgen.exe problem when using resx files in Ranorex 4.0.2

Posted: Wed Feb 20, 2013 5:30 pm
by m.schrecker
I'm using Ranorex 4.0.2 and use resx files to get some strings. Ranorex is running on windows vista sp2. I had the same problem with Ranorex on Windows 7. Everytime I build my solution I get the following error:
Task failed because "resgen.exe" was not found, or the correct Microsoft Windows SDK is not installed.
The task is looking for "resgen.exe" in the "bin" subdirectory beneath the location specified in the InstallationFolder value of the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.0A.
You may be able to solve the problem by doing one of the following:
1) Install the Microsoft Windows SDK.
2) Install Visual Studio 2010.
3) Manually set the above registry key to the correct location.
4) Pass the correct location into the "ToolPath" parameter of the task. (MSB3091)
I tried all possible fixes and solved the problem with the installation of Visual Studio 2010. Thats the only possibility to solve it. Now we are using a virtual machine with windows vista sp2 which does not provide another 4GB disk space to install an Windows SDK or a Visual Studio 2010. Normally the correct resgen.exe should be delivered by Ranorex!? Is there a small/fast solution from your side?

Greets Michael

Re: resgen.exe problem when using resx files in Ranorex 4.0.2

Posted: Thu Feb 21, 2013 12:55 pm
by Support Team
Hi Michael,
Normally the correct resgen.exe should be delivered by Ranorex!?
Unfortunately the tool is not a Microsoft redistributable.
Now we are using a virtual machine with windows vista sp2 which does not provide another 4GB disk space to install an Windows SDK or a Visual Studio 2010.
If you install the SDK and only select the '.Net Development' component, it only requires 172.2 MB of disk space.

Regards,
Ron
Ranorex Team

Re: resgen.exe problem when using resx files in Ranorex 4.0.2

Posted: Thu Feb 21, 2013 1:38 pm
by m.schrecker
Hey Ron,
thank you for your fast reply. I'll try to fix it with that.
Last time I installed the whole Windows SDK and didn't get it working anyway.
I had to install VS 2010 to fix it. I'll try and contact you when I did.

Regards,
Michael

Re: resgen.exe problem when using resx files in Ranorex 4.0.2

Posted: Thu Feb 21, 2013 4:13 pm
by m.schrecker
Okay,
installing the .Net Develop data of the Windows SDK solved the problem.
It was ca. 1 GB big but this was possible ;)

Thank you for your fast help!

Best regards,

Michael

Re: resgen.exe problem when using resx files in Ranorex 4.0.2

Posted: Mon Apr 22, 2013 6:05 am
by AutomationTester
Hi guys,

I also had the same Problem. Now it is solved by the above(.net development) solution.
Thanks guys. Ranorex Rocks. ;)

Thanks,
Amiruddin aka AutomationTester

Re: resgen.exe problem when using resx files in Ranorex 4.0.2

Posted: Wed Jul 17, 2013 7:14 am
by zealoussuresh
Hi Support Team,

I recently upgraded from Ranorex 3.2 to Ranorex 4.0.4 and I am facing the same issue, and I tried to install Windows SDK but it fails installation. Is there any other way we can eliminate this issue ?

and what is .Net Develop data of Windows SDK, is it something specific. I tried installing the whole SDK...

Windows Version : Windows 7 Professional N

Thanks
Suresh

Re: resgen.exe problem when using resx files in Ranorex 4.0.2

Posted: Thu Jul 18, 2013 3:07 pm
by Support Team
Hi Suresh,

This error is in general caused by the resx file of a custom form, so another solution would be deleting the specific file.
.Net Development is a component which can be selected when you install the Microsoft Windows SDK and it "Installs components that let you develop managed code applications. Included are Intellisense, Reference Assemblies, and Tools targeting .NET Framework 3.5 and .NET Framework 4.".
Which error did you receive when you tried to install it?

Regards,
Markus

Re: resgen.exe problem when using resx files in Ranorex 4.0.2

Posted: Mon Jul 22, 2013 2:42 am
by zealoussuresh
Hi

I uninstalled the Visual C++ 2010 Redistributable and installed the windows SDK. It resolved the issue.

Thanks Markus,

~ Suresh