It seems when I get a NuGet Package and try to use it I run into issues. In this case I am using Newton Json to deserialize some json code I get from using elements Http request. In this method when Http.TryGetJson(request) is executed I get the message “Configuration system failed to initalize”.
func GetLastFMDataJson() -> JsonDocument? {
let metaDataUrl = "http://ws.audioscrobbler.com/2.0/?method=track.getsimilar&artist=Shinedown&track=monsters&api_key=12d09558d044c0298211cece08f840a0&format=json"
let request = HttpRequest(Url.UrlWithString(metaDataUrl) )
request.Mode = HttpRequestMode.Post
request.FollowRedirects = true
let j = Http.TryGetJson(request)
return j
}
This code worked fine before I added the NewtonJson Nuget. If I delete the exe.config file this code works but ofc the NewtonJson code fails.