Last day I have faced an error when I am compiling my ASP.net MVC application and this is for illegal shutdown of my computer.
Here is my Error: ” Could not load file or assembly ‘EntityFramework’ or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 “
Similar types of Error: “Could not load file or assembly ‘AjaxControlToolkit’ or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 “
How to Fix/ Solve this problem: Just do following.
1. Just go to following derictory
%SystemRoot%Microsoft.NETFrameworkversionNumberTemporary ASP.NET Files This is something LikeC:WindowsMicrosoft.NETFrameworkv2.0.50727Temporary ASP.NET Files Then Delete temporary asp.net files. If your .net version is 4 then you have to go following directory.C:WindowsMicrosoft.NETFrameworkv4.0.30319Temporary ASP.NET Files Then Compile you Application. Hope it will work now. If not Go to Step 2. 2. Go to following Directory %LocalAppData%TempTemporary ASP.NET Files Something like c:Users[Usuario]AppDataLocalTempTemporary ASP.NET Files Then delete all temporary file. Now you can run your application without problem!!!