I have a asp.net 2.0 web form that I puts on our district website. The district web site use sharepoint sign in, but my webform is for everybody, no matter they logged in or not.
I followed the instruction encrypting my connection string fine. But It works for the anonymous users, since the application runs under that account for anonymouse user- they are setup in iis. And I also give it the access to the container file.
But if user login to our district site, they got the Parser Error Message: Failed to decrypt using provider 'RsaProtectedConfigurationProvider'. Error message from the provider: The RSA key container could not be opened. I know this is because I didn't grant all windows authenticated user access to the container, and I don't want to.
Is there a way solve the issue?