32/64 bit questions : General Questions - Page 2

32/64 bit questions

Ask general questions here.

Re: 32/64 bit questions

Postby Support Team » Wed Jul 27, 2011 8:18 pm

Ciege wrote:Do I need to recompile my AUT and add an app.config?

No, the app.config file is not for the AUT, but the automating executable. Just add an "Application Configuration File" to your project in Visual Studio. That will create an app.config file that will automatically be put into the output folder and correctly renamed to the name of the executable. And then edit the contents of the app.config file like outlined in the User Guide (see link from previous post).

Alternatively, just create a new Ranorex project with Ranorex Studio and copy the create app.config to your project.

Regards,
Alex
Ranorex Team
User avatar
Support Team
Site Admin
 
Posts: 4837
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria

Re: 32/64 bit questions

Postby Ciege » Wed Jul 27, 2011 9:00 pm

Well, that did it... :D

I was using a small script that created a snapshot (since I am using a runtime version on that machine). Made one snapshot without the app.config in the directory and one with.
The one without the app.config showed the incorrect xPaths using the element as the parent object and the one with the app.config showed the xPaths I have grown to expect and love...

It would seem I should go forward and create an app.config for each of my projects. Have you any understanding why the app.config is needed considering my AUT is using .NET 3.5 as discovered using Visual Studio to show that it is a "managed" app?
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!

Ciege...
User avatar
Ciege
 
Posts: 965
Joined: Thu Oct 16, 2008 7:46 pm
Location: Arizona, USA

Re: 32/64 bit questions

Postby Support Team » Thu Jul 28, 2011 10:22 am

Ciege wrote:Have you any understanding why the app.config is needed considering my AUT is using .NET 3.5 as discovered using Visual Studio to show that it is a "managed" app?

One possible explanation is that your AUT is using both the .NET 2.0 and 4.0 runtime. This is very unusual, but it's possible.

Regards,
Alex
Ranorex Team
User avatar
Support Team
Site Admin
 
Posts: 4837
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria

Re: 32/64 bit questions

Postby Ciege » Thu Aug 04, 2011 9:02 pm

Support Team wrote:
Ciege wrote:Have you any understanding why the app.config is needed considering my AUT is using .NET 3.5 as discovered using Visual Studio to show that it is a "managed" app?

One possible explanation is that your AUT is using both the .NET 2.0 and 4.0 runtime. This is very unusual, but it's possible.

Regards,
Alex
Ranorex Team


Per my dev team the AUT is compiled using .NET 3.5 only.
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!

Ciege...
User avatar
Ciege
 
Posts: 965
Joined: Thu Oct 16, 2008 7:46 pm
Location: Arizona, USA

Re: 32/64 bit questions

Postby Support Team » Fri Aug 05, 2011 1:10 pm

Ciege wrote:Per my dev team the AUT is compiled using .NET 3.5 only.

OK, I would have to guess for another explanation now. Without having a look at your system it's hard to tell why the app.config is needed. Anyway, it should not hurt adding it to your project. At least, your are now safe in case your AUT is upgraded to use the .NET 4.0 Framework in the future :D

Regards,
Alex
Ranorex Team
User avatar
Support Team
Site Admin
 
Posts: 4837
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria

Re: 32/64 bit questions

Postby Ciege » Fri Aug 05, 2011 4:58 pm

Indeed, thanks for the help...

I was just following up on that last post since I just got back from vacation. Didn't want you to think I just dropped it...
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!

Ciege...
User avatar
Ciege
 
Posts: 965
Joined: Thu Oct 16, 2008 7:46 pm
Location: Arizona, USA

Previous

Return to General Questions

Who is online

Users browsing this forum: No registered users and 0 guests