One day I was developing my MVC app in Visual Studio 2010 and my computer crashed (flaky hardware - now fixed). But ever since then, in my app, whenever I have a view page or control editor up, the <%@ Page ... %> statement was squigley-underlined in blue with an tool-tip error message like:
/.../page.aspx: ASP.NET runtime error: Could not load file or assembly 'StructureMap, Version=188.8.131.52, Culture=neutral, PublicKeyToken=xxxxxxxxxxxx' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT:0x80070057 E_INVALIDARG))
I deleted and re-added the reference to StructureMap in the References in the solution explorer, deleted and re-copied the actual StructureMap DLL, but the error doesn't go-away. I deleted the output directories and rebuilt, but still have the problem.
The application still builds and runs okay, but while in the editor, though I continue to have IntelliSense for the HTML stuff, for any C# code inside <% %>'s, the IntelliSense is gone.
If I copy the application tree to another disk or directory, or rename the root directory to a different name, the problem goes away. But if I use the same name or disk, the problem appears.
Does anyone know how I can fix this?
Maybe it's some corrupted registry entry?
View Complete Post