hbons/SparkleShare — Issue #376: HEAD fails on Lion
Author: dabrahams
Created: 2011-10-24 19:23:34+00:00
State: open

I get the following trace. Trying to create the missing file with "touch" doesn't help; in fact SS appears to delete the file in that case.

```
% /Applications/SparkleShare.app/Contents/MacOS/SparkleShare

Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for SparkleLib.SparkleConfig ---> System.IO.FileNotFoundException: Could not find file "/Users/dave/.config/sparkleshare/config.xml".
File name: '/Users/dave/.config/sparkleshare/config.xml'
at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in :0
at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in :0
at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
at System.Xml.XmlUrlResolver.GetEntity (System.Uri absoluteUri, System.String role, System.Type ofObjectToReturn) [0x00000] in :0
at Mono.Xml2.XmlTextReader.GetStreamFromUrl (System.String url, System.String& absoluteUriString) [0x00000] in :0
at Mono.Xml2.XmlTextReader.ReadTextReader (Int32 remained) [0x00000] in :0
at Mono.Xml2.XmlTextReader.PeekChar () [0x00000] in :0
at Mono.Xml2.XmlTextReader.ReadContent () [0x00000] in :0
at Mono.Xml2.XmlTextReader.Read () [0x00000] in :0
at System.Xml.XmlTextReader.Read () [0x00000] in :0
at Mono.Xml.EntityResolvingXmlReader.Read () [0x00000] in :0
at Mono.Xml.DTDValidatingReader.ReadContent () [0x00000] in :0
at Mono.Xml.DTDValidatingReader.Read () [0x00000] in :0
at Mono.Xml.Schema.XsdValidatingReader.Read () [0x00000] in :0
at System.Xml.XmlValidatingReader.Read () [0x00000] in :0
at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x00000] in :0
at System.Xml.XmlDocument.ReadNode (System.Xml.XmlReader reader) [0x00000] in :0
at System.Xml.XmlDocument.Load (System.Xml.XmlReader xmlReader) [0x00000] in :0
at System.Xml.XmlDocument.Load (System.String filename) [0x00000] in :0
at SparkleLib.SparkleConfig..ctor (System.String config_path, System.String config_file_name) [0x00000] in :0
at SparkleLib.SparkleConfig..cctor () [0x00000] in :0
--- End of inner exception stack trace ---
at SparkleShare.SparkleController..ctor () [0x00000] in :0
at SparkleShare.Program.Main (System.String[] args) [0x00000] in :0
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: An exception was thrown by the type initializer for SparkleLib.SparkleConfig ---> System.IO.FileNotFoundException: Could not find file "/Users/dave/.config/sparkleshare/config.xml".
File name: '/Users/dave/.config/sparkleshare/config.xml'
at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in :0
at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in :0
at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
at System.Xml.XmlUrlResolver.GetEntity (System.Uri absoluteUri, System.String role, System.Type ofObjectToReturn) [0x00000] in :0
at Mono.Xml2.XmlTextReader.GetStreamFromUrl (System.String url, System.String& absoluteUriString) [0x00000] in :0
at Mono.Xml2.XmlTextReader.ReadTextReader (Int32 remained) [0x00000] in :0
at Mono.Xml2.XmlTextReader.PeekChar () [0x00000] in :0
at Mono.Xml2.XmlTextReader.ReadContent () [0x00000] in :0
at Mono.Xml2.XmlTextReader.Read () [0x00000] in :0
at System.Xml.XmlTextReader.Read () [0x00000] in :0
at Mono.Xml.EntityResolvingXmlReader.Read () [0x00000] in :0
at Mono.Xml.DTDValidatingReader.ReadContent () [0x00000] in :0
at Mono.Xml.DTDValidatingReader.Read () [0x00000] in :0
at Mono.Xml.Schema.XsdValidatingReader.Read () [0x00000] in :0
at System.Xml.XmlValidatingReader.Read () [0x00000] in :0
at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x00000] in :0
at System.Xml.XmlDocument.ReadNode (System.Xml.XmlReader reader) [0x00000] in :0
at System.Xml.XmlDocument.Load (System.Xml.XmlReader xmlReader) [0x00000] in :0
at System.Xml.XmlDocument.Load (System.String filename) [0x00000] in :0
at SparkleLib.SparkleConfig..ctor (System.String config_path, System.String config_file_name) [0x00000] in :0
at SparkleLib.SparkleConfig..cctor () [0x00000] in :0
--- End of inner exception stack trace ---
at SparkleShare.SparkleController..ctor () [0x00000] in :0
at SparkleShare.Program.Main (System.String[] args) [0x00000] in :0
```