Click here to Skip to main content
15,891,828 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
C#
I am getting below error when I try to run From :

c:\visual studio 2015\Projects\AppTest\src\AppTest

I am New to .Net and I am not able to figure it out. I tried updating webtools of VS2015 also still No luck. Any Suggestions?

What I have tried:

PM> dnx  gen controller -name BooksController --dataContext MyDBContext --model Book
Finding the generator 'controller'...
dnx : Could not load file or assembly 'AppTest' or one of its dependencies. General Exception (Exception from HRESULT: 0x80131500)
Posted

1 solution

Try with below options:

1. Check if you are referencing of assembly(AppTest.dll) properly and it must be correct version.
For example let's say you have an assembly called AppTest.dll which needs an old version of AppTest assembly, but it is added different one. Then it throws error "could not load assembly".

2. Remove the dll. Then clean the solution and Add the same DLLs. Restart your visual studio and build again.

3. Remove Temporary Files C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900