Build Failed due to access issue

Ask general questions here.
gvijay11
Posts: 8
Joined: Thu Apr 11, 2019 4:26 pm

Build Failed due to access issue

Post by gvijay11 » Thu Apr 11, 2019 4:31 pm

Getting below error message often during Build/Rebuild of any project. Sometimes a Reboot/Logoff is fixed the issue but its appeared again.

Error Message:

[Could not write lines to file "obj\x86\Debug\MyTest1.csproj.FileListAbsolute.txt". Access to the path 'C:\Users\tst4gp3\Desktop\AdobeAcrobatDC\MyTest1\obj\x86\Debug\MyTest1.csproj.FileListAbsolute.txt' is denied. (MSB3491)

Build started.
Warning MSB3061: Unable to delete file "bin\Debug\Ranorex.rxsettings". Access to the path 'C:\Users\tst4gp3\Desktop\AdobeAcrobatDC\AdobeAcrobatDC\bin\Debug\Ranorex.rxsettings' is denied.
Error MSB3021: Unable to copy file "C:\Users\tst4gp3\Desktop\AdobeAcrobatDC\Ranorex.rxsettings" to "bin\Debug\Ranorex.rxsettings". Access to the path 'bin\Debug\Ranorex.rxsettings' is denied.
Build failed. (00:00:02.3726490)
[/i]

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

Re: Build Failed due to access issue

Post by odklizec » Fri Apr 12, 2019 5:47 am

Hi,

At first, what’s your Ranorex version? Most recent is 9.0.1. If you are using something older, please upgrade it with most recent version.

At next, are you running Ranorex as an administrator? This should help with similar problems. But generally speaking, using windows desktop, as a file storage, is probably not the best idea. It’s not where you should store files and build solutions. My guess is, that you are trying to build the solution logged as different user, than the one who actually created the solution (tst4gp3)? And this is why you most probably don’t have access to his 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

hghesani
Posts: 27
Joined: Mon May 21, 2018 7:55 pm

Re: Build Failed due to access issue

Post by hghesani » Thu Oct 03, 2019 7:49 pm

What was the resolution to this issue ? I am seeing a similar issue with my project where both solution items, ranorex.rxsettings and ranorex licensemanager.lic are having access issues and it is intermittent.

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

Re: Build Failed due to access issue

Post by odklizec » Fri Oct 04, 2019 7:33 am

Hi,

Do you have solution under source control system? And if yes, which one? At next, have you tried to run Ranorex Studio 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

hghesani
Posts: 27
Joined: Mon May 21, 2018 7:55 pm

Re: Build Failed due to access issue

Post by hghesani » Fri Oct 04, 2019 8:18 pm

Hi

Yes its in git and the files are writable. We run it as admin and the UAC is disabled.

Harsh

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

Re: Build Failed due to access issue

Post by odklizec » Tue Oct 08, 2019 8:40 am

Hi,

Two things to try...
1) Try to manually delete entire Debug folder.
2) Move the project out of Desktop, to more appropriate location (e.g. Documents) or even better, create a folder on C:\ drive. Desktop should not be used as a data storage place ;)
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