Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

Can not open Comsol with "An unexpected error occurred"

Please login with a confirmed email address before reporting spam

hi everyone

Yesterday, I used Comsol normally, but today I can not open it anymore. It gives me this error and its details:

"An unexpected error occurred."

'.', hexadecimal value 0x00, is an invalid character.
at System.Xml.XmlEncodedRawTextWriter.InvalidXmlChar(Int32 ch, Char* pDst, Boolean entitize)
at System.Xml.XmlEncodedRawTextWriter.WriteElementTextBlock(Char* pSrc, Char* pSrcEnd)
at System.Xml.XmlEncodedRawTextWriter.WriteString(String text)
at System.Xml.XmlWellFormedWriter.WriteString(String text)
at System.Xml.Linq.ElementWriter.WriteElement(XElement e)
at System.Xml.Linq.XElement.WriteTo(XmlWriter writer)
at System.Xml.Linq.XNode.GetXmlString(SaveOptions o)
at Comsol.Command.BridgeCommand.ToCommandString()
at Comsol.Communication.ChannelBasedCommandManager.SendCommand(OutgoingCommandHandler commandHandler)
at Comsol.Communication.BridgeCommandManager.OutgoingCommandHandler.Run()
at Comsol.Communication.BridgeCommandManager.RunAndWait(BridgeCommand command)
at ComsolDesktop.MainWindow.StartJava(Boolean debug, Boolean devPlugins, NDisconnectInfo disconnectInfo, IBridgeCommandManager oldMgr)
at ComsolDesktop.MainWindow.StartJava(Boolean debug, Boolean devPlugins)
at ComsolDesktop.App.OnStartup(StartupEventArgs e)
at System.Windows.Application.<.ctor>b__1(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

is there anyone has some ideas about this problem ?
Many thanks
Duc

12 Replies Last Post 29 août 2017, 14:23 UTC−4

Please login with a confirmed email address before reporting spam

Posted: 9 years ago 17 févr. 2015, 07:11 UTC−5
I have the same problem, comsol worked just fine one minute ago and now this.
I have the same problem, comsol worked just fine one minute ago and now this.

Please login with a confirmed email address before reporting spam

Posted: 9 years ago 17 févr. 2015, 08:52 UTC−5
Hi Hugo

I have just reinstalled my Win and then the Comsol. Now, it works well. :D
Hi Hugo I have just reinstalled my Win and then the Comsol. Now, it works well. :D

Please login with a confirmed email address before reporting spam

Posted: 9 years ago 24 avr. 2015, 03:16 UTC−4
Re installing windows is the only option left. Do you know any other way?? Please help....
Re installing windows is the only option left. Do you know any other way?? Please help....

Please login with a confirmed email address before reporting spam

Posted: 9 years ago 24 avr. 2015, 04:15 UTC−4
Sorry ...

I did not have.
Sorry ... I did not have.

Please login with a confirmed email address before reporting spam

Posted: 9 years ago 25 mai 2015, 13:10 UTC−4
br.comsol.com/support/knowledgebase/1177/

Solution

This issue has so far only been observed on Windows installations. The solution is to ask the to rename/remove the vXX folder located at

C:\Users\%USERNAME%\.comsol\vXX

where %USERNAME% is the user name of the user and XX is the version you are using (44 or 50). If you have important settings in your vXX folder, it is recommended to rename it rather than removing it.
https://br.comsol.com/support/knowledgebase/1177/ Solution This issue has so far only been observed on Windows installations. The solution is to ask the to rename/remove the vXX folder located at C:\Users\%USERNAME%\.comsol\vXX where %USERNAME% is the user name of the user and XX is the version you are using (44 or 50). If you have important settings in your vXX folder, it is recommended to rename it rather than removing it.

Please login with a confirmed email address before reporting spam

Posted: 8 years ago 8 mars 2016, 07:39 UTC−5
Thank you Daniel Lau. It works. Thanks for the short technique to repair it.
Thank you Daniel Lau. It works. Thanks for the short technique to repair it.

Please login with a confirmed email address before reporting spam

Posted: 8 years ago 17 août 2016, 19:28 UTC−4
Thank you! It worked perfectly here
Thank you! It worked perfectly here

Please login with a confirmed email address before reporting spam

Posted: 8 years ago 4 sept. 2016, 13:23 UTC−4
Thank you very much it works !!
Thank you very much it works !!

Please login with a confirmed email address before reporting spam

Posted: 8 years ago 6 sept. 2016, 18:29 UTC−4
Thank you very much. It worked.
Thank you very much. It worked.

Please login with a confirmed email address before reporting spam

Posted: 7 years ago 14 nov. 2016, 04:00 UTC−5
Thank you, it works perfectly !
Thank you, it works perfectly !

Please login with a confirmed email address before reporting spam

Posted: 7 years ago 16 févr. 2017, 05:34 UTC−5
Thank you Daniel.
This technique really works
Thank you Daniel. This technique really works

Please login with a confirmed email address before reporting spam

Posted: 7 years ago 29 août 2017, 14:23 UTC−4
thanks alot my problem solved
thanks alot my problem solved

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.