I have a ASP.NET application running on the server using ASP.NET membership provider. I would like to use the same database for my ASP.NET MVC3 appl开发者_如何转开发ication.
Do I only need to change the connection string in the Web.Config file? I tried that but no luck.
This depends on how is implemented your membership provider. You might have to create your own implementation of memmbership provider for the both applications to share the same data tables.
check this guide how to do this: http://www.danharman.net/2011/06/23/asp-net-mvc-3-custom-membership-provider-with-repository-injection/
精彩评论