0

I have the following situation:

I have a few aspx pages, but some pages' designer files do not update when adding controls, but some do. I am using git, and this problem exists only on 1 repository, not any others.

I cannot 'Convert to web application'.

I have tried:

  • View page in designer > Right click > Refresh.
  • Cleaning, building and rebuilding project/solution.
  • Unload project > Reload project.
  • Changing CodeBehind to CodeFile > Build > Change back to CodeBehind
  • Even tried manually adding to the designer from another.

Additional things that might help:

  • I do not have any intellisense on the pages that do not update.
  • There is no outlining (Collapse/Expand of code) on the pages.
6
  • Add some screenshots of your Visual Studio and the error you get when you try to build, that might give us some clues!
    – NicoTek
    Commented Jun 3, 2021 at 17:44
  • "I cannot 'Convert to web application'." Don't designer files only exist in web applications? I have web sites without designer files.
    – wazz
    Commented Jun 3, 2021 at 20:41
  • @NicoTek I don't get any errors weirdly, I just cannot access any new controls in code behind Commented Jun 4, 2021 at 5:17
  • @wazz I put that there because from almost every post I've looked at, that's usually one of the solutions Commented Jun 4, 2021 at 5:18
  • On your markup cut everything out, compile, and then paste it and compile again, see if that fixes it. It kinda sounds like your designer file and you code behind might be on a different class or namespace
    – NicoTek
    Commented Jun 4, 2021 at 12:48

1 Answer 1

0

Found the answer (For now), Visual Studio update version 16.10.0 is buggy.

https://developercommunity.visualstudio.com/t/Aspx-files-broken-after-1610-update/1435497

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.