NAV 2013 R2 ERROR CREATETEMPFILE

Good morning!

I’m here because I’ve a not common error when i use the CREATETEMPFILE, the error is this:

“Either the caller does not have the required permission or the specified path is read-only.”

I have checked that users has permission for the Temp Path… Also I have restarted service and server…

You can help me? Thank you,

PS: Also I have checked the I can export the pages to excel,word withouth problems… So why this is normal and the other no?.. They are both saved in the same Temp Path…

Best regards

Ah, I forgot this, the code what I wrote is

File.CREATETEMPFILE

Just this! :slight_smile: :slight_smile: …

And when debugger break error is in the same line:

"Either the caller does not have the required permission or the specified path is read-only."

Hi

Check that your NAV instance service user have rights to create and write files in your NAV servers ProgramData path. Typically: “‪C:\ProgramData\Microsoft\Microsoft Dynamics NAV\71\Server<instance name>\users\default”.

I was hit by this myself in October and blogged about it in Danish here: http://blog.systemconnect.dk/?p=607

Regards

Gert Lynge