Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Julien Kulker 75 posts 427 karma points c-trib
    Aug 09, 2018 @ 12:01
    Julien Kulker
    0

    Umbraco Headless: AddUmbracoHeadlessClient

    Hi there,

    I am trying to setup my .Net core webapplication with umbraco headless. The first steps went ok but i get some errors when adding the headless settings to the startup.cs

      // This method gets called by the runtime. Use this method to add services to the container.
        public void ConfigureServices(IServiceCollection services)
        {
            services.AddMvc();
            services.AddUmbracoHeadlessClient(Configuration);
            services.AddUmbracoHeadlessWebEngine();
        }
    

    services.AddUmbracoHeadlessClient(Configuration); This line is incorrect because the IserviceCollection doesn't have a method like that.

    I added does two references

    using Umbraco.Headless.Client; using Umbraco.Headless.Client.Web;

    Anyone know what i am doing wrong?

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Aug 09, 2018 @ 12:13
    Jan Skovgaard
    0

    Hi Julien

    I unfortunately do not have any current experience with running Umbraco headless myself yet but I just want to make sure you have seen the documentation available here https://our.umbraco.com/documentation/Umbraco-Cloud/Headless/Headless-Net-Client/ ? :) Maybe it can help you out?

    /Jan

  • Julien Kulker 75 posts 427 karma points c-trib
    Aug 09, 2018 @ 13:10
    Julien Kulker
    0

    Hi jan,

    Yes i know about the installation instructions. I did use does installation instructions.

    from this page also: https://our.umbraco.com/documentation/Umbraco-Cloud/Headless/Headless-Net-Client/website-managed

  • Jason 2 posts 71 karma points
    Aug 09, 2018 @ 19:06
    Jason
    0

    I was able to get this working my rolling back to the version released at the end of July.

  • Michael Murphy 2 posts 72 karma points
    Aug 09, 2018 @ 19:45
    Michael Murphy
    0

    Which version number in MyGet was the end of July version?

  • Julien Kulker 75 posts 427 karma points c-trib
    Aug 10, 2018 @ 07:10
    Julien Kulker
    0

    It is not really a solution but it seems like the the tutorials on our umbraco are outdated already because it doesn't work like they said it do.

    Downgrading to a earlier version fix the problem.

Please Sign in or register to post replies

Write your reply to:

Draft