Error while loading *.csproj file in Studio

Bug reports.
puniar
Posts: 11
Joined: Thu Jan 24, 2019 12:51 pm

Error while loading *.csproj file in Studio

Post by puniar » Mon Jul 08, 2019 11:32 am

I am facing this issue of unable to view the *.csproj file in Ranorex Studio and below is the error i get while doing so.

Error Message:
Can't load file CFC_AmprionCFCblocks.csproj under D:\LatestGitRepo\SIP_PCT_DIGSI_BLR\Test.Automated.Ranorex\DIGSI5_CFC\Systemtest_AmprionCFCblocks.

Check the file permission and the existence of that file.
My current version of Ranorex is 9.1, whereas this file got created with 7.2 version.


Attached the error message.
Attachments
ErrorCSPROJ2.PNG
ErrorCSPROJ2.PNG (57.87 KiB) Viewed 26 times
ErrorCSPROJ1.PNG
ErrorCSPROJ1.PNG (7.86 KiB) Viewed 35 times
Last edited by puniar on Mon Jul 08, 2019 12:43 pm, edited 1 time in total.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 4918
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Error while loading *.csproj file in Studio

Post by odklizec » Mon Jul 08, 2019 11:55 am

Hi,

At first, does this happen after loading rxsln file in Ranorex studio? Opening csproj alone does not make sense. At next, have you tried to open the solution in Studio started as administrator?
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

puniar
Posts: 11
Joined: Thu Jan 24, 2019 12:51 pm

Re: Error while loading *.csproj file in Studio

Post by puniar » Mon Jul 08, 2019 12:03 pm

Hi odklizec,

1. I opened the solution in Studio and build the solution, Later I attempted to open the csproj file which gave this error.
2. No, I haven't tried running with Administrator.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 4918
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Error while loading *.csproj file in Studio

Post by odklizec » Mon Jul 08, 2019 12:08 pm

As I mentioned, it does not make sense to open csproj file alone. Ranorex Studio works with rxsln file, where csproj is a part of solution. It's not intended to be opened alone. Just open and run rxsln file.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

puniar
Posts: 11
Joined: Thu Jan 24, 2019 12:51 pm

Re: Error while loading *.csproj file in Studio

Post by puniar » Mon Jul 08, 2019 12:20 pm

No, I'm not trying to open the File alone. I have loaded the solution in Ranorex Studio and then trying to view the file. But its not working and now I ran the Studio as an Administrator and able to view the file without any error message.

Also, I have a second clone of the same repo where I could open the file without running the Studio as Administrator.
This was weird as the same file in 2 different cloned repos behaving differently.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 4918
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Error while loading *.csproj file in Studio

Post by odklizec » Mon Jul 08, 2019 12:33 pm

Well, I'm afraid, I'm not using GIT, nor I have an experience with it. And I'm always running studio as admin, which I found easiest way to eliminate some read-only issues, related to version control system (TFS in my case).
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

puniar
Posts: 11
Joined: Thu Jan 24, 2019 12:51 pm

Re: Error while loading *.csproj file in Studio

Post by puniar » Mon Jul 08, 2019 12:42 pm

Thanks odklizec.
Will try to get to know the reasons behind this and sure will work with Studio run as a administrator.