What permissions do I need to give to the Profiles directory? When I try to upload a profile photo, I get the following error.
InnerException: Access to the path 'd:\#######\Portals\0\Profiles\B\3\Profile1.jpg' is denied.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.IO.__Error.WinIOError
StackTrace:
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Access to the path 'd:\hosting\barrywatts\Portals\0\Profiles\B\3\Profile1.jpg' is denied. ---> System.UnauthorizedAccessException: Access to the path 'd:\hosting\barrywatts\Portals\0\Profiles\B\3\Profile1.jpg' is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode) at System.Web.HttpPostedFile.SaveAs(String filename) at SmartThinker.DNN.Modules.UserProfile.Business.UserProfileUtils.CreateProfileImage(HtmlInputFile photoUpload, Int32 photoWidth, Int32 photoHeight, String fromFilename, Int32 userID) at SmartThinker.DNN.Modules.UserProfile.UserProfileView.cmdUpdate_Click(Object sender, EventArgs e) --- End of inner exception stack trace ---