I have MVC Razor project with service libraries as separate project. For Dependency Injection, I have used Unity Framework. Everything works fine except when I do any change in Razor view, the Unity is throwing the error "The current type, IUserService, is an interface and cannot be constructed. Are you missing a type mapping? "
Only when I recompile the web project or Build the Service project it works again. It has become tedious for development because for every change in cshtml file, I need to recompile the MVC project. Happens for just adding text also.
How I will fix this issue?