+13
Fixed

Upgrade v19.5.x Unhandled Exception

TechCare 9 months ago updated by Eagle 🌊🦅 8 months ago 39

Hi again. In the last 4 or 5 years that I have been using ScreenConnect the upgrades have been smooth and brilliant. But with the broken "stable" version v19.4.x I had to upgrade to v19.5.x to fix the mobile app issue.


Server details:

Ubuntu 18.04.3 LTS

Latest packages installed of everything stock

Nginx reverse proxy (can send config files, but that isn't the problem here)

When I upgrade (even now with the latest variant of v19.5.x) it shows the following:

Unhandled Exception:
System.Xml.Xsl.XslTransformException: Attribute and namespace nodes cannot be added to the parent element after a text, comment, pi, or sub-element node has already been added.
at System.Xml.Xsl.Runtime.XmlQueryOutput.ThrowInvalidStateError (System.Xml.XPath.XPathNodeType constructorType) [0x000cf] in :0
at System.Xml.Xsl.Runtime.XmlQueryOutput.ConstructInEnumAttrs (System.Xml.XPath.XPathNodeType rootType) [0x0001f] in :0
at System.Xml.Xsl.Runtime.XmlQueryOutput.WriteStartAttribute (System.String prefix, System.String localName, System.String ns) [0x0001e] in :0
at System.Xml.Xsl.Runtime.XmlQueryOutput.WriteStartAttributeLocalName (System.String localName) [0x00000] in :0
at (wrapper dynamic-method) System.Object.(System.Xml.Xsl.Runtime.XmlQueryRuntime,System.Xml.XPath.XPathNavigator)
at (wrapper dynamic-method) System.Object.(System.Xml.Xsl.Runtime.XmlQueryRuntime,System.Xml.XPath.XPathNavigator)
at (wrapper dynamic-method) System.Object.(System.Xml.Xsl.Runtime.XmlQueryRuntime,System.Xml.XPath.XPathNavigator)
at (wrapper dynamic-method) System.Object.(System.Xml.Xsl.Runtime.XmlQueryRuntime,System.Xml.XPath.XPathNavigator)
at (wrapper dynamic-method) System.Object.Root(System.Xml.Xsl.Runtime.XmlQueryRuntime)
at (wrapper dynamic-method) System.Object.Execute(System.Xml.Xsl.Runtime.XmlQueryRuntime)
at System.Xml.Xsl.XmlILCommand.Execute (System.Object defaultDocument, System.Xml.XmlResolver dataSources, System.Xml.Xsl.XsltArgumentList argumentList, System.Xml.Xsl.Runtime.XmlSequenceWriter results) [0x00020] in :0
at System.Xml.Xsl.XmlILCommand.Execute (System.Object defaultDocument, System.Xml.XmlResolver dataSources, System.Xml.Xsl.XsltArgumentList argumentList, System.Xml.XmlWriter writer) [0x0004f] in :0
at System.Xml.Xsl.XslCompiledTransform.Transform (System.Xml.XmlReader input, System.Xml.Xsl.XsltArgumentList arguments, System.Xml.XmlWriter results, System.Xml.XmlResolver documentResolver) [0x0000d] in :0
at System.Xml.Xsl.XslCompiledTransform.Transform (System.String inputUri, System.Xml.Xsl.XsltArgumentList arguments, System.IO.Stream results) [0x00029] in :0
at Xsl.Program.Main (System.String[] args) [0x0007b] in :0
[ERROR] FATAL UNHANDLED EXCEPTION: System.Xml.Xsl.XslTransformException: Attribute and namespace nodes cannot be added to the parent element after a text, comment, pi, or sub-element node has already been added.
at System.Xml.Xsl.Runtime.XmlQueryOutput.ThrowInvalidStateError (System.Xml.XPath.XPathNodeType constructorType) [0x000cf] in :0
at System.Xml.Xsl.Runtime.XmlQueryOutput.ConstructInEnumAttrs (System.Xml.XPath.XPathNodeType rootType) [0x0001f] in :0
at System.Xml.Xsl.Runtime.XmlQueryOutput.WriteStartAttribute (System.String prefix, System.String localName, System.String ns) [0x0001e] in :0
at System.Xml.Xsl.Runtime.XmlQueryOutput.WriteStartAttributeLocalName (System.String localName) [0x00000] in :0
at (wrapper dynamic-method) System.Object.(System.Xml.Xsl.Runtime.XmlQueryRuntime,System.Xml.XPath.XPathNavigator)
at (wrapper dynamic-method) System.Object.(System.Xml.Xsl.Runtime.XmlQueryRuntime,System.Xml.XPath.XPathNavigator)
at (wrapper dynamic-method) System.Object.(System.Xml.Xsl.Runtime.XmlQueryRuntime,System.Xml.XPath.XPathNavigator)
at (wrapper dynamic-method) System.Object.(System.Xml.Xsl.Runtime.XmlQueryRuntime,System.Xml.XPath.XPathNavigator)
at (wrapper dynamic-method) System.Object.Root(System.Xml.Xsl.Runtime.XmlQueryRuntime)
at (wrapper dynamic-method) System.Object.Execute(System.Xml.Xsl.Runtime.XmlQueryRuntime)
at System.Xml.Xsl.XmlILCommand.Execute (System.Object defaultDocument, System.Xml.XmlResolver dataSources, System.Xml.Xsl.XsltArgumentList argumentList, System.Xml.Xsl.Runtime.XmlSequenceWriter results) [0x00020] in :0
at System.Xml.Xsl.XmlILCommand.Execute (System.Object defaultDocument, System.Xml.XmlResolver dataSources, System.Xml.Xsl.XsltArgumentList argumentList, System.Xml.XmlWriter writer) [0x0004f] in :0
at System.Xml.Xsl.XslCompiledTransform.Transform (System.Xml.XmlReader input, System.Xml.Xsl.XsltArgumentList arguments, System.Xml.XmlWriter results, System.Xml.XmlResolver documentResolver) [0x0000d] in :0
at System.Xml.Xsl.XslCompiledTransform.Transform (System.String inputUri, System.Xml.Xsl.XsltArgumentList arguments, System.IO.Stream results) [0x00029] in :0
at Xsl.Program.Main (System.String[] args) [0x0007b] in :0

ConnectWise Control Version:
19.5
Server Affected:
Host Client Affected:
Guest Client Affected:
+1

Same, due to the horrific and ongoing issues we've had with v19.4, I decided to try v19.5 and got this exact error message.

Server is CentOS 7 and yes it uses HAProxy.

Server appears to be active, but it draws some of the graphic page elements and cannot provide list views of the content. CPU usage very high, I let it churn for about an hour before rolling back the upgrade. 

I don't know if this is a cause to the above mentioned issue but now any new support downloads fail with "Application validation error"

ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of https://PATH_TO_SERVER/bin/hash.blahblahblah resulted in exception. Following failure messages were detected:
+ File, ScreenConnect.Core.pdb, has a different computed hash than specified in manifest.

That's a new bug (and unrelated to the Linux installer error messages) that we just started working on.

A workaround is to use ClickOnceBootstrap rather than ClickOnceDirect. (Not ideal, but it does work.)

+1

Same issue here when upgrading! and we cant seem to downgrade please advice !

@Eric Davis- sorry this isn't enough detail for me to understand- where do I find 'ClickOnceBootstrap' ?

oops sorry I see you were replying to TechCare, never mind

Same issue here

Cannot even function after the upgrade

If you follow the upgrade guides you will have made a copy of the old /Screenconnect folder before taking any action. I also snapshot the VM. It's pretty easy to revert if you do these things, especially as v19.5 is not marked stable. 
I understand this isn't much help to some so please accept my apologies 

+1

V19.5 IS marked stable. We always wait some time to upgrade. Its marked stable on the downloads and also the output stream page. 

I got it finaly working again after copying some folders and web.config from the old directory to a new fresh install dir because you cant seem to downgrade using the .installer.sh script.

I also looked for a clear downgrade guide for linux on premise version but cant seem to find anything?

Can confirm it is definitely marked as stable, though i have to admit i was also guilty of installing without doing a manual backup first - all these years of upgrading and i've never noticed the "backup" it mentions in the upgrade process is only of the config files.. my bad.

@M Stroeve can i ask which files specifically you had to bring across to get 19.4 up and running again?

+1

i renamed the failed existing screenconnect folder to screenconnect.old in the /opt folder.
Did a fresh 19.4 install and:

cp -R App_ClientConfig/ ../screenconnect

cp -R App_Extensions/ ../screenconnect

cp -R App_Data/ ../screenconnect

cp web.config ../screenconnect

I'am not sure if i mis anything but it works again and i can see our custom extensions. 

It would be nice if techsupport would post a definitive guide for downgrading for future reference.

I'm extremely tempted to try this, but with version 19.3 because it was working just fine. However the questions I have to this are:

1) What happens to the unattended clients? Their version will be higher then the server version. Can I just mass select and reinstall?

