cygnusxi / hfm-net

Automatically exported from code.google.com/p/hfm-net
2 stars 0 forks source link

Unhandled Exception with Mono #212

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Start the program with mono

What is the expected output? What do you see instead?
Exception Reporting Window.

What version of the product are you using? On what operating system?
0.5.0 - Revision 180 - Beta
Slackware64 13.0
Mono JIT compiler version 2.6.3 

Please provide any additional information below.
HFM.NET v0.5.0

Preferences Failed to Initialize.  The user.config file is likely corrupt.

Exception Thrown:
System.Xml.XmlException: Document element did not appear.  Line 1, position 1.
  at Mono.Xml2.XmlTextReader.Read () [0x00000] in <filename unknown>:0 
  at System.Xml.XmlTextReader.Read () [0x00000] in <filename unknown>:0 
  at System.Xml.XmlReader.MoveToContent () [0x00000] in <filename unknown>:0 
  at System.Configuration.Configuration.ReadConfigFile
(System.Xml.XmlReader reader, System.String fileName) [0x00000] in
<filename unknown>:0 
  at System.Configuration.Configuration.Load () [0x00000] in <filename
unknown>:0 
  at System.Configuration.Configuration.Init (IConfigSystem system,
System.String configPath, System.Configuration.Configuration parent)
[0x00000] in <filename unknown>:0 
  at System.Configuration.Configuration..ctor
(System.Configuration.InternalConfigurationSystem system, System.String
locationSubPath) [0x00000] in <filename unknown>:0 
  at System.Configuration.Configuration..ctor
(System.Configuration.InternalConfigurationSystem system, System.String
locationSubPath) [0x00000] in <filename unknown>:0 
  at System.Configuration.InternalConfigurationFactory.Create (System.Type
typeConfigHost, System.Object[] hostInitConfigurationParams) [0x00000] in
<filename unknown>:0 
  at System.Configuration.ConfigurationManager.OpenMappedExeConfiguration
(System.Configuration.ExeConfigurationFileMap fileMap,
ConfigurationUserLevel userLevel) [0x00000] in <filename unknown>:0 
  at System.Configuration.CustomizableFileSettingsProvider.LoadProperties
(System.Configuration.ExeConfigurationFileMap exeMap,
System.Configuration.SettingsPropertyCollection collection,
ConfigurationUserLevel level, System.String sectionGroupName, Boolean
allowOverwrite, System.String groupName) [0x00000] in <filename unknown>:0 
  at
System.Configuration.CustomizableFileSettingsProvider.GetPropertyValues
(System.Configuration.SettingsContext context,
System.Configuration.SettingsPropertyCollection collection) [0x00000] in
<filename unknown>:0 
  at System.Configuration.LocalFileSettingsProvider.GetPropertyValues
(System.Configuration.SettingsContext context,
System.Configuration.SettingsPropertyCollection properties) [0x00000] in
<filename unknown>:0 
  at System.Configuration.ApplicationSettingsBase.CacheValuesByProvider
(System.Configuration.SettingsProvider provider) [0x00000] in <filename
unknown>:0 
  at System.Configuration.ApplicationSettingsBase.GetPropertyValue
(System.String propertyName) [0x00000] in <filename unknown>:0 
  at System.Configuration.ApplicationSettingsBase.get_Item (System.String
propertyName) [0x00000] in <filename unknown>:0 
  at HFM.Preferences.Properties.Settings.get_ApplicationVersion ()
[0x00000] in <filename unknown>:0 
  at HFM.Preferences.PreferenceSet.UpgradeUserSettings () [0x00000] in
<filename unknown>:0 
  at HFM.Preferences.PreferenceSet.Load () [0x00000] in <filename unknown>:0 
  at HFM.Preferences.PreferenceSet.Initialize () [0x00000] in <filename
unknown>:0 

Original issue reported on code.google.com by chrisret...@gmail.com on 15 May 2010 at 2:09

GoogleCodeExporter commented 8 years ago
Any further info on this?  It looks like a Mono problem with reading the 
user.config file.  It's in a hidden folder in your home directory.

~/.local/share/harlam357/HFM.exe_StrongName_xxxxxxxxxxx/xxxxxxx/xxxx

Try deleting that user.config and see if it starts normally.

If I see no further activity in this issue in 7 days I'll close it.

Original comment by harlam357 on 28 Jul 2010 at 4:15

GoogleCodeExporter commented 8 years ago
Thanks for the reply. 

I have since removed HFM and mono from my system; HOWEVER, your post has caused 
me to revisit HFM. 

I am in the process of compiling and reinstalling mono. I will install the 
latest version of HFM and post back on the results. Probable later tonight or 
tomorrow. 

I really like your program. Beats the competition hands down. I have been 
monitoring my WU's the old fashioned way, be nice to be able to fire up HFM 
again. 

Original comment by chrisret...@gmail.com on 28 Jul 2010 at 11:55

GoogleCodeExporter commented 8 years ago
Well I have reinstall mono 2.6.7 and an using the current HFM.NET v0.5.1 Rev 
198. As suspected I know longer get this error. So I guess this issue is a 
closed one. 

Original comment by chrisret...@gmail.com on 29 Jul 2010 at 9:39

GoogleCodeExporter commented 8 years ago
Thanks for those kind words chrisretusn. :-)

Glad to see it straightened out.  That's the thing about Mono support.  It's 
quite sketchy... and I'm no Linux guru.  I only test on official openSUSE/Mono 
VMs provided by Novell.  That way I know I'm using the bits as they intended.  
Folks who build their own and/or use newer/unstable revisions may run into 
stuff like this... I'm not saying for sure that's the case here, but it could 
be.  As a developer, I can't anticipate this kind of stuff.  That's why I stick 
with testing on the official bits.  Makes my headaches with Mono just a little 
bit smaller. :-)

Thanks again for using HFM!
-H

Original comment by harlam357 on 6 Aug 2010 at 1:31

GoogleCodeExporter commented 8 years ago
For the record I am certain that what caused this problem was a missing or 
corrupt user.config file with missing being the most likely. 

Just for the sake of it, I only build using official and stable source code 
provided my Novell. ;-)

That said I am in the process of downloading the openSUSE 11.2 VMWare image 
which includes Mono 2.6.7 to compare how HFM runs in that environment and my 
Slackware64 one. 

Original comment by chrisret...@gmail.com on 7 Aug 2010 at 2:44

GoogleCodeExporter commented 8 years ago

Original comment by harlam357 on 23 Mar 2012 at 4:32