The data protection operation was unsuccessful. This may have been caused by not having the user pro

Posted 叶长种-.Net软件工程师

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了The data protection operation was unsuccessful. This may have been caused by not having the user pro相关的知识,希望对你有一定的参考价值。

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

解决办法:

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

以上是关于The data protection operation was unsuccessful. This may have been caused by not having the user pro的主要内容,如果未能解决你的问题,请参考以下文章