Custom Role Provider using DI ninject throwing error

前端 未结 3 514
悲哀的现实
悲哀的现实 2021-01-19 06:09

I setup a CustomRoleProver as:

public class CustomRoleProvider : RoleProvider
    {
        private readonly IRepository _repository;

        pu         


        
3条回答
  •  甜味超标
    2021-01-19 07:01

    Most likely you are using an invalid custom dependency resolver. Read https://github.com/ninject/ninject.web.mvc/wiki/MVC3 about how to use the Ninject.MVC3 extension instead.

提交回复
热议问题