S
Sachin Chavan
Hi,
I am using DPAPI for encrypting and decrypting my connection string.
What i hv did is created a dll assembly which calls win32 API's
CryptProtectData & CryptUnprotectData and in turn windows app and web app
calls this dll assembly for encrypting and decrypting data respectively.
Now, when i developed code and tested it on WinXP SP2 everything works
perfectly fine.
But, when i deployed these things to production server running windows 2003,
what happened is I was able to encrypt the data with windows app but my web
app started giving Access denied error for the data protection dll which i
created for encrytion 'n' decryption.
Surely i guess the problem is that ASP.Net user is not having privilage to
run the unmanged code and that is causing the problem. Also impersonation is
set to true in my web.config so i guess the dll is running under the Acess
permission of the guest user.
Please guide me out this problem.
Thanks
Sachin.
I am using DPAPI for encrypting and decrypting my connection string.
What i hv did is created a dll assembly which calls win32 API's
CryptProtectData & CryptUnprotectData and in turn windows app and web app
calls this dll assembly for encrypting and decrypting data respectively.
Now, when i developed code and tested it on WinXP SP2 everything works
perfectly fine.
But, when i deployed these things to production server running windows 2003,
what happened is I was able to encrypt the data with windows app but my web
app started giving Access denied error for the data protection dll which i
created for encrytion 'n' decryption.
Surely i guess the problem is that ASP.Net user is not having privilage to
run the unmanged code and that is causing the problem. Also impersonation is
set to true in my web.config so i guess the dll is running under the Acess
permission of the guest user.
Please guide me out this problem.
Thanks
Sachin.