Could not load file or assembly ... The parameter is incorrect
Solution 1:
Looks like a corrupted assembly being referenced.
Clear both:
the \bin folder of your project
the temp folder (should be
C:\Users\your_username\AppData\Local\Temp\Temporary ASP.NET Files
in windows 7)
and see if the error still happens
Solution 2:
Depending on if your are running X64 you might need to clean up a couple more spots. Just cleaning up my user directory was not enough.
- %TEMP%\Temporary ASP.NET Files
- C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files
- C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files
- C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files
- C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files
This list will grow as if you have other versions of the framework installed.