组件激活器:无法实例化存储库","异常类型":"城堡.微内核.组件激活器.组件激活器异常



我在MVC5应用中使用温莎城堡。在将web服务部署到IIS之后,我得到以下错误

{"$id":"1","Message":"An error has occurred.","ExceptionMessage":"ComponentActivator: could not instantiate XXXRepository ."," ExceptionType":" castle . microkernel .ComponentActivator.ComponentActivator . componentactivatorexception "

如果我使用VS内置服务器运行上面的代码,它工作得很好。

添加EntityFramework.SQLServer.dll文件

即可解决上述问题

最新更新