Sometimes it is required to change the username under which asp.net runs. Some scenarios would be authenticating to ms sql via windows authentication, listing users under asp.net directory (see ActiveDirectoryMembershipProvider), accessing shares on the network etc. Here's how to do it.







