U4-11549 - Umbraco Headless - Problem getting the example ASP.NET Core MVC (Content Managed website) to Work.

Created by Borup 31 Jul 2018, 20:47:16 Updated by Sebastiaan Janssen 31 Jul 2018, 21:08:24

https://github.com/umbraco/UmbracoDocs/blob/headless/Umbraco-Cloud/Headless/Headless-Net-Client/website-static.md

I have tried to get the example to work.!

I'm using the MS.Net Core 2.1.

First i got this error: ..\Content_Managed_Site.csproj : error NU1605: Detected package downgrade: UmbracoCms.Headless.Client from 0.9.4-CI-20180726-02 to 0.9.4-CI-20180628-02. Reference the package directly from the project to select a different version.

Then i Correted the line line from:

dotnet add package UmbracoCms.Headless.Client -v 0.9.0-* to: dotnet add package UmbracoCms.Headless.Client -v 0.9.4-*

But when I got this problem, and cannot resolve thus one.: Startup.cs(35,22): error CS1061: 'IServiceCollection' does not contain a definition for 'UseUmbracoHeadlessWebEngine' and no extension method 'UseUmbracoHeadlessWebEngine' accepting a first argument of type 'IServiceCollection' could be found (are you missing a using directive or an assembly reference?) [C:\Work\Umbraco\jans-careful-beaver\Content_Managed_Site\Content_Managed_Site.csproj] Startup.cs(37,22): error CS1061: 'IServiceCollection' does not contain a definition for 'AddUmbracoHeadlessWebEngine' and no extension method 'AddUmbracoHeadlessWebEngine' accepting a first argument of type 'IServiceCollection' could be found (are you missing a using directive or an assembly reference?) [C:\Work\Umbraco\jans-careful-beaver\Content_Managed_Site\Content_Managed_Site.csproj]

The build failed. Please fix the build errors and run again.

Hope somebody can helt fixing the example. :-)

Have a nice summer.

2 Attachments

Download Content_Managed_Site.zip

Comments

Sebastiaan Janssen 31 Jul 2018, 21:08:21

Hi @janborup - for Umbraco Headless support, make sure to ping the support chat in the Cloud portal at https://www.s1.umbraco.io/ Hit the chat bubble in the bottom right to get started, see attached!


Priority: Normal

Type: Bug

State: Closed

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions: 7.11.1

Due in version:

Sprint:

Story Points:

Cycle: