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,

在iis7.0布署网站后运行的错误,大致意思是:数据保护操作是不成功的。可能是由于没有当前线程的用户加载用户配置文件的导致

解决办法:

先为自己的网站新建一个应用程序池,然后新建的应用程序池上右键->高级设置->进程模型-加载用户配置文件,将其设置成true就可以了

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-25
  • 2022-02-19
  • 2022-12-23
  • 2022-12-23
  • 2021-09-27
猜你喜欢
  • 2022-12-23
  • 2021-12-28
  • 2021-12-10
  • 2022-02-11
  • 2021-07-05
  • 2021-12-22
  • 2021-12-24
相关资源
相似解决方案