question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Installing Umbraco.Cms 10.5.1 startup.cs contains .AddDeliveryApi() and that's not in v10!

See original GitHub issue

Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)

10.5.1

Bug summary

I Installed a Vanilla 10.5.1 to trigger an upgrade from a V8 site… I used Visual Studio to search for the Umbraco Project template and specified the version as 10.5.1 and added db connection string

Project created successfully

went to run the project and got error:

IUmbracoBuilder does not contain a definition for ‘AddDeliveryApi’ and no accessible extension method ‘AddDeliveryApi’ accepting a first argument of type ‘IUmbracoBuilder’ could be found (are you missing a using directive or an assembly reference?)

services.AddUmbraco(_env, _config) .AddBackOffice() .AddWebsite() .AddDeliveryApi() .AddComposers() .Build();

looking at startup.cs it has the AddDeliveryApi() called… commenting out made everything ok, but just wondered if something got merged back into V10 or something by mistake…

v1051error

anyway thought I’d raise it in case it were a thing…

Specifics

The contrib branch of V10 doesn’t appear to have the issue.

Steps to reproduce

Yeah install 10.5.1 and try to dot net run it, should get the error above

Expected result / actual result

You’d expect the latest version of v10 series to just work after installing it.

Issue Analytics

  • State:closed
  • Created 3 months ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kjaccommented, Jun 26, 2023

@marcemarc it’s no interruption 😄 it’s a valid point. It would be nice to be backwards compatible in the templates… but it’s a right mess to implement (to say the least).

0reactions
marcemarccommented, Jun 26, 2023

Thanks @kjac @abjerner - yes enthused by CG I had upgraded to V14 templates on my machine 😃

I have always used the command line and Paul’s script before, I don’t know why I tried it from VS - showing off?

Anyway that makes perfect sense

image

Even though you type the version you want here, it uses the latest templates as you say…

generally speaking, people will be installing the latest version anyway from the latest templates? I guess the LTS is the only vague element of confusion, but yeah, I won’t do this again! sorry for the interruption!

Read more comments on GitHub >

github_iconTop Results From Across the Web

upgrade to v10 rc1 error - Using Umbraco And Getting ...
I just tried installing the latest USync version on a clean Umbraco 10 project (straight from the dotnet template) and I get the...
Read more >
Trying fresh install but get connection string error
I am trying to install Umbraco 10 for the first time and didn't have any issues until I went to run the site...
Read more >
net 6 default configuration without startupcs does not allow ...
I've followed the installation procedure for Umbraco 10 and once Umbraco ... NET 6 default configuration that includes only the Program.cs.
Read more >
v9 v10 update value cannot be null arg_paramname_name
Umbraco may be unable to update the tables in your database and throws this random meaningless exception. To solve this, make sure that...
Read more >
Umbraco 11.3 and 10.5 Release Candidates
First, you need to make a new Umbraco installation from 11.3RC/10.5RC (links below) or upgrade an existing project. Both scenarios can provide ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found