1

I am working on an asp.net project in web forms. When i working on the project yesterday power went out and the system went to improper shutdown.

After that today i tried to open my solution, the .cs file is not opening. VS shows error as

The Operation Could not be completed. Invalid Pointer

And the .cs file was opened on notepad as empty. I am not sure what is the issue.

Could any one help me to fix this issue.

Thanks in advance.

Soner Gönül
  • 97,193
  • 102
  • 206
  • 364
Gopinath
  • 246
  • 1
  • 4
  • 16
  • You might have a look at my answer regarding to this problem on **[Visual Studio Hosting Process and “The operation could not be completed”](https://stackoverflow.com/questions/33338/visual-studio-hosting-process-and-the-operation-could-not-be-completed/50497064#50497064)**. – Murat Yıldız May 23 '18 at 20:36

4 Answers4

11

Resolved this problem by clearing this folder:

c:\Users\<myusername>\AppData\Local\Microsoft\VisualStudio\14.0\ComponentModelCache
Vasfed
  • 18,013
  • 10
  • 47
  • 53
Daniel
  • 129
  • 1
  • 4
1

Check those links: http://qualapps.blogspot.com.es/2010/07/invalid-pointer-error-in-visual-studio.html

The Operation could not be completed: Invalid Pointer

Hope it helps you.

Community
  • 1
  • 1
Jaime García Pérez
  • 953
  • 1
  • 10
  • 16
0

I have the same error and I have tried the following with NO SUCCES

  • Rename %ProgramFiles%\Common Files\Microsoft Shared\VS7DEBUG to something else. I changed it to VS7DEBUG1.
  • Delete the content of %LocalAppData%\Microsoft\VisualStudio\14.0\ComponentModelCache
  • Installed Servicing Update (KB3110221)
  • C:\Program Files (x86)\Microsoft Visual Studio14.0\Common7\IDE\devenv.exe /resetuserdata
  • C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe /resetsettings

I finally uninstalled visual studio 2015. Restarted and installed it again and then it worked.

Vasfed
  • 18,013
  • 10
  • 47
  • 53
Benjamin
  • 333
  • 1
  • 3
  • 14
0

Please clear this folder: %LocalAppData%\Microsoft\VisualStudio\14.0\ComponentModelCache