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 Aug 29, 2017, 2:23 p.m. EDT

Please login with a confirmed email address before reporting spam

Posted: 9 years ago Feb 17, 2015, 7:11 a.m. EST
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 Feb 17, 2015, 8:52 a.m. EST
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 Apr 24, 2015, 3:16 a.m. EDT
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 Apr 24, 2015, 4:15 a.m. EDT
Sorry ...

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

Please login with a confirmed email address before reporting spam

Posted: 9 years ago May 25, 2015, 1:10 p.m. EDT
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 Mar 8, 2016, 7:39 a.m. EST
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 Aug 17, 2016, 7:28 p.m. EDT
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 Sep 4, 2016, 1:23 p.m. EDT
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 Sep 6, 2016, 6:29 p.m. EDT
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 Nov 14, 2016, 4:00 a.m. EST
Thank you, it works perfectly !
Thank you, it works perfectly !

Please login with a confirmed email address before reporting spam

Posted: 7 years ago Feb 16, 2017, 5:34 a.m. EST
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 Aug 29, 2017, 2:23 p.m. EDT
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.