Windows 2003 server ASPNET user rights issue

R

RJN

Hi

The web application is running on the Windows 2003 server environment.
The virtual directory is mapped to say
"C:\Inetpub\wwwroot\MyApplication" directory. When we try to create a
file and save it to the .\MyApplication directory, we get the folowing
error

Could not find a part of the path "C:\"

We have given read/write permissions to MyApplication directory for the
ASPNET user. Surprisingly same works fine in Windows 2000 professional.
Any idea what else needs to be done?

Regards

rjn
 
J

James Steele

Hi rjn,

Are you using impersonation for the indentity?

<identity impersonate="true" username="user" password="password"/>.

If so you will have to grant the permissions to the impersonated user
as you have suggested above.

Are you accessing the path using the UNC name of the server?

File = \\server\share
<file:///\\server\share>
 
S

Scott Allen

In Windows 2003 the worker process actuall executes under the NETWORK
SERVICE account, not ASPNET. If you grant the same permissions to
NETWORK SERVICE you'll see everything work, I'd imagine.

HTH,
 
R

RJN

Thanks for your replies. No identity has been set in the web.config file
and hence I believe will not use any impersonation. And I'm not trying
to write the file on the same server and not on a remote server.

I'll try granting permissions to NETWORK SERVICE account.

Regards

rjn
 
P

Patrick Olurotimi Ige

RJN
After granting permissions to NETWORK SERVICE account.
it should be fine
Patrick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,814
Latest member
SpicetreeDigital

Latest Threads

Top