Quantcast
Channel: Excel Data Reader - Read Excel files in .NET
Viewing all articles
Browse latest Browse all 448

Commented Unassigned: Access denied to temp path [11801]

$
0
0
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 **

Maybe too late but I fixed the problem using the SPSecurity declaration:

SPSecurity.RunWithElevatedPrivileges(delegate

// here your code

)};

Hope it can help somebody else ;)


Viewing all articles
Browse latest Browse all 448

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>