Monday, February 11, 2008

Web application access mapped network folder

Asp.Net runs in a process as runned by aspnet_user, so web application by default has little privilege accessing OS's file system, and have no right to access network mapped folders.

If requested to do that, you just need to change the user of the process. This can be done by changing machine.config file of the Asp.net version installed and being used for your website.

In , defines the process. by default the user is not specified. you can explicitely specify a username as following:



or you even can specify a password attribute.