Copied to clipboard

Flag this post as spam?

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


  • Kevin 5 posts 85 karma points
    Jun 28, 2022 @ 11:03
    Kevin
    0

    v9 > v10 update - Value cannot be null. Arg_ParamName_Name

    I followed the guide here to update from latest v9 to v10 https://our.umbraco.com/documentation/Fundamentals/Setup/Upgrading/version-specific#version-9-to-version-10

    All seemed to go ok but when i build I get the following in startup.cs

    enter image description here

    Which then goes to program.cs and throws

    This exception was originally thrown at this call stack:
    [External Code]
    myapp.Startup.Configure.AnonymousMethod__4_1(Umbraco.Cms.Web.Common.ApplicationBuilder.IUmbracoEndpointBuilderContext) in Startup.cs
    [External Code]
    myapp.Startup.Configure(Microsoft.AspNetCore.Builder.IApplicationBuilder, Microsoft.AspNetCore.Hosting.IWebHostEnvironment) in Startup.cs
    [External Code]
    myapp.Program.Main(string[]) in Program.cs
    

    Any ideas?

  • Dennis 61 posts 309 karma points
    Jun 28, 2022 @ 14:25
    Dennis
    0

    Hi Kevin!

    We've had this error recently as well and we got pointed out that it may be the permissions on your database that are off. Umbraco may be unable to update the tables in your database and throws this random meaningless exception.

    To solve this, make sure that the user that connects to the database has the right permissions to alter the database.

  • Thondar 1 post 21 karma points
    Jun 28, 2022 @ 17:04
    Thondar
    0

    Im getting this same error on a clean install of umbraco 10, any ideas?

  • James Cordrey 4 posts 104 karma points
    Jun 29, 2022 @ 03:36
    James Cordrey
    100

    I was getting the same issue when I was upgrading today, (and doing a clean install).

    Turns out I didn't have the right version of .NET 6 installed.

    I glossed over the warning about .NET 6 at the top of https://our.umbraco.com/documentation/Fundamentals/Setup/Upgrading/version-specific because I thought I had the latest version installed already.

    Turns out I had 6.0.2 installed, but I needed 6.0.5.

    Downloaded the latest .NET 6 SDK, installed it, rebuilt, and everything went smooth.

  • Kevin 5 posts 85 karma points
    Jun 29, 2022 @ 07:57
    Kevin
    0

    Some more context

    • Site is fairly vanilla and doesn't use many packages
    • Update performed locally in VS
    • Database is hosted on Azure
    • Updated from 9.x to 9 latest - All fine
    • Updated from 9 latest to v10 - Above error
  • Dennis 61 posts 309 karma points
    Jun 29, 2022 @ 08:39
    Dennis
    0

    @Kevin @Thondar

    Did you check your user permissions on the database? Lack of permissions causes this error. Solution: give the user the more permissions on the database.

  • Kevin 5 posts 85 karma points
    Jul 01, 2022 @ 09:03
    Kevin
    0

    @Dennis, yes, DB permissions are fine. I'll double check .NET versions installed and see if that makes a difference per @James comment

  • Kevin 5 posts 85 karma points
    Jul 01, 2022 @ 09:57
    Kevin
    0

    Pleased to say, my error was also caused by the wrong .net sdk version. It was slightly below 6.0.300! It does mention it on the guidelines but is somehow still easy to miss!!

Please Sign in or register to post replies

Write your reply to:

Draft