This is a migrated thread and some comments may be shown as answers.

Rad upload TargetPhysicalFolder problem

2 Answers 46 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Sudhir
Top achievements
Rank 1
Sudhir asked on 13 Oct 2010, 07:17 PM
Hi,
Actually i am using rad upload control to upload the files, i am using target physical folder path because i need to keep all uploaded files out side the my website. I want to  keep all uploaded file outside the our existing website where i am uploading the files but when we are giving the physical path file is unable to write over there.  I am giving path like D:\uploaded but on that path file is unable to write. I am giving all permission like network services, Asp.net etc to that folder but still i am facing the problem, so please suggest me some solutions.

2 Answers, 1 is accepted

Sort by
0
Kyle
Top achievements
Rank 1
answered on 14 Oct 2010, 04:36 PM
Which IIS are you running?  I believe IIS6 uses NETWORK SERVICE (or ASPNET) as the user.  IIS7 allows you to use the Application Pool identity, or you can set it to use a local user.

Make sure the correct user has full access to that directory.

You might consider using ProcMon to watch which account IIS is trying to use to access that folder.

Kyle
0
Waseem
Top achievements
Rank 1
answered on 20 Oct 2012, 12:04 AM
Hi I am trying to upload File by using RadUpload. Its work on local pc as well as on Server. But on our one client pc (Window 7). it cause error. I am 100 % sure about my code. Its working great. Is there any permission or what is this?

Could not find a part of the path 'D:\Testing\Test.pdf'.
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.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\Testing\Test.pdf'.

[DirectoryNotFoundException: Could not find a part of the path 'D:\Testing\Test.pdf'.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +216
   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, Boolean useLongPath) +2481
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy) +229
Tags
Upload (Obsolete)
Asked by
Sudhir
Top achievements
Rank 1
Answers by
Kyle
Top achievements
Rank 1
Waseem
Top achievements
Rank 1
Share this question
or