Unanswered question

The process cannot access the file when posting picture

When posting a picture I get the message:

System.IO.IOException "," message ":" The process can not access the file "C: \\ Windows \\ TEMP \\ image.jpg 'because it is being used by another process.

This is only if you run it as a scenario (population) with multiple vusers.
If you do a check with 1 vusers then this goes well multiple times in a row

The picture is posted in a request as text:

Full error message:
{"versionInfo":{"hasModuleVersionChanged":false,"hasApiVersionChanged":false},"data":{},"exception":{"name":"ServerException","specificType":"System.IO.IOException","message":"The process cannot access the file 'C:\\Windows\\TEMP\\image.jpg' because it is being used by another process."}}

matthijs B.
matthijs B.

matthijs B.

Level
0
77 / 100
points

Answers

Ankur S.
Ankur S.

Ankur S.

Level
1
218 / 750
points

any updates on this?

Neil W.
Neil W.

Neil W.

Level
4
5000 / 5000
points
Team

I would assume it's like any other file in windows, if the file is in use, another process can do anything with it. If it was me, I would either have 100s of files, one for each VU or my preference would be to have Neoload take a copy of the file before it's used. and delete it after...

init: copy the file using the command in custom action
action: use the file
end: delete the file using the command