Re: The info you requested
From: Nicholas Paldino [.NET/C# MVP] (mvp_at_spam.guard.caspershouse.com)
Date: 09/16/04
- Next message: Ananth: "Reflection problem"
- Previous message: Mojtaba Faridzad: "deleting selected rows in a DataGrid"
- In reply to: R Reyes: "The info you requested"
- Messages sorted by: [ date ] [ thread ]
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.
>
- Next message: Ananth: "Reflection problem"
- Previous message: Mojtaba Faridzad: "deleting selected rows in a DataGrid"
- In reply to: R Reyes: "The info you requested"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|