Receiving and error when reading from stream. Access denied to temp path....? It happens when calling this method ExcelReaderFactory.CreateOpenXmlReader.
Obviously if I'm an admin on the box I dont get the error, but this is not realistic to a production site. Any thoughts?
Thanks
Comments: ** Comment from web user: pabloparra **
Obviously if I'm an admin on the box I dont get the error, but this is not realistic to a production site. Any thoughts?
Thanks
Comments: ** Comment from web user: pabloparra **
Maybe too late but I fixed the problem using the SPSecurity declaration:
SPSecurity.RunWithElevatedPrivileges(delegate
// here your code
)};
Hope it can help somebody else ;)