1
Error "Could not open a temporary file. Make sure to close unused documents." when add watermark.
Problem reported by maipendek naja - 7/1/2019 at 8:25 AM
Submitted
Hi,
I try to add the watermark in Document Viewer but always get the error message as below. How can I check or investigate this? Thank you.

Note: I use it on SharePoint 2016 on premise.

Exception: 
Message: Could not open a temporary file. Make sure to close unused documents. 
Conditional expression: m_stream != NULL 
Version    : 3.0.0   
Filename   : TempFile.cpp 
Function   : trn::SDF::TempFile::OpenTempFile 
Linenumber : 142

1 Reply

Reply to Thread
0
Cem Alacayir Replied
Employee Post
Hi,
This seems to be a writing permission problem on the temporary folder.
 
  1. Add the IUSRNetwork Service (and your other Windows accounts which your app pool uses) to IIS_IUSRS group
  2. Run iisreset in Administrator Command Prompt so that the change takes in effect.
 
This will grant permissions to “Temporary ASP.NET Files” folder as IIS_IUSRS group already has access to it. 

Reply to Thread