Giter VIP home page Giter VIP logo

Comments (10)

RicoSuter avatar RicoSuter commented on May 25, 2024

I'm currently working on the UWP version and most things already work. However I'm waiting for the final SDK release before publishing the new version to NuGet. For now, download the source code and add the projects src\MyToolkit\MyToolkit.csproj and src\MyToolkit.Extended.WinRT\MyToolkit.Extended.Uwp.csproj to your solution and add them as project references to your project.

from mytoolkit.

9kon avatar 9kon commented on May 25, 2024

Thank for the quick reply,, unfortuneatly i still get a Exception thrown: 'System.Net.Http.HttpRequestException' in mscorlib.ni.dll

if apears to happen here

#if WINRT

    /// <exception cref="WebException">An error occurred while downloading the resource. </exception>
    private static async Task<string> HttpGetAsync(string uri)
    {
        using (var client = new HttpClient())
        {
            client.DefaultRequestHeaders.Add("User-Agent", BotUserAgent);
            var response = await client.GetAsync(uri);
            return await response.Content.ReadAsStringAsync();
        }
    }

#else

on the return await response.Content.ReadAsStringAsync();

from mytoolkit.

9kon avatar 9kon commented on May 25, 2024

actually it on the var response = await client.GetAsync(uri);

from mytoolkit.

RicoSuter avatar RicoSuter commented on May 25, 2024

Yes, I have the same exception with the message "HttpVersion Http20": I think the HttpClient tries to use HTTP 2.0 but it is not implemented in UWP... I asked a MS dev whether this is a bug...

from mytoolkit.

9kon avatar 9kon commented on May 25, 2024

okay nothing to do but wait then,, but thank you for the great work anyway.

from mytoolkit.

RicoSuter avatar RicoSuter commented on May 25, 2024

Yes, ill update this issue as soon as i have more info.

from mytoolkit.

RicoSuter avatar RicoSuter commented on May 25, 2024

It will be fixed soon

from mytoolkit.

ljw1004 avatar ljw1004 commented on May 25, 2024

I'm on the VS/.NET/UWP team at Microsoft. Confirmed that this will be fixed in the final "VS2015 RTM tools for Windows 10". (which alas aren't available just quite yet...)

from mytoolkit.

Englbach avatar Englbach commented on May 25, 2024

So, everyone will wait for this problem.

from mytoolkit.

RicoSuter avatar RicoSuter commented on May 25, 2024

Please update to version 2.4.0 and report if its working now...

from mytoolkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.