Have a MVC site created using the EPi extensions for Visual Studio. When I right click on the Controllers folder and select Add -> Controller, I get an erro stating the following:
"Could not load file or assembly 'EPiServer.Framework, Version=18.104.22.168, Culture=neutral, Public Ket Token=8fe83dea738b45b7' or one of its dependencies. The system cannot find the file specified."
I have double checked my references and the dll is listed and exists in the location from where it is being referenced. Copy Local is set to true, and the file exists in the bin directory of the project.
I have a default AlloyMVC solution running 7.19.2 and I can't reproduce the error. Maybe trying doing a "Clean" on your solution will help fix the references.
I tried that and had no luck. I can go to Add and select a standard MVBC controller. The problem only occurs when I try to add a EPiServer controller.
Very odd since I can create epi controller just fine on my default site. Only other thing I could think of is to remove all dlls from site root bin (move to backup folder) and then in your solution do a rebuild.
I see something similiar here: http://stackoverflow.com/questions/8524423/could-not-load-file-or-assembly-hresult-0x80131515-when-adding-controller-to-m
I had the same problem. I noticed I had the nuget package for EPiServer.Framework version 22.214.171.124, but the error was saying it could not find version 126.96.36.199. After removing the EPiserver Nuget packages and re-installing them specifically with version 188.8.131.52, it worked again.