2) Does this break anything? (further I mean :p)

ok at the risk of making more enemies here it wasn't marked stable for me last night- Yep-


I have VERY different expectations when I install stable software- this does not meet those requirements
Just in case this helps anyone- I cp the opt/Screenconnect folder to /Documents before upgrading. If something goes wrong I stop the service, delete the new folder and put the old one back and reboot.

+1

@adam.connor yep, i'll be adding that step to my upgrade workflow from here on out! 


It's frustrating that the "Released" date on the website doesn't reflect when it was actually made available as Stable to users.. I normally wouldn't upgrade software on the server with something less than 24 hours old for precisely this reason, but when something has supposedly been released for over a week i figure it would have been pulled by now if it had a showstopper like this.

+1

what I find extremely frustrating is this statement:

The high CPU usage/inaccessibility issue after upgrading to 19.5 isn't directly related to the thread topic, but here's a workaround:

In web.config, change "127.0.0.1" to "localhost" (there should be two references, under system.servicemodel toward the end of the file).

If this doesn't work, let me know. Should have this fixed in the installer soon.

Thanks, just upgraded to the latest version and had this issue (surprised it's not fixed in the installer yet). Fortunately found this post and this did indeed fix it for me.

Server details:

Ubuntu 16.04.6 LTS in Digital Ocean VPS

Latest packages installed of everything stock 

No changes in web.config and nginx.conf

Nginx reverse proxy

I took a snapshot before upgrading to this "stable" v19.5.25995.7276 and I got the Unhandled Exception error.

Today I saw this below after checking for the latest stable version and decided to give it another try and the same problem. I had to restore my snapshot again.

same here bro
i have been waiting on updates for about a day.

If i recall in another thread, something appears to be wrong with the installer in the

way it transforms the config files and it is kinda broken.

another link describing pretty much the same issue we are all having.

https://control.product.connectwise.com/communities/6/topics/2738-bad-request-invalid-host-after-upgrading-to-cwc-v195

this is the second time I have this problem, 19.4.25759.7247 is the one I'm using now, that one cured it but the version before /i don't remember the v number/ had it also.

ya, i know but 19.5 should work by default.
waiting on an updated installer

Latest update and still the problem remains. v19.5.26030.7282

i believe i read somewhere where the .net version needs to be updated
1. how do we tell what current version we have

2. how to update this, since this is using linux/mono?

I too had same problem with 7282

+1

This should be fixed for good in the next build. If it isn't available today, it should be available tomorrow. (Barring any show-stoppers. Want to make extra sure this doesn't cause even more problems.)

Thanks for the quick reply Eric

This sounds like good news

+3

Hi Eric. Is something coming still?

Eric at the risk of sounding picky, the 'release notes' state that the installer will check if .net needs updating.

It would be nice if the docs covered what happens in both scenarios. 
ie. we need to know if extra work is required before we're knee deep in the upgrade...

I think the latest stable version should have fixed the issue.

This latest stable release ScreenConnect_19.5.26194.7292 still didn't fix the problem.

I just installed v19.5.26194.7292, the good news is that the setup xml error is gone, everything seems ok, the bad news is that accessing the page is not possible, it gives a bad request (invalid host) error

also tried to install the latest 19.6 beta, I got a new error during the install process:

mono: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by mono)
mono: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found (required by mono)

so I'm back to the good old working 19.4.25759.7247 :)

I tried again, installed 19.5.26194.7292 and changed WebServerListenUri in webconfig like suggested in a different bug report, now it's working

Fixed

I'm going to mark this as fixed. For other Mono and web.config-related bugs, so please create/upvote those threads as appropriate.

(If you're still seeing exceptions during server installation/upgrade, please send me your web.config because that shouldn't be happening with 19.5.26194 and higher.)

Happens sometimes in the GUI, didn't encountered it with 19.4

Does it just pop up spontaneously, or when you perform certain actions?

When I click randomly on any machines. I can't reproduce it as it happens randomly and the error message is not always the same.

XmlDictionaryString ID 113 not defined in the XmlBinaryReaderSession.