简体   繁体   中英

Custom Membership - Error in Web Site Administration Tool (Type is not resolved for member'')

I had to customize the class MembershipProvider for the user validation is done by email.

But when you open the Asp.net Web Site Administration Tool, the "Security" tab the following error:

There is a problem with your selected data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be caused by the role manager feature not being enabled. Click the button below to be redirected to a page where you can choose a new data store.

The following message may help in diagnosing the problem: Type is not resolved for member 'System.Data.Entity.ModelConfiguration.ModelValidationException,EntityFramework, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

Because the code is great and not to pollute the topic, I put on github.

Code:

https://gist.github.com/1146084

While I am still new to MVC 3 and EF 4.1, try adding a line in your web.config for EntityFramework assembly. It seems like I had this problem as well with my setup. I can't remember the exact line, but it's something like (I will look it up when I get home):

<add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM