STEAM GROUP
Archi's SC Farm Archi-ASF
STEAM GROUP
Archi's SC Farm Archi-ASF
75,206
IN-GAME
426,802
ONLINE
Founded
October 29, 2015
Language
English
tarzzzan Feb 13, 2017 @ 3:29pm
System.UriFormatException: Invalid URI: The hostname could not be parsed.
Hello Archi! Big THX for you work!!!
But I need you help.

I run ASF on small VPS, all works fine on V2.2.1.6, but start from V2.2.1.7 (and all next version) get same error:

[ERROR] FATAL UNHANDLED EXCEPTION: System.AggregateException: One or more errors occurred. ---> System.UriFormatException: Invalid URI: The hostname could not be parsed.
at System.Uri.CreateThis (System.String uri, System.Boolean dontEscape, System.UriKind uriKind) [0x00090] in <5071a6e4a4564e19a2eda0f53e42f9bd>:0
at System.Uri..ctor (System.String uriString) [0x00017] in <5071a6e4a4564e19a2eda0f53e42f9bd>:0
at NLog.Config.ConfigurationItemFactory.BuildDefaultFactory () [0x00033] in <294b42a9e7eb4ed898baa93ed17d3c81>:0
at NLog.Config.ConfigurationItemFactory.get_Default () [0x00007] in <294b42a9e7eb4ed898baa93ed17d3c81>:0
at NLog.Targets.Target.Register (System.String name, System.Type targetType) [0x00000] in <294b42a9e7eb4ed898baa93ed17d3c81>:0
at NLog.Targets.Target.Register[T] (System.String name) [0x0000b] in <294b42a9e7eb4ed898baa93ed17d3c81>:0
at ArchiSteamFarm.Program+<Init>d__29.MoveNext () [0x00031] in <8e2c5bf04c21476991605cd1e2f2f8aa>:0
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional (System.Boolean includeTaskCanceledExceptions) [0x00014] in <8f2c484307284b51944a1a13a14c0266>:0
at System.Threading.Tasks.Task.Wait (System.Int32 millisecondsTimeout, System.Threading.CancellationToken cancellationToken) [0x00052] in <8f2c484307284b51944a1a13a14c0266>:0
at System.Threading.Tasks.Task.Wait () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0
at ArchiSteamFarm.Program.Main (System.String[] args) [0x0000d] in <8e2c5bf04c21476991605cd1e2f2f8aa>:0
---> (Inner Exception #0) System.UriFormatException: Invalid URI: The hostname could not be parsed.
at System.Uri.CreateThis (System.String uri, System.Boolean dontEscape, System.UriKind uriKind) [0x00090] in <5071a6e4a4564e19a2eda0f53e42f9bd>:0
at System.Uri..ctor (System.String uriString) [0x00017] in <5071a6e4a4564e19a2eda0f53e42f9bd>:0
at NLog.Config.ConfigurationItemFactory.BuildDefaultFactory () [0x00033] in <294b42a9e7eb4ed898baa93ed17d3c81>:0
at NLog.Config.ConfigurationItemFactory.get_Default () [0x00007] in <294b42a9e7eb4ed898baa93ed17d3c81>:0
at NLog.Targets.Target.Register (System.String name, System.Type targetType) [0x00000] in <294b42a9e7eb4ed898baa93ed17d3c81>:0
at NLog.Targets.Target.Register[T] (System.String name) [0x0000b] in <294b42a9e7eb4ed898baa93ed17d3c81>:0
at ArchiSteamFarm.Program+<Init>d__29.MoveNext () [0x00031] in <8e2c5bf04c21476991605cd1e2f2f8aa>:0 <---

+info:
latest version of mono (4.6.2)
Ubuntu 14.04.5 LTS main, just make fresh install on 16.04.2 LTS = all same errors "Invalid URI"
< >
Showing 16-22 of 22 comments
tarzzzan Feb 14, 2017 @ 2:24pm 
I say early - got test server
If you want - i give you full access, just add me on steam.
tarzzzan Feb 14, 2017 @ 2:51pm 
2017-02-14 17:45:43.8686 Info NLog internal logger initialized. 2017-02-14 17:45:43.9608 Debug ScanAssembly('NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c') 2017-02-14 17:45:44.4686 Debug Loading config from /home/mon/NLog.config 2017-02-14 17:45:44.7624 Trace ParseNLogElement 2017-02-14 17:45:44.7682 Debug ScanAssembly('NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c') 2017-02-14 17:45:44.9707 Error Parsing configuration from /home/mon/NLog.config failed. Exception: NLog.NLogConfigurationException: Exception when parsing /home/mon/NLog.config. ---> System.UriFormatException: Invalid URI: The hostname could not be parsed. at System.Uri.CreateThis (System.String uri, System.Boolean dontEscape, System.UriKind uriKind) [0x00090] in <5071a6e4a4564e19a2eda0f53e42f9bd>:0 at System.Uri..ctor (System.String uriString) [0x00017] in <5071a6e4a4564e19a2eda0f53e42f9bd>:0 at NLog.Config.ConfigurationItemFactory.BuildDefaultFactory () [0x00033] in <294b42a9e7eb4ed898baa93ed17d3c81>:0 at NLog.Config.ConfigurationItemFactory.get_Default () [0x00007] in <294b42a9e7eb4ed898baa93ed17d3c81>:0 at NLog.Config.XmlLoggingConfiguration.get_ConfigurationItemFactory () [0x00000] in <294b42a9e7eb4ed898baa93ed17d3c81>:0 at NLog.Config.XmlLoggingConfiguration.ParseTargetsElement (NLog.Config.NLogXmlElement targetsElement) [0x001bf] in <294b42a9e7eb4ed898baa93ed17d3c81>:0 at NLog.Config.XmlLoggingConfiguration.ParseNLogElement (NLog.Config.NLogXmlElement nlogElement, System.String filePath, System.Boolean autoReloadDefault) [0x0030a] in <294b42a9e7eb4ed898baa93ed17d3c81>:0 at NLog.Config.XmlLoggingConfiguration.ParseTopLevel (NLog.Config.NLogXmlElement content, System.String filePath, System.Boolean autoReloadDefault) [0x00052] in <294b42a9e7eb4ed898baa93ed17d3c81>:0 at NLog.Config.XmlLoggingConfiguration.Initialize (System.Xml.XmlReader reader, System.String fileName, System.Boolean ignoreErrors) [0x00027] in <294b42a9e7eb4ed898baa93ed17d3c81>:0 --- End of inner exception stack trace --- 2017-02-14 17:45:45.0616 Debug --- NLog configuration dump --- 2017-02-14 17:45:45.0616 Debug Targets: 2017-02-14 17:45:45.0616 Debug Rules: 2017-02-14 17:45:45.0616 Debug --- End of NLog configuration dump --- 2017-02-14 17:45:45.0702 Trace FindReachableObject<System.Object>: 2017-02-14 17:45:45.0715 Info Found 0 configuration items 2017-02-14 17:45:45.1600 Info Configuration initialized. 2017-02-14 17:45:45.1605 Error Error logging version of assembly NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. Exception: System.ArgumentException: The specified path is not of a legal form (empty). at System.IO.Path.InsecureGetFullPath (System.String path) [0x0002c] in <8f2c484307284b51944a1a13a14c0266>:0 at System.IO.Path.GetFullPath (System.String path) [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 at System.Diagnostics.FileVersionInfo.GetVersionInfo (System.String fileName) [0x00016] in <5071a6e4a4564e19a2eda0f53e42f9bd>:0 at NLog.Common.InternalLogger.LogAssemblyVersion (System.Reflection.Assembly assembly) [0x00006] in <294b42a9e7eb4ed898baa93ed17d3c81>:0 2017-02-14 17:45:45.1618 Debug Targets for ASF by level: 2017-02-14 17:45:45.1618 Debug Trace => 2017-02-14 17:45:45.1618 Debug Debug => 2017-02-14 17:45:45.1618 Debug Info => 2017-02-14 17:45:45.1618 Debug Warn => 2017-02-14 17:45:45.1618 Debug Error => 2017-02-14 17:45:45.1618 Debug Fatal =>
Archi Feb 15, 2017 @ 5:59am 
No need to, should be fixed in https://github.com/NLog/NLog/pull/1966 and some next ASF release.
tarzzzan Feb 15, 2017 @ 7:49am 
Thx!
-closed-
Archi Feb 18, 2017 @ 1:21pm 
This issue should be fixed with latest AppVeyor build[ci.appveyor.com], could you verify that it works for you?
tarzzzan Feb 18, 2017 @ 1:43pm 
Work perfectly!
Whithout NLog.config

Log from main log.txt:
2017-02-18 16:38:12|mono-sgen-1444|INFO|ASF|InitASF() ASF V2.2.2.8 2017-02-18 16:38:13|mono-sgen-1444|INFO|ASF|IsRuntimeSupported() Your Mono runtime version is OK. 2017-02-18 16:38:13|mono-sgen-1444|INFO|ASF|IsRuntimeSupported() Required version: 4.6 | Found version: 4.6.2 2017-02-18 16:38:14|mono-sgen-1444|INFO|ASF|CheckForUpdate() Checking for new version... 2017-02-18 16:38:16|mono-sgen-1444|INFO|ASF|CheckForUpdate() Local version: 2.2.2.8 | Remote version: 2.2.2.7 2017-02-18 16:38:17|mono-sgen-1444|INFO|ASF|InitializeCMs() Initializing SteamDirectory... 2017-02-18 16:38:18|mono-sgen-1444|INFO|ASF|InitializeCMs() Success!
Last edited by tarzzzan; Feb 18, 2017 @ 1:43pm
Archi Feb 18, 2017 @ 1:47pm 
Good, thanks for info!
< >
Showing 16-22 of 22 comments
Per page: 1530 50

Date Posted: Feb 13, 2017 @ 3:29pm
Posts: 22