I had this problem a few days ago and I fixed it by deleting obj/Debug folder. Cleaning the project also works. I have no idea about the cause of the issue, though.
See Joe Cartano’s answer for a more permanent solution.
More Related Contents:
- I’m getting the “missing a using directive or assembly reference” and no clue what’s going wrong
- .csproj multiple hint paths for an assembly
- Error Message is not clear to me
- MVC5 Razor html.dropdownlistfor set selected when value is in array
- How to use signalr in Android
- Passing data between different controller action methods
- Is Task.Run considered bad practice in an ASP .NET MVC Web Application?
- ViewModels in MVC / MVVM / Separation of layers- best practices?
- How do you multi-target a .NET Core class library with csproj?
- How does MVC 4 List Model Binding work?
- Passing data to Master Page in ASP.NET MVC
- ASP.NET MVC DropDownListFor with model of type List
- ASP .NET MVC Disable Client Side Validation at Per-Field Level
- Is it secure to store passwords in cookies?
- ASP.NET MVC 4 C# HttpPostedFileBase, How do I Store File
- Can I set LARGEADDRESSAWARE from within Visual Studio?
- MVC 4 how pass data correctly from controller to view
- How to extend IdentityUser with custom property
- How to know the selected checkboxes from within the HttpPost Create action method?
- Export Model to DataTable
- “this” in function parameter
- Method ‘RouteCollection.get_AppendTrailingSlash’ not found when using Razor Url helpers in ASP.NET MVC 5 Mono
- How do I set `OutputPath` in a Visual Studio 2017 project (new .csproj file format) without the target framework cluttering the resolved path?
- Set Default DateTime Format c#
- Entities VS Domain Models VS View Models
- ASP.NET Web API and [Serializable] class
- How to use SqlClient in ASP.NET Core?
- How can I maintain ModelState with RedirectToAction?
- Click an HTML link inside a WebBrowser Control
- Prevent Winforms Designer from Generating Property Values for Inherited Controls