>>>Hi
>>>
>>>I'm trying to get access to some foxpro data across a a network on a web site.
>>>
>>>The anonymous account access for the web site is set to IUSR_machine name but when I look at the permission for the shared drive where the data I want to access is the IUSR account is not one that I can give permissions to.
>>>
>>>Any ideas how I can get read access to that data ?
>>>
>>>Thanks
>>
>>Assuming the server is IIS?
>>
>>Simplest option, if available, is to change the account on the application pool.
>>Failing that look at one of the ways of using user impersonation :
http://support.microsoft.com/kb/306158>
>Thanks Viv
>
>Ummhh I forgot to mention its classic asp
Don't think that makes any difference. Example of impersonating a user in ASP here :
http://support.microsoft.com/kb/248187. It's VB6 but you could do that same thing with C# and COM. But you can't, of course, use the web.config approach.
If you have access to the server and can change the relevant application pool account that's obviously the simplest solution.....
UPDATE : Here's a C# version of the above impersonation :
http://p2p.wrox.com/classic-asp-basics/77007-solution-impersonation-classic-asp.html