guiState element not closed exception @version 5.8 startup

Posts   
 
    
gvb
User
Posts: 19
Joined: 09-Nov-2014
# Posted on: 06-Mar-2021 12:06:15   

Hi support,

I did a clean install of version 5.8, but it fails to start. See the exception information below. I'm not able to find a xml file (in the Solutions Design (sub)folders) wich contains the text 'guiState'.

Unfortunately I uninstalled my version 5.7 first. Because of the problem with version 5.8 I did a reinstall of 5.7, but that version has the same issue now.. Open with Visual Studio integration also fails (VS2019 16.9.0)

Can you help me further?

Best regards, Goos van Beek.

Windows 10 Enterprise 20H2

Exception information.

LLBLGen Pro version: v5.8. Build: 5.8.0

Exception details:

Message: Unexpected end of file has occurred. The following elements are not closed: guiState. Line 1, position 3073. Source: System.Xml Stack trace: at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.ThrowUnclosedElements() at System.Xml.XmlTextReaderImpl.ParseAttributes() at System.Xml.XmlTextReaderImpl.ParseElement() at System.Xml.XmlTextReaderImpl.ParseElementContent() at SD.LLBLGen.Pro.Gui.Classes.LoggedUIState.Load() at SD.LLBLGen.Pro.Gui.Program.DoApplicationStart(String appStartPath, String fileToLoad, Boolean startedFromVSNet) at SD.LLBLGen.Pro.Gui.Program.Main(String[] args)

Inner exception: <null> To fix this, open the file 'System.Xml.XmlException: Unexpected end of file has occurred. The following elements are not closed: guiState. Line 1, position 3073. at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.ThrowUnclosedElements() at System.Xml.XmlTextReaderImpl.ParseAttributes() at System.Xml.XmlTextReaderImpl.ParseElement() at System.Xml.XmlTextReaderImpl.ParseElementContent() at SD.LLBLGen.Pro.Gui.Classes.LoggedUIState.Load() at SD.LLBLGen.Pro.Gui.Program.DoApplicationStart(String appStartPath, String fileToLoad, Boolean startedFromVSNet) at SD.LLBLGen.Pro.Gui.Program.Main(String[] args)' into a text editor and manually correct the XML error.

Exception information.

LLBLGen Pro version: v5.7. Build: 5.7.3

Exception details:

Message: Unexpected end of file has occurred. The following elements are not closed: guiState. Line 1, position 3073. Source: System.Xml Stack trace: at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.ThrowUnclosedElements() at System.Xml.XmlTextReaderImpl.ParseAttributes() at System.Xml.XmlTextReaderImpl.ParseElement() at System.Xml.XmlTextReaderImpl.ParseElementContent() at SD.LLBLGen.Pro.Gui.Classes.LoggedUIState.Load() at SD.LLBLGen.Pro.Gui.Program.DoApplicationStart(String appStartPath, String fileToLoad, Boolean startedFromVSNet) at SD.LLBLGen.Pro.Gui.Program.Main(String[] args)

Inner exception: <null> To fix this, open the file 'System.Xml.XmlException: Unexpected end of file has occurred. The following elements are not closed: guiState. Line 1, position 3073. at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.ThrowUnclosedElements() at System.Xml.XmlTextReaderImpl.ParseAttributes() at System.Xml.XmlTextReaderImpl.ParseElement() at System.Xml.XmlTextReaderImpl.ParseElementContent() at SD.LLBLGen.Pro.Gui.Classes.LoggedUIState.Load() at SD.LLBLGen.Pro.Gui.Program.DoApplicationStart(String appStartPath, String fileToLoad, Boolean startedFromVSNet) at SD.LLBLGen.Pro.Gui.Program.Main(String[] args)' into a text editor and manually correct the XML error.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 07-Mar-2021 09:54:03   

Hmm. File is in C:\Users\<your user name>\AppData\Roaming\LLBLGen Pro

Could you create a copy of the files for 5.7 and 5.8 (it's in the filename) in a different folder and then remove the ones for 5.7 and 5.8 (it's in the filename) and try again? If the designer starts again, please attach the guistate58.xml here so we can have a look. I have the feeling it's something to do with the recent files...

The designer will recreate the files, they contain Gui state information and the most recent project files you opened.

Frans Bouma | Lead developer LLBLGen Pro
gvb
User
Posts: 19
Joined: 09-Nov-2014
# Posted on: 07-Mar-2021 10:46:06   

Hi Otis,

Removing the file solved the problem. For some reason the file was truncated and missed a closing tag. See the last line of the file below. <LogViewerCheckboxState Context="0" State="1" /><LogViewerCheckboxState Context="6" Same for both files (5.7 and 5.8 )

Thanks for your help!

Regards, Goos van Beek.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 07-Mar-2021 10:54:15   

Hmm, that's strange indeed. Keep us posted if you run into this again.

Frans Bouma | Lead developer LLBLGen Pro