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
More Related Contents:
- Catch multiple exceptions at once?
- The located assembly’s manifest definition does not match the assembly reference
- How to handle AccessViolationException
- ASP.NET Core Web API exception handling
- Cannot delete directory with Directory.Delete(path, true)
- Globally catch exceptions in a WPF application?
- Best practices for exception management in Java or C# [closed]
- Is there a reason Image.FromFile throws an OutOfMemoryException for an invalid image format?
- Anonymous method in Invoke call
- Why can’t yield return appear inside a try block with a catch?
- How does static field initialization work in C#?
- Why does C# limit the set of types that can be declared as const?
- How to compile .c file with OpenSSL includes?
- UnobservedTaskException being throw but it is handled by a TaskScheduler.UnobservedTaskException handler and a continuations OnlyOnFaulted handler [duplicate]
- Why does a bad password cause “Padding is invalid and cannot be removed”?
- C# compiler bug? Why doesn’t this implicit user-defined conversion compile?
- Show line number in exception handling
- Duck typing in the C# compiler
- ‘CompanyName.Foo’ is a ‘namespace’ but is used like a ‘type’
- How can I catch UniqueKey Violation exceptions with EF6 and SQL Server?
- How can I determine which exceptions can be thrown by a given method?
- Why is the binary output not equal when compiling again?
- System.Runtime.InteropServices.COMException (0x80040154): [closed]
- Why does this (null || !TryParse) conditional result in “use of unassigned local variable”?
- How to handle WCF exceptions (consolidated list with code)
- Best practice for error handling with ASP.NET Web API
- Dynamically changing Textbox’s AutoComplete List causes AccessViolationException, any advice?
- What are the causes and solutions of exception code c0000005 in mscorwks.dll?
- Example of “using exceptions to control flow” [closed]
- Is it possible to install a C# compiler without Visual Studio?