Build Failed due to access issue

Ask general questions here.
gvijay11
Posts: 4
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: 4802
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