Author Topic: Published solution errors when opening mainform  (Read 2018 times)

larryhts

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
Published solution errors when opening mainform
« on: June 01, 2018, 09:44:32 AM »
I have a published solution that I was going to edit to add one more data point and when I open it in VB it opens fine but when I try to open the main form designer it gives me 66 errors. Its been running for over a month. Nothing changed on the files?????????  Not sure what to do at this point.?

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: Published solution errors when opening mainform
« Reply #1 on: June 01, 2018, 10:42:53 AM »
Can you give an example of some of the errors?

bachphi

  • Hero Member
  • *****
  • Posts: 642
    • View Profile
Re: Published solution errors when opening mainform
« Reply #2 on: June 01, 2018, 11:04:44 AM »
Do you happen to upgrade or use a different version of visual studio?
===================================================
This is NOT alt.read.my.mind.
No such thing is sh^t-for-brains unless you are posting to alt.read.my.mind.
===================================================

larryhts

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
Re: Published solution errors when opening mainform
« Reply #3 on: June 01, 2018, 11:10:15 AM »
Screen shots of errors trying to open MainForm No changes or updates???

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: Published solution errors when opening mainform
« Reply #4 on: June 01, 2018, 11:13:23 AM »
Can you post a screen shot of what you see in Solution Explorer? Did you try to Clean Solution and Rebuild?

larryhts

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
Re: Published solution errors when opening mainform
« Reply #5 on: June 01, 2018, 11:25:05 AM »
Archie, I did do the clean and rebuild. By that I mean I deleted the bin and obj files.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: Published solution errors when opening mainform
« Reply #6 on: June 01, 2018, 12:05:06 PM »
My first suspicion was the AdvancedHMIControls project was not being recognized, but that does not seem to be the case.

My next suspicion is that something happened to the references. Expand down the references in the AdvancedHMI and AdvancedHMIControls project.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: Published solution errors when opening mainform
« Reply #7 on: June 01, 2018, 12:16:13 PM »
Did you by any chance use the Publish function with this project? If so, then we need to try to back out some things. Start with deleting the temporary key file.

larryhts

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
Re: Published solution errors when opening mainform
« Reply #8 on: June 01, 2018, 12:28:25 PM »
yes I did use the publish in VB??????  How should I publish?

larryhts

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
Re: Published solution errors when opening mainform
« Reply #9 on: June 01, 2018, 12:36:31 PM »
sorry about that

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: Published solution errors when opening mainform
« Reply #10 on: June 01, 2018, 12:43:57 PM »
This is the recommended method of deployment:

https://www.advancedhmi.com/forum/index.php?topic=14.msg37#msg37

I classify the Publish tool as "evil" because you will most certainly discover one of its quirks the hard way. In your case I believe this is the expiration of your temporary key. Deleting the key may resolve it. If not you will need to generate another key that will give you another year.

larryhts

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
Re: Published solution errors when opening mainform
« Reply #11 on: June 01, 2018, 01:06:42 PM »
Archie, What is the "temporary key" and where would I find It.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: Published solution errors when opening mainform
« Reply #12 on: June 01, 2018, 02:30:29 PM »
Archie, What is the "temporary key" and where would I find It.
In Solution Explorer under the AdvancedHMI project.

larryhts

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
Re: Published solution errors when opening mainform
« Reply #13 on: June 01, 2018, 02:47:12 PM »
Archie,  How should I go about fixing this app as we are the end user. I have 2 of these that I used the publish on. I will be using the other way from now on.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: Published solution errors when opening mainform
« Reply #14 on: June 01, 2018, 03:03:12 PM »
In all honesty, I really don't know how to completely undo all of the changes that Publish does to a project. Many years ago after falling into the quirks of Publish, I never used it again.

If you right click the AdvancedHMI project and go to Properties, the security tab and Publish tab may have some settings like "Enable Click Once Security" that needs to be unchecked.