How to use custom Impersonation in Smartpart

Nov 6, 2009 at 2:22 PM

I am using the latest version of Smartpart v3 (return of smartpart) with MOSS 2007. Our application use custom ASP.Net user controls (*.ascx) run on SharePoint pages through Smartpart. When I set the impersonate=false in the web.config of the application then it works great. I am using a custom app pool for my site hosted under IIS 6.

The problem starts when I set impersonate=true in the web.config of the application. I am facing issues while accessing the ASP.Net usercontrols (*.ascx) from the file system of the server. How can we implement custom impersonation for accessing the usercontrols from the file system of the server.

Please help me out.

Thanks.
Prateek