ASP.NET User Permissions

  • Thread starter Thread starter Chris
  • Start date Start date
C

Chris

Is the following assumption correct?

-ASP.NET user does not see the local drives I have mapped

If so how can I get it to notice the mapped drives? Do I need to change the
user in the machine.config?

Thanks
Chris
 
Mapped drives are per user, and the ASPNET account is not your user account
so it won't see them. Can you just use UNC paths? (\\server\share)
 
Actually it works ok on my server, but when I try to run it on my local
machine with mapped drives to mirror the server (for debugging purposes) I'm
having the problem. The drive mappings come out of a database so I don't
want to change them. I was hoping I could change something on my local
machine so that the ASP.NET user would run as me. This isn't for a
production thing, it's for debugging.

Thanks
Chris
 
Yes, you can change the account that the aspnet_wp process runs under in the
machine.config. Look for the processModel element, and you can edit the
userName and password attributes. If you want to encrypt them (so you don't
have your user/pass in plain text) you can use the aspnet_setreg.exe tool.
 
Back
Top