I solved it in the following way.
First, check in Services which user SQL Server (MSSQLSERVER) runs as:

Next, open the Registry Editor and navigate to Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\
. Find which ID the user has. In my case, the user MSSQLSERVER has the ID S-1-5-80-3880718306-3832830129-1677859214-2598158968-1052248003
:

When you have the user's ID, in the Registry Editor, go to the path Computer\HKEY_USERS\[USER ID]\Control Panel\International
. In my case, the path is Computer\HKEY_USERS\S-1-5-80-3880718306-3832830129-1677859214-2598158968-1052248003\Control Panel\International
. There you will find two keys named Locale
and LocaleName
:

In my case, they had the following values:
Locale
= 00000c00
LocaleName
= en-SE
Change them to:
Locale
= 00000409
LocaleName
= en-US

Next, restart the service SQL Server (MSSQLSERVER).
After that, I was able to deploy the project:
