Home     Products      Support      Corporate     Sign In 
Support Knowledge Base, Article 821
Error: "Access Denied" when instantiating FileUp in .NET.
When the application tries to load the safileup.dll assembly, an "Access Denied" error is received.
Access is Denied: safileup
Exception Details: System.IO.FileLoadException

This behavior can occur if the user account under which the application is running does not have necessary permissions to the folders needed by ASP.NET to load the assembly.


The ASP.NET worker process is trying to read, write and delete copies of the safileup.dll in the ASP.NET temporary files directory:

C:\[%WinDir%]\Microsoft.NET\Framework\[version of the Framework]\Temporary ASP.NET Files

Give the account under which the application is running "modify" NTFS permissions on the ASP.NET temporary files directory. Be certain to check "reset all child permissions". Do this by clicking the "Advanced" button on the "Security" tab in the file "Properties" dialog.

To be certain of the identity under which your application is running, you can use the System.Security.Principal class to output the current user identity. For a code sample demonstrating how this is done, please see: http://support.softartisans.com/kbview.aspx?ID=820

Created : 8/18/2004 5:23:08 PM (last modified : 8/19/2004 9:39:17 AM)
Rate this article!