Re: The info you requested

From: Nicholas Paldino [.NET/C# MVP] (mvp_at_spam.guard.caspershouse.com)
Date: 09/16/04


Date: Thu, 16 Sep 2004 09:54:59 -0400

R Reyes,

    Who did he assign rights to? Was it the local ASPNET user? This is the
user that the process is running under by default, and the permissions
should be granted to that.

    Hope this helps.

-- 
               - Nicholas Paldino [.NET/C# MVP]
               - mvp@spam.guard.caspershouse.com
"R Reyes" <RReyes@discussions.microsoft.com> wrote in message 
news:8FE115E5-C756-4FB4-9D44-5D804081D41D@microsoft.com...
> Here is the error:
> System.UnauthorizedAccessException: Access to the path
> "C:\public\tempFiles\work\docs\testing.doc" is denied. at
> System.IO.__Error.WinIOError(Int32 errorCode, String str) at
> System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access,
> FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, 
> Boolean
> bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode,
> FileAccess access, FileShare share) at System.IO.File.OpenRead(String 
> path)
> at myProj.ForumSubmit.uploadFile(String strAttachFile) in
> c:\inetpub\wwwroot\myProj\forumsubmit.aspx.cs:line 166
>
> The folder permissions in my computer are set for read/write access.  This
> is a server-side c# project and currently resides on my machine.  I am 
> using
> a IIS5, VS.NET, and a free web hosting service that lets me serve the 
> website
> on my computer while being able to access it from the outside (though i do
> not believe this matters; all the correct ports are opened anyhow).
>
> Right now, I am trying to upload a file from one folder in my computer to 
> a
> folder on a web server my friend set up and they have read/write granted
> also.  Eventually this project will be run from any client computer and 
> will
> upload a file from their computer to wherever the web server is.  The 
> context
> is that this is used for attaching a file to a forum message (for 
> viewing).
>
> I hope I've answered your questions.  If you need any more info, I will 
> get
> back to you.  Thanks for your help.
> 


Relevant Pages

  • Re: permissions/inheritance question
    ... And that is in verbose error message mode. ... | File System permissions are granted on a user account basis. ... The upload system should write ... | to the "uploads" folder. ...
    (microsoft.public.frontpage.client)
  • Re: permissions/inheritance question
    ... And that is in verbose error message mode. ... | File System permissions are granted on a user account basis. ... The upload system should write ... | to the "uploads" folder. ...
    (microsoft.public.frontpage.client)
  • Re: permissions/inheritance question
    ... Once permissions are assigned to a folder, you can't move, delete or recreate the folder with the ... | File System permissions are granted on a user account basis. ... The upload system should write ...
    (microsoft.public.frontpage.client)
  • Re: HttpWebRequest file upload problem
    ... Here is the first on a remote web server. ... Here is the second connection which is just to another folder on my ... File upload failed: System.UnauthorizedAccessException: Access to the path ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Upload form component not working
    ... You need to let FP manage the permissions on the folder, ... FrontPage Resources, WebCircle, MS KB Quick Links, etc. ... >>> When I test the upload on my development laptop, ...
    (microsoft.public.frontpage.client)