0

I am trying to implement Simple membership in my ASP.NET MVC 4 application targeting .NET Framework 4.0. I have referred many articles, but all showing it targeted for .NET Framework 4.5. Finally, I selected following article to implement this in my MVC application Decoupling Simplemembership from MVC application The only difference is that -

  1. I have .NET Framework 4.0 rather than 4.5
  2. I am consuming the SimpleMembership from WCF service rather than MVC.

I am getting following error: Could not load file or assembly 'Custom_SimpleMembership' or one of its dependencies. The system cannot find the file specified.

Following is what I have in WCF's config

<context type="SimpleSecurity.Repositories.SecurityContext,
Custom_SimpleMembership" disableDatabaseInitialization="false">
<databaseInitializer
type="SimpleSecurity.DropCreateSecurityDb, Custom_SimpleMembership" />
</context>

The assembly where I have implemented simplemembership is named as "Custom_SimpleMembership", and I have referenced it in my WCF project. Also the namespaces are correct (i.e. SimpleSecurity)

4

0 回答 0