To add impersonation, add the following to your web.config file inside the system.web tags:
<identity impersonate="true" userName="myUserName" password="myPassword"/>
>Hi Jayesh,
>
>Thanks for the info - I think I may have found a more appropriate article that applies specifically to ASP.Net
>
>
http://support.microsoft.com/default.aspx?scid=kb;en-us;q316675>
>The recommended solution(s) include:
>
>
>
>1. Configure the ASP.NET worker process to run under the SYSTEM
>account in the <processModel> section of the Machine.config file.
>
>2. For security reasons, Microsoft recommends that you enable impersonation
>on your ASP.NET application. This method works if the impersonated user
>has necessary permissions to the computer and the database that you are accessing.
>
>3. Grant read and write permissions for the "Everyone" group on the database
>and the database folder. This method is not safe; therefore, Microsoft does not
>recommend this method.
>
>
>
>Does anyone know what has to be done to "enable impersonation" on an ASP.NET application...
>
>>It is a known issue...
>>
>>Check out this KB article..
>>
>>
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q175168>>
-----------------------------------------
Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.comwww.prenia.comWeblog: blogs.prenia.com/cathi