Author Topic: VS2019 error when opening project  (Read 1284 times)

MrPike

  • Sr. Member
  • ****
  • Posts: 297
    • View Profile
VS2019 error when opening project
« on: October 21, 2020, 10:57:25 PM »
Hi AHMI, I am using VS2019 Community and started a fresh project recently.  I added two ModbusTCP drivers to the main form and named one "dvrMasterPLC".  I keep getting the attached error when I open the project.  When I go to the code it looks ok to me and I can simply comment the line out then uncomment it with no other changes and the error goes away.  Any idea what is causing this error?  Thank you

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: VS2019 error when opening project
« Reply #1 on: October 21, 2020, 11:02:05 PM »
This sounds like a VS quirk.

1) Window-> Close All Tabs
2) Exit VS
3) Re-open solution in VS
4) Rebuild All

If that does not make the error go away, the next thing to do is to a full clean of the solution

MrPike

  • Sr. Member
  • ****
  • Posts: 297
    • View Profile
Re: VS2019 error when opening project
« Reply #2 on: October 22, 2020, 08:39:44 AM »
Thanks Archie, it seems if I close all the windows before exiting then reopen the project I do not get the error. 

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: VS2019 error when opening project
« Reply #3 on: October 22, 2020, 09:00:35 AM »
Here is a setting that will close all of the documents automatically:

https://www.advancedhmi.com/forum/index.php?topic=2445

I have noticed that I no longer get these errors even when having a Design View Open, so MS must have fixed it. I always do the updates for CS. Is VS giving you any notice about a version update?
« Last Edit: October 22, 2020, 09:02:55 AM by Archie »

MrPike

  • Sr. Member
  • ****
  • Posts: 297
    • View Profile
Re: VS2019 error when opening project
« Reply #4 on: October 22, 2020, 10:26:25 PM »
Thanks Archie, I made the changes you recommended and so far so good.  VS has not bugged me about any updates so I think it is set to automatically install updates.