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]
Build Failed due to access issue
Re: Build Failed due to access issue
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.
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 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
Re: Build Failed due to access issue
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.
Re: Build Failed due to access issue
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?
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 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
Re: Build Failed due to access issue
Hi
Yes its in git and the files are writable. We run it as admin and the UAC is disabled.
Harsh
Yes its in git and the files are writable. We run it as admin and the UAC is disabled.
Harsh
Re: Build Failed due to access issue
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
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 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