3

I keep getting below message when I open any cshtml/aspx/ascx file in visual studio. I thought it is for any particular solution but it is happening for any solution(website) i open in visual studio. Not able to figure out , why this pop up message is showing.

enter image description here

I am using visual studio 2013 and I have not updated or changed any settings from last few days. Please help!!!!

techV
  • 935
  • 3
  • 23
  • 41
  • I had same error. Error popped whenever I tried to paste code. It started after I used TFS Power Tools to unshelf a shelfset to a different branch. http://stackoverflow.com/questions/16303506/unshelve-to-another-branch . I'm not 100% sure if it was caused by the action of installing tfpt, or the unshelf action. – Walter Stabosz Jan 16 '17 at 18:53

3 Answers3

6
  1. Close Visual Studio
  2. Delete the projectName.csproj.user file from the project folder
  3. Open the solution... message should be gone

Also try updating visual studio

Gertjan Brouwer
  • 996
  • 1
  • 12
  • 35
0

You could try disabling all extensions and see if that works. If it does re-enable one at a time to find the culprit.

Paul Swetz
  • 2,234
  • 1
  • 11
  • 28
0

Make sure your ".vb", ".c#" codefiles exist.

If that did not solve the problem, make sure that your class name in the file is the same as defined in line one of your aspx file:

ASPX file:

.VB or .C# File:

 Public Class MyTestClassFile
Ibo
  • 4,081
  • 6
  • 45
  • 65