resgen.exe problem when using resx files in Ranorex 4.0.2

Ask general questions here.
m.schrecker
Posts: 7
Joined: Fri Oct 19, 2012 8:14 am

resgen.exe problem when using resx files in Ranorex 4.0.2

Post by m.schrecker » Wed Feb 20, 2013 5:30 pm

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

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

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

Post by Support Team » Thu Feb 21, 2013 12:55 pm

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
.
Image

m.schrecker
Posts: 7
Joined: Fri Oct 19, 2012 8:14 am

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

Post by m.schrecker » Thu Feb 21, 2013 1:38 pm

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

m.schrecker
Posts: 7
Joined: Fri Oct 19, 2012 8:14 am

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

Post by m.schrecker » Thu Feb 21, 2013 4:13 pm

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

AutomationTester
Posts: 30
Joined: Mon Jan 21, 2013 1:31 pm

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

Post by AutomationTester » Mon Apr 22, 2013 6:05 am

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

zealoussuresh
Posts: 5
Joined: Tue Sep 18, 2012 6:17 am

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

Post by zealoussuresh » Wed Jul 17, 2013 7:14 am

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

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

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

Post by Support Team » Thu Jul 18, 2013 3:07 pm

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
.
Image

zealoussuresh
Posts: 5
Joined: Tue Sep 18, 2012 6:17 am

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

Post by zealoussuresh » Mon Jul 22, 2013 2:42 am

Hi

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

Thanks Markus,

~ Suresh