AdvancedHMI Software
General Category => Support Questions => Topic started by: Archie on June 18, 2019, 08:33:40 PM
-
Visual Studio 2019 has a bug that will nearly every time show an error if opening a project that had a form in Design View open from the last session. My recommendation to prevent seeing this error and having to take action to fix it is to do this:
Tools->Options->Projects and Solutions->General
Remove the check for Reopen Documents on Solution Load
-
Thanks for the heads up Archie, I was just getting ready to post about this.
See image. Is this one of the errors you are referring to?
-
Yes, that is a typical error you get. The solution is to do Windows->Close All Documents then exit VS and re-open
The best I can tell is that VS is trying to display the form before everything is fully loaded. I sent the problem to Microsoft and their response was that it is not a priority to fix.
-
This is the report to Microsoft. If anyone has an account there, please up vote so they will give it more priority.
https://developercommunity.visualstudio.com/content/problem/540557/vs2019-winform-designer-code-error-on-opening-visu.html
-
This is the report to Microsoft. If anyone has an account there, please up vote so they will give it more priority.
https://developercommunity.visualstudio.com/content/problem/540557/vs2019-winform-designer-code-error-on-opening-visu.html
You got it! I also voted down the other guy, :=).
-
This is the report to Microsoft. If anyone has an account there, please up vote so they will give it more priority.
https://developercommunity.visualstudio.com/content/problem/540557/vs2019-winform-designer-code-error-on-opening-visu.html (https://developercommunity.visualstudio.com/content/problem/540557/vs2019-winform-designer-code-error-on-opening-visu.html)
Archie I added a comment but I don't know if that helps and I don't know what you mean by "Up Vote" Sorry I am not familiar with MS reporting at all. Are you referring to the Thumbs Up or is there something else to help increase priority?
-
Click the up vote as shown in the attached picture. If it gets enough up votes, maybe Microsoft will re-consider its priority.
-
I updated my VS2019 to the latest release and still have the same problem. Microsoft closed your report and disabled up votes so I posted a new report on the same issue.
https://developercommunity.visualstudio.com/content/problem/635700/visual-studio-launch-errors-vs2019.html
Click the up vote as shown in the attached picture. If it gets enough up votes, maybe Microsoft will re-consider its priority.
-
Hi Archie, Got a reply.. Take a look.. I have not responded et. I will create a new solution and attach it to the report later. https://developercommunity.visualstudio.com/content/problem/635700/visual-studio-launch-errors-vs2019.html (https://developercommunity.visualstudio.com/content/problem/635700/visual-studio-launch-errors-vs2019.html)
-
I upvoted your post. Hopefully they won't dump it as quick as they did mine.
Attached is the project I used to reproduce the problem. Feel free to use it. It seems to be an intermittent problem. It seems to reproduce most of the times when I double click the .sln file to open. If I open VS first, then use it to open the solution, it doesn't have the problem.
EDIT : It seems that once I get the error, it no longer matters how I open the solution and it will always give the error until I close the design view.
-
Archie I just responded to MS and attached your file. Thank you.
Now if you other ADVHMI users would help everyone by up-ticking this it would help hopefully, You owe it to Archie to do so, he has given us so much, a few moments of your time to create an account on MS so you can help is not asking very much and if you already have an account it will take you all of 5 seconds.
See:
https://developercommunity.visualstudio.com/content/problem/635700/visual-studio-launch-errors-vs2019.html
-
Archie I received another response from MS, I think it best for you to handle this since first, you created the test file, and second you are well versed in this area and I am not.
I sent you an email at your support email address.
Let me know.
I upvoted your post. Hopefully they won't dump it as quick as they did mine.
Attached is the project I used to reproduce the problem. Feel free to use it. It seems to be an intermittent problem. It seems to reproduce most of the times when I double click the .sln file to open. If I open VS first, then use it to open the solution, it doesn't have the problem.
EDIT : It seems that once I get the error, it no longer matters how I open the solution and it will always give the error until I close the design view.