Q : I am receiving exception with the following message: The data protection operation was unsuccessful. This may have been caused by not having the user profile loaded for the current thread's user context, which may be the case when the
Q: I am receiving exception with the following message:
The data protection operation was unsuccessful. This may have been caused by not having the user profile loaded for the current thread's user context, which may be the case when the thread is impersonating.
A: Configure IIS to load user profile. To configure IIS to load user profile follow these steps:
After this change, I solved the error above, but I encountered another error which is Application Pool shut down automatically. And I checked the error log, here is the error message:
Windows cannot log you on because your profile cannot be loaded. Check that you are connected to the network, and that your network is functioning correctly.