Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / June 2007

Tip: Looking for answers? Try searching our database.

shortest path to write to a network drive?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike - 06 Jun 2007 21:49 GMT
In .NET 2.0 hosted on Server 2003, I'm attempting to use File.Copy(src,dst)
to write to a shared folder on a network drive.  The folder is used by every
user who has a log on id and has 'Full Control' permissions granted to
'Everyone'.  Still, I am not able to write to the folder from my code-behind
code.  I get "unknown user name or bad password".

I've found and tried a number of Impersonation and Delegation articles, but
I only get a headache from them.  For a wide open public directory like this,
there's got to be a shorter/simpler path (I'm hoping).

I know we have the IIS Application Pool Identity set to IWAM_machine instead
of "Network Service", but I don't recall the rationale for changing it over a
year ago (except that it fixed something, and that we've created more
dependencies on IWAM_machine since then).

Have tried both UNC's "\\machine2\publicdir\des.txt" and mapped drives
"Y:\temp\dest.txt".  The latter returns "Could not find part of the path",
which makes sense, I did not expect mapped drives to show up for the IIS
process.

Any help greatly appreciated.

Mike
bruce barker - 06 Jun 2007 23:06 GMT
make the app pool identity a domain account with access to the share. be
sure impersonation is off.

-- bruce (sqlwork.com)

> In .NET 2.0 hosted on Server 2003, I'm attempting to use File.Copy(src,dst)
> to write to a shared folder on a network drive.  The folder is used by every
[quoted text clipped - 19 lines]
>
> Mike

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.