Going from dev to prod with .net Membership Provider

六眼飞鱼酱① 提交于 2019-12-24 17:52:28

问题


I use SQLExpress on my dev machine. I just posted my application to a new prod server with SQL Server installed on it... I have restored my SQL DB in prod and i am successfully connecting to the DB with my connection string.

However, the membership provider seems to be failing to find my users in the DB.

Am i missing a step to configure or "activate" the membership provide on the prod server?

Any help would be great. Thank you.


回答1:


I have a strong feeling it has to do with the ApplicationName property. I think you need to set the ApplicationName for Membership, Roles, and Profile providers.

I think this article talks about the problem you are facing...

http://weblogs.asp.net/scottgu/archive/2006/04/22/Always-set-the-_2200_applicationName_2200_-property-when-configuring-ASP.NET-2.0-Membership-and-other-Providers.aspx



来源:https://stackoverflow.com/questions/8945705/going-from-dev-to-prod-with-net-membership-provider

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