Upload Access to the path error
Fejl besked:Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.UnauthorizedAccessException: Access to the path "C:\Inetpub\Virtual Sites\Storfad\CalendarMan\uploadeddlls\file.dll" is denied.
Jeg har sat retigheder til ASPNET på IIS'en... så den kan skrive i mappen, så det er lidt mærkeligt.
Udpluk af min kode:
HttpPostedFile myFile = tmp.PostedFile;
string strFileName = myFile.FileName;
strFileName = System.IO.Path.GetFileName(strFileName);
myFile.SaveAs("C:\\Inetpub\\Virtual_Sites\\www\\CalendarMan\\uploadeddlls\\"+strFileName );
