468,103 Members | 1,255 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,103 developers. It's quick & easy.

HELP: Cant create a file in webpage dir (OS: Server 2003)

I have a server that is running Windows Server 2003.

My web page is trying to create a file in the
C:\inetpub\wwwroot\MyWeb\Secured directory. When it tries to create/write
the file it gets this error:

Access to the path "C:\inetpub\wwwroot\MyWeb\Secured\AsciiInfo.pw a" is
denied.

I think it's a permissions issue in either IIS or Server 2k3. But, I'm not
sure. It works FINE on our other server which is running Windows 2000.

Please help!

Thanks.
Nov 18 '05 #1
3 969
Have you looked at the security settings for the directory Secured? I
believe Win2003 uses the account NETWORK (or NETWORKING, I don't remember
off the top of my head, I don't think it is ASPNET as you have on Win2k/XP).
Make sure that account has write/create/modify (maybe full control) for that
directory.
--
Mike Mayer - Visual C# MVP
http://www.mag37.com/csharp/
mi**@mag37.com

"VB Programmer" <gr*********@go-intech.com> wrote in message
news:uw**************@TK2MSFTNGP11.phx.gbl...
I have a server that is running Windows Server 2003.

My web page is trying to create a file in the
C:\inetpub\wwwroot\MyWeb\Secured directory. When it tries to create/write
the file it gets this error:

Access to the path "C:\inetpub\wwwroot\MyWeb\Secured\AsciiInfo.pw a" is
denied.

I think it's a permissions issue in either IIS or Server 2k3. But, I'm not sure. It works FINE on our other server which is running Windows 2000.

Please help!

Thanks.

Nov 18 '05 #2
The remote authenticated user must have write permissions on the directory
in question. The remote authenticated user identity depends on whether you
have authentication enabled and what your browser chooses to negotiate for
identity.

Sorry, as easy as it was for you to write a file without knowing why, a
hacker can do better. Security changes with Windows Server 2003 requires
you to change habits, so many things that "just worked fine" in Windows 2000
are not guaranteed to work by default on Windows Server 2003.

--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"VB Programmer" <gr*********@go-intech.com> wrote in message
news:uw**************@TK2MSFTNGP11.phx.gbl...
I have a server that is running Windows Server 2003.

My web page is trying to create a file in the
C:\inetpub\wwwroot\MyWeb\Secured directory. When it tries to create/write
the file it gets this error:

Access to the path "C:\inetpub\wwwroot\MyWeb\Secured\AsciiInfo.pw a" is
denied.

I think it's a permissions issue in either IIS or Server 2k3. But, I'm not
sure. It works FINE on our other server which is running Windows 2000.

Please help!

Thanks.

Nov 18 '05 #3
Gave full permissions to IIS_WPG account and it worked! Thanks.

"David Wang [Msft]" <so*****@online.microsoft.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
The remote authenticated user must have write permissions on the directory
in question. The remote authenticated user identity depends on whether you have authentication enabled and what your browser chooses to negotiate for
identity.

Sorry, as easy as it was for you to write a file without knowing why, a
hacker can do better. Security changes with Windows Server 2003 requires
you to change habits, so many things that "just worked fine" in Windows 2000 are not guaranteed to work by default on Windows Server 2003.

--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights. //
"VB Programmer" <gr*********@go-intech.com> wrote in message
news:uw**************@TK2MSFTNGP11.phx.gbl...
I have a server that is running Windows Server 2003.

My web page is trying to create a file in the
C:\inetpub\wwwroot\MyWeb\Secured directory. When it tries to create/write
the file it gets this error:

Access to the path "C:\inetpub\wwwroot\MyWeb\Secured\AsciiInfo.pw a" is
denied.

I think it's a permissions issue in either IIS or Server 2k3. But, I'm not sure. It works FINE on our other server which is running Windows 2000.

Please help!

Thanks.

Nov 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Ian DeRock | last post: by
2 posts views Thread by JemPower | last post: by
15 posts views Thread by DavidS | last post: by
13 posts views Thread by JebBushell | last post: by
1 post views Thread by Rahul | last post: by
1 post views Thread by kev | last post: by
reply views Thread by SOI_0152 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.