# Access is denied

**URL:** https://www.finalbuilder.com/forums/t/access-is-denied/2033
**Category:** Discussion
**Created:** [October 1, 2012, 11:02am UTC](https://www.finalbuilder.com/forums/t/access-is-denied/2033 "2012-10-01T11:02:35Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![lahatch](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/l/6bbea6/32.png) [@lahatch](https://www.finalbuilder.com/forums/u/lahatch)
#### Post date: [October 1, 2012, 11:02am UTC](https://www.finalbuilder.com/forums/t/access-is-denied/2033/1 "2012-10-01T11:02:35Z")

</div>

Hi,

on win 2008 server, we have a TFS build agent that get sources and launch a final builder project to build our solution.

Often the "access is denied" error happens on a text replace, move, or delete, ... action.

For example, 4 text replace actions are performed on the same file and the fourth one fails :

| Text Find / Replace | Text Replace [DLL\_RESOURCES\_TRAD...] with [.resources.dll...] in [versioninfoInterop.rc] | 03:42:17 | 03:42:17 | 00:00:00 | 
Completed
 |
| 
```
Expression to Match is : (?i)INTEROP_NAMEMatch took :0Found 2 matches.Writing replaced data to file X:\tlib\versioninfoInterop.rcFound 2 matches
```
 |
| Text Find / Replace | Text Replace [MAJOR,MINOR,RELEASE,BUILD...] with [2,5,3,...] in [versioninfoInterop.rc] | 03:42:17 | 03:42:17 | 00:00:00 | 
Completed
 |
| 
```
Expression to Match is : (?i)MAJOR,MINOR,RELEASE,BUILDMatch took :0Found 2 matches.Writing replaced data to file X:\tlib\versioninfoInterop.rcFound 2 matches
```
 |
| Text Find / Replace | Text Replace [MAJOR.MINOR.RELEASE.BUILD...] with [2.5.3....] in [versioninfoInterop.rc] | 03:42:17 | 03:42:17 | 00:00:00 | 
Completed
 |
| 
```
Expression to Match is : (?i)MAJOR\.MINOR\.RELEASE\.BUILDMatch took :0Found 1 match.Writing replaced data to file X:\tlib\versioninfoInterop.rcFound 1 matches
```
 |
| Text Find / Replace | Text Replace [MAJOR.MINOR...] with [2.5...] in [versioninfoInterop.rc] | 03:42:17 | 03:42:17 | 00:00:00 | 
Error
 |
| 
```
Expression to Match is : (?i)MAJOR\.MINORMatch took :0Found 1 match.Writing replaced data to file X:\tlib\versioninfoInterop.rcAn error occured:Unable to write to:X:\tlib\versioninfoInterop.rcCannot create file "X:\tlib\versioninfoInterop.rc". Access is denied
```
 |

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [November 3, 2012, 1:47am UTC](https://www.finalbuilder.com/forums/t/access-is-denied/2033/2 "2012-11-03T01:47:25Z")

</div>

Hi   
  
 My apologies for the delay in replying. Do you have antivirus software installed on your build agent machine? One thing you can try is to add a small pause between actions.

---

<div class="post-metadata">

### Author: ![lahatch](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/l/6bbea6/32.png) [@lahatch](https://www.finalbuilder.com/forums/u/lahatch)
#### Post date: [November 21, 2012, 4:19am UTC](https://www.finalbuilder.com/forums/t/access-is-denied/2033/3 "2012-11-21T04:19:55Z")

</div>

Hi Vincent,   
  
 yes we tried to add small delay between actions and as you thought we don’t have the errors anymore.   
 I didn’t know the cause, so you think it can be the antivirus.
