VS 2013 giving The operation could not be completed. Invalid pointer on Razor views

razor, visual-studio, visual-studio-2015

Solution

For anyone arriving here after installing Visual Studio 2015 Update 1 and then updating some packages, here is what fixed it for me:

- Close Visual Studio

- Delete %LocalAppData%\Microsoft\VisualStudio\14.0\ComponentModelCache

- Re-open Visual Studio

I was getting this error message in VS2015 and the fix worked for me, so it seems to apply to 2013 and 2015.

I found the solution on another Stack Overflow question: Visual Studio 2015 Broken Razor Intellisense.

Problem

I installed VS 2015 version on my system. I already had Visual studio 2013 update 4 installed on my machine. But now, whenever I try to open any cshtml ( razor view) in VS 2013, I get following error: Microsoft Visual Studio The operation could not be completed. Invalid pointer OK Please suggest me its solution.

Original source

Related problems