我在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文件