سؤال

After attempting to upgrade an mvc4 project to mvc5 (following http://www.asp.net/mvc/tutorials/mvc-5/how-to-upgrade-an-aspnet-mvc-4-and-web-api-project-to-aspnet-mvc-5-and-web-api-2) I am getting the following exception:

Inheritance security rules violated by type: 'MvcMembership.TouchUserOnEachVisitFilter'

Is MVC5 compatible with SimpleMembershipProvider? What is the simplest solution to getting the project working with MVC5?

هل كانت مفيدة؟

المحلول

Yes. We were using SimpleMembershipProvider but the old MvcMembership that we were using before (and was not properly removed) was causing this error.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top