Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Windows 2003 server ASPNET user rights issue

Reply
Thread Tools

Windows 2003 server ASPNET user rights issue

 
 
RJN
Guest
Posts: n/a
 
      04-06-2005
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


*** Sent via Developersdex http://www.developersdex.com ***
 
Reply With Quote
 
 
 
 
James Steele
Guest
Posts: n/a
 
      04-06-2005
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>

 
Reply With Quote
 
 
 
 
Scott Allen
Guest
Posts: n/a
 
      04-06-2005
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,

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Wed, 06 Apr 2005 07:24:23 -0700, RJN <(E-Mail Removed)> wrote:

>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
>
>
>*** Sent via Developersdex http://www.developersdex.com ***


 
Reply With Quote
 
RJN
Guest
Posts: n/a
 
      04-07-2005

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




*** Sent via Developersdex http://www.developersdex.com ***
 
Reply With Quote
 
Patrick Olurotimi Ige
Guest
Posts: n/a
 
      04-07-2005
RJN
After granting permissions to NETWORK SERVICE account.
it should be fine
Patrick


*** Sent via Developersdex http://www.developersdex.com ***
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
aspnet local user account rights to c:\windows\temp automatically removed jpgentz@cox.net ASP .Net Security 1 07-05-2007 07:53 PM
aspnet user rights when using COM Tommy Christian ASP .Net 1 11-17-2005 02:00 PM
User rights in win 2003 domain Digital_X MCSA 10 03-23-2005 04:07 PM
Event 1084 ASPNET Insufficient Rights Ian Taite ASP .Net 2 03-10-2005 11:34 AM
question about setting aspnet user rights Sheryl Landon ASP .Net 1 08-14-2004 12:38 AM



Advertisments