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 / July 2007

Tip: Looking for answers? Try searching our database.

Directory permission for disk I/O from web service

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Milop - 30 Jul 2007 19:47 GMT
Hello.

I have an ASP.Net 2.0 web service on Win2003 server that needs to write to a
shared directory on the same machine.

The web.config file is using "None" as the authentication mode.

I am referencing the directory using UNC naming (\\WEBSERVER\Folder\.....)

I thought the web service was going to run under the local ASPNET account,
so I gave ASPNET permissions, but that didn't work.

Unless I add "Everyone" under the permissions for "Sharing" the web service
cannot write to the folder, and I do not want to add "Everyone".

What am I missing?

Thanks in advance,

Mike
bruce barker - 30 Jul 2007 20:57 GMT
unc paths require network permission, so your pool account should be a
domain account.

-- bruce (sqlwork.com)

> Hello.
>
[quoted text clipped - 16 lines]
>
> Mike
Steve C. Orr [MCSD, MVP, CSM, ASP Insider] - 30 Jul 2007 22:10 GMT
In Win2003 ASP.NET runs under the "NetworkService" user account by default,
not the ASPNET user account.  So try giving it permissions.

Signature

I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net

> Hello.
>
[quoted text clipped - 16 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.