All seemed to go ok but when i build I get the following in startup.cs
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
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.
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.
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!!
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
Which then goes to program.cs and throws
Any ideas?
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.
Im getting this same error on a clean install of umbraco 10, any ideas?
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.
Some more context
@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.
@Dennis, yes, DB permissions are fine. I'll double check .NET versions installed and see if that makes a difference per @James comment
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!!
I also had to update Visual Studio from v17.1.5 up to the latest 17.4.2
Though it might have just been a good restart that sorted my issues.
is working on a reply...