I ran into a problem configuring a custom asp.net membership service.
I've got an annoying message on application startup when binding modules, here it is :
this.Bind<RoleProvider>()
.ToConstant(Roles.Providers["SQLiteRoleProvider"]);
this.Bind<MembershipProvider>()
.ToConstant(Membership.Providers["SQLiteMembershipProvider"]);
This method cannot be called during the application's pre-start initialization stage.
At
>System.Web.dll!System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()
in {System.Web.Compilation.BuildManager} System.Web.Compilation.BuildManager
I've check a bunch of blogs and SO question like
ASP.NET: This method cannot be called during the application's pre-start initialization stage
also but haven't any success.
Has anyone encountered this error message before?