Try our conversational search powered by Generative AI!

Error adding new controller


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=, 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.


Feb 04, 2015 18:19

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.

Feb 05, 2015 20:55

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.

Feb 06, 2015 11:59

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:

Feb 06, 2015 22:21

I had the same problem. I noticed I had the nuget package for EPiServer.Framework version, but the error was saying it could not find version After removing the EPiserver Nuget packages and re-installing them specifically with version, it worked again. 

Feb 09, 2015 13:42
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.