Error while loading *.csproj file in Studio

Bug reports.
puniar
Posts: 26
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.
You do not have the required permissions to view the files attached to this post.
Last edited by puniar on Mon Jul 08, 2019 12:43 pm, edited 1 time in total.
Regards,
Punith

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
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: 26
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.
Regards,
Punith

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
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: 26
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.
Regards,
Punith

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
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: 26
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.
Regards,
Punith

User avatar
jarrettmk
Posts: 16
Joined: Wed Sep 19, 2018 6:10 pm

Re: Error while loading *.csproj file in Studio

Post by jarrettmk » Mon Jul 12, 2021 8:44 pm

Has there been any update on this issue? I'm running into the exact same error.

Can't load file TNEW_Repository.cs under D:\Express Web\<rest of file path here>.

Check the file permission and the existence of that file.

If I click Show Exception I am seeing the same exact error as puniar. It is working on my local but when I pull the repo down on another machine I see the error. It isn't making any sense why one machine has a permissions error and the other doesn't. I am running the same version (9.5.3) on both and running both as Administrator. This is happening for every single .cs file in this project in the solution.
Jarrett Karyshyn
Quality Assurance & Automation Engineer
USA - EST (UTC−05:00)/EDT (UTC−04:00)
Image

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

Re: Error while loading *.csproj file in Studio

Post by odklizec » Wed Jul 14, 2021 9:11 am

Hi,

I believe it's a GIT-related issue. Have you checked the permissions for individual files (after pull)? Are you logged to that machine with the same user account as on desktop?
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

praveenadevi.B
Posts: 17
Joined: Wed Jan 18, 2023 1:25 pm

Re: Error while loading *.csproj file in Studio

Post by praveenadevi.B » Thu Jun 29, 2023 3:42 am

Hello odklizec,

Greetings of the day !...I'm also facing issue like this with Rxtst file.
I wanted explain when it is coming we are using GitTortoise now for git commands..i have created branch and completed my changes. Merge master in to my branch ,that time Ranorex magic merger came and resloved some conflicts and i prompt on finished button. After reload solution getting below error.(Rx.issue.png)

I went to git tortoise checking what is the conflict i,i understand CSProj file both recordings done same time in same file, so i resolved with use both of the files (used both code like master and my branch code also)and clicked on resolve conflicts...and not working again i tried with i copy and pasted CSProj from master in to my branch .even though no luck..

Please please help me here how can i resolve i struggle a lot with this always...again re doing all tc's and raising again PR...

Please help me please.
You do not have the required permissions to view the files attached to this post.

praveenadevi.B
Posts: 17
Joined: Wed Jan 18, 2023 1:25 pm

Re: Error while loading *.csproj file in Studio

Post by praveenadevi.B » Thu Jun 29, 2023 4:17 am

show exception attached.
You do not have the required permissions to view the files attached to this post.