Home All Groups Group Topic Archive Search About

file permission on Windows 2003

Author
31 Mar 2006 8:47 AM
beachboy
i am writing a code for export data to excel, it is working smooth on
windows 2000 platform.

After I upload to windows 2003 server, FileInfo object always has problem:

the FileInfo object can't access and always return "Access is denied"
but i grant ASP.NET has write and modify permission and problem still here

Any one know any major differents with Win2000 and Win2003
any special item I need to take care on windows 2003??

Thanks in advanced.

Author
31 Mar 2006 8:56 AM
Dominick Baier [DevelopMentor]
> Any one know any major differents with Win2000 and Win2003 any special
> item I need to take care on windows 2003??

yes - on Windows2003 ASP.NET runs under NETWORK SERVICE by default - and
not ASPNET

---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com

Show quoteHide quote
> i am writing a code for export data to excel, it is working smooth on
> windows 2000 platform.
>
> After I upload to windows 2003 server, FileInfo object always has
> problem:
>
> the FileInfo object can't access and always return "Access is denied"
> but i grant ASP.NET has write and modify permission and problem still
> here
>
> Any one know any major differents with Win2000 and Win2003 any special
> item I need to take care on windows 2003??
>
> Thanks in advanced.
>
Author
31 Mar 2006 9:55 AM
beachboy
then can i grant write permission to NETWORK SERVICE ....
how can i solve this problem...?

Thanks.
Show quoteHide quote
"Dominick Baier [DevelopMentor]" <dbaier@pleasepleasenospamdevelop.com> ???
news:4580be631991af8c822c8e826da94@news.microsoft.com ???...
> > Any one know any major differents with Win2000 and Win2003 any special
> > item I need to take care on windows 2003??
>
> yes - on Windows2003 ASP.NET runs under NETWORK SERVICE by default - and
> not ASPNET
>
> ---------------------------------------
> Dominick Baier - DevelopMentor
> http://www.leastprivilege.com
>
> > i am writing a code for export data to excel, it is working smooth on
> > windows 2000 platform.
> >
> > After I upload to windows 2003 server, FileInfo object always has
> > problem:
> >
> > the FileInfo object can't access and always return "Access is denied"
> > but i grant ASP.NET has write and modify permission and problem still
> > here
> >
> > Any one know any major differents with Win2000 and Win2003 any special
> > item I need to take care on windows 2003??
> >
> > Thanks in advanced.
> >
>
>
Author
31 Mar 2006 11:57 AM
oldbear
Yes, on the file's properties, go to the security tab and add network service.

If the file is on another machine, then the NETWORK SERVICE is seen as the
account for the host machine that the web app is running on.

Here's a link to the subject. Look at the section 'System Accounts':
http://www.microsoft.com/technet/security/topics/serversecurity/serviceaccount/sspgch02.mspx

Hope this helps

Chris Seary

http://blog.searyblog.com/