AdvancedHMI Software

General Category => Support Questions => Topic started by: MrPike on October 21, 2020, 10:57:25 PM

Title: VS2019 error when opening project
Post by: MrPike 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
Title: Re: VS2019 error when opening project
Post by: Archie 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
Title: Re: VS2019 error when opening project
Post by: MrPike 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. 
Title: Re: VS2019 error when opening project
Post by: Archie 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?
Title: Re: VS2019 error when opening project
Post by: MrPike 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.