Code:
Unhandled Exception: System.Configuration.ConfigurationErrorsException: An error occurred while parsing EntityName. Line 6, position 53. (C:\Users\Steven\Desktop\Pokemon Go Bot\PokemonGo****cketAPI.Console.exe.Config line 6) ---> System.Xml.XmlException: An error occurred while parsing EntityName. Line 6, position 53.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.ParseEntityName()
at System.Xml.XmlTextReaderImpl.ParseAttributeValueSlow(Int32 curPos, Char quoteChar, NodeData attr)
at System.Xml.XmlTextReaderImpl.ParseAttributes()
at System.Xml.XmlTextReaderImpl.ParseElement()
at System.Xml.XmlTextReaderImpl.ParseElementContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlTextReader.Read()
at System.Configuration.XmlUtil.CopyXmlNode(XmlUtilWriter utilWriter)
at System.Configuration.XmlUtil.CopyElement(XmlUtilWriter utilWriter)
at System.Configuration.XmlUtil.CopySection()
at System.Configuration.AppSettingsSection.DeserializeElement(XmlReader reader, Boolean serializeCollectionKey)
at System.Configuration.ConfigurationSection.DeserializeSection(XmlReader reader)
at System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory.CreateSectionImpl(RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentConfig, ConfigXmlReader reader)
at System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory.CreateSectionWithRestrictedPermissions(RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentConfig, ConfigXmlReader reader)
at System.Configuration.RuntimeConfigurationRecord.CreateSection(Boolean inputIsTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentConfig, ConfigXmlReader reader)
at System.Configuration.BaseConfigurationRecord.CallCreateSection(Boolean inputIsTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentConfig, ConfigXmlReader reader, String filename, Int32 line)
--- End of inner exception stack trace ---
at System.Configuration.BaseConfigurationRecord.EvaluateOne(String[] keys, SectionInput input, Boolean isTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult)
at System.Configuration.BaseConfigurationRecord.Evaluate(FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult, Boolean getLkg, Boolean getRuntimeObject, Object& result, Object& resultRuntimeObject)
at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
at System.Configuration.BaseConfigurationRecord.GetSection(String configKey)
at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfi****tem.GetSection(String sectionName)
at System.Configuration.ConfigurationManager.get_AppSettings()
at PokemonGo****cketAPI.Console.Settings.get_DefaultLatitude()
at PokemonGo****cketAPI.Client..ctor(ISettings settings)
at PokemonGo****cketAPI.Console.Program.<Execute>d__15.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_1(Object state)
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
Code:
<appSettings>
<!--Google/Ptc-->
<add key="AuthType" value="Google" />
<!--Google-->
<add key="GoogleEmail" value="REDACTED@gmail.com" />
<add key="GooglePassword" value="REDACTED" />
<!--Ptc-->
<add key="PtcUsername" value="" />
<add key="PtcPassword" value="" />
<!--Locations
Sidney: circa 250 Pokestop
<add key="DefaultLatitude" value="-33.866665135580554" />
<add key="DefaultLongitude" value="151.21024131774902" />
Rome: circa 250 Pokestop
<add key="DefaultLatitude" value="41.89920" />
<add key="DefaultLongitude" value="12.47401" />
Paris:
-->
<add key="DefaultLatitude" value="41.89920" />
<add key="DefaultLongitude" value="12.47401" />
<!--Request Delay, increase if the bot is loop-restarting -->
<add key="requestsDelay" value="250" />
<!--Recycle settings-->
<add key="ItemRecyclingCount" value="200" />
<add key="ItemRecycleFilter" value="Poke Ball:20, Great Ball:50, Ultra Ball:100, Master Ball:50, RazzBerry:20, Revive:0, Potion:0, Super Potion:0, Hyper Potion:50, Max Potion:50, Max Revive:50" />
</appSettings>