ASP.NET Identity 2 - UserManager.ConfirmEmail Fails In Production

大城市里の小女人 提交于 2019-12-02 11:09:48

OK, here are a couple of things to try.

If you have a different domain generates the cookie than does the confirmation, you need to share a machine key between then.

If you are using DpapiDataProtectionProvider() as your provider, you may have a problem in that your app pool name is unknown to you. You have to configure it differently at startup and then use the app pool name that gets set in your options .. somehow! I didnt have to do that because I am using aws and could just set the app pool name. You also have to set the app pool's LoadUserProfile setting to true.

Hope that helps!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!