PM give me ERROR: Type is not resolved for member..on any migration command

asp.net-mvc c# entity-framework-6

Question

I was run a downloaded application from the internet. If I used migration in PM console, I got this error.
I spent a lot of time searching for a solution.

I found Microsoft's reference of common errors.

http://msdn.microsoft.com/cs-cz/data/jj618307.aspx

it say

ERROR: Type is not resolved for member 'System.Data.Entity.Migrations.Design.ToolingFacade+UpdateRunner,EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

NOTICE: This error can be caused by specifying an incorrect startup directory. This must be the location of migrate.exe

Popular Answer

solution: check your application (directory) path if not contains &, because it is reserved and throw this error.
I copied my application to another path and its working fine.
This post probably can help and save time to someone, who has same problem.




Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Is this KB legal? Yes, learn why
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Is this KB legal? Yes, learn why