Error reading PDF file in web dev, but script console successfully reads file

I'm attempting to upload a pdf using the Web Dev module but am running into an issue in which it says the file doesn't exist.

The exact logger error states: "Error reading PDF: File 'C:\Program Files\Inductive Automation\Ignition\data\pdfs\AIUsePolicy.pdf' doesn't exist or isn't a file."

However testing in the script console proves the file reads sucessfully

Is the directory you created readable by the service user running the Ignition gateway process? Typically that's LOCAL_SYSTEM unless you've changed it.

The script console is running as your local user, whereas webdev is running as the gateway, which has different implications for Windows' permissions.

Also, why not just use a mounted folder resource?

1 Like