Share complete failure to open error

support
Share complete failure to open error Brett Phinney  2017-11-01
 
When I share a complete skyline file and select current version and Try to open it again I get this error

Any ideas? I'm using the most uptodate version of skyline. I have repeated this several times

failure to open



System.Reflection.TargetInvocationException: There is an error in XML document (1, 1). ---> System.InvalidOperationException: There is an error in XML document (1, 1). ---> System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at System.Xml.XmlReader.MoveToContent()
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSrmDocument.Read1_srm_settings()
   --- End of inner exception stack trace ---
   at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
   at System.Xml.Serialization.XmlSerializer.Deserialize(TextReader textReader)
   at pwiz.Skyline.SkylineWindow.<>c__DisplayClass128.<OpenFile>b__126(IProgressMonitor progressMonitor) in c:\proj\skyline_3_7_x64\pwiz_tools\Skyline\SkylineFiles.cs:line 257
   at pwiz.Skyline.Controls.LongWaitDlg.RunWork(Action`1 performWork) in c:\proj\skyline_3_7_x64\pwiz_tools\Skyline\Controls\LongWaitDlg.cs:line 228
   --- End of inner exception stack trace ---
   at pwiz.Skyline.Util.Helpers.WrapAndThrowException(Exception x) in c:\proj\skyline_3_7_x64\pwiz_tools\Skyline\Util\Util.cs:line 1940
   at pwiz.Skyline.Controls.LongWaitDlg.PerformWork(Control parent, Int32 delayMillis, Action`1 performWork) in c:\proj\skyline_3_7_x64\pwiz_tools\Skyline\Controls\LongWaitDlg.cs:line 176
   at pwiz.Skyline.Controls.LongWaitDlg.PerformWork(Control parent, Int32 delayMillis, Action`1 performWork) in c:\proj\skyline_3_7_x64\pwiz_tools\Skyline\Controls\LongWaitDlg.cs:line 131
   at pwiz.Skyline.SkylineWindow.OpenFile(String path, FormEx parentWindow) in c:\proj\skyline_3_7_x64\pwiz_tools\Skyline\SkylineFiles.cs:line 261
 
 
Brendan MacLean responded:  2017-11-01
Hi Brett,
Can you share the file with us via the URL below?

http://skyline.ms/files.url

Certainly sounds like something is getting corrupted.

Thanks for pointing this out.

--Brendan
 
joan miro responded:  2019-03-21
I have the same error trying to open templates for skline

Any help?


System.Reflection.TargetInvocationException: There is an error in XML document (1, 1). ---> System.InvalidOperationException: There is an error in XML document (1, 1). ---> System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at System.Xml.XmlReader.MoveToContent()
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSrmDocument.Read1_srm_settings()
   --- End of inner exception stack trace ---
   at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
   at System.Xml.Serialization.XmlSerializer.Deserialize(TextReader textReader)
   at pwiz.Skyline.SkylineWindow.<>c__DisplayClass925_0.<OpenFile>b__0(IProgressMonitor progressMonitor) in C:\proj\skyline_4_2_x64\pwiz_tools\Skyline\SkylineFiles.cs:line 301
   at pwiz.Skyline.Util.ProgressWaitBroker.PerformWork(ILongWaitBroker broker) in C:\proj\skyline_4_2_x64\pwiz_tools\Skyline\Util\UtilUI.cs:line 123
   at pwiz.Skyline.Controls.LongWaitDlg.RunWork(Action`1 performWork) in C:\proj\skyline_4_2_x64\pwiz_tools\Skyline\Controls\LongWaitDlg.cs:line 232
   --- End of inner exception stack trace ---
   at pwiz.Skyline.Util.Helpers.WrapAndThrowException(Exception x) in C:\proj\skyline_4_2_x64\pwiz_tools\Skyline\Util\Util.cs:line 1854
   at pwiz.Skyline.Controls.LongWaitDlg.PerformWork(Control parent, Int32 delayMillis, Action`1 performWork) in C:\proj\skyline_4_2_x64\pwiz_tools\Skyline\Controls\LongWaitDlg.cs:line 180
   at pwiz.Skyline.Controls.LongWaitDlg.PerformWork(Control parent, Int32 delayMillis, Action`1 performWork) in C:\proj\skyline_4_2_x64\pwiz_tools\Skyline\Controls\LongWaitDlg.cs:line 132
   at pwiz.Skyline.SkylineWindow.OpenFile(String path, FormEx parentWindow) in C:\proj\skyline_4_2_x64\pwiz_tools\Skyline\SkylineFiles.cs:line 295
---------------------------
 
Nick Shulman responded:  2019-03-21
That error nearly always means that you are trying to open something that is not a Skyline document.
There are often many other files in the same directory as your Skyline document that have names very similar to your Skyline document.
You Skyline document should have the filename extension ".sky". Windows often hides the extensions from file names (which is a feature that I would recommend turning off) but you might also be able to figure out which is the correct file because Windows will display "Skyline Document" in the "Type" column.

-- Nick