Page 1 of 1

Error while loading *.csproj file in Studio

Posted: Mon Jul 08, 2019 11:32 am
by puniar
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.

Re: Error while loading *.csproj file in Studio

Posted: Mon Jul 08, 2019 11:55 am
by odklizec
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?

Re: Error while loading *.csproj file in Studio

Posted: Mon Jul 08, 2019 12:03 pm
by puniar
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.

Re: Error while loading *.csproj file in Studio

Posted: Mon Jul 08, 2019 12:08 pm
by odklizec
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.

Re: Error while loading *.csproj file in Studio

Posted: Mon Jul 08, 2019 12:20 pm
by puniar
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.

Re: Error while loading *.csproj file in Studio

Posted: Mon Jul 08, 2019 12:33 pm
by odklizec
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).

Re: Error while loading *.csproj file in Studio

Posted: Mon Jul 08, 2019 12:42 pm
by puniar
Thanks odklizec.
Will try to get to know the reasons behind this and sure will work with Studio run as a administrator.

Re: Error while loading *.csproj file in Studio

Posted: Mon Jul 12, 2021 8:44 pm
by jarrettmk
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.

Re: Error while loading *.csproj file in Studio

Posted: Wed Jul 14, 2021 9:11 am
by odklizec
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?

Re: Error while loading *.csproj file in Studio

Posted: Thu Jun 29, 2023 3:42 am
by praveenadevi.B
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.

Re: Error while loading *.csproj file in Studio

Posted: Thu Jun 29, 2023 4:17 am
by praveenadevi.B
show exception attached.