projectname.scss and tempus-dominus.scss not found

We just upgraded our current project from ASP.NET Maker 2021 to 2022 and we are getting the below error.

Error: C:\Users\***\Documents\wwwroot\***\***\wwwroot/css\ourprojectname.scss not found.
Error: C:\Users\***\Documents\wwwroot\***\***\wwwroot/css\tempus-dominus.scss not found.

Make sure that the .scss files are generated. You should see these files in the Generate Dialog box under Other files, and generated under “wwwroot/css/” folder after generation.Also check the HTML tab to make sure that the preview is displayed normally without any errors. If no, select another theme and then switch back to the original theme.

Thank you for you help. Now we are receiving the error below.

C:\Users\***\Documents\wwwroot\***\***\Models\src\CaptchaGenerator.cs(1,7): error CS0246: The type or namespace name 'SkiaSharp'  could not be found
C:\Users\***\Documents\wwwroot\***\***\Models\src\CaptchaGenerator.cs(13,19): error CS0246: The type or namespace name 'SKColor'  could not be found
C:\Users\***\Documents\wwwroot\***\***\Models\src\CaptchaGenerator.cs(110,13): error CS0246: The type or namespace name 'SKEncodedImageFormat' could not be found
C:\Users\***\Documents\wwwroot\***\***\Models\src\CaptchaGenerator.cs(122,19): error CS0246: The type or namespace name 'SKImage' could not be found
C:\Users\***\Documents\wwwroot\***\***\Models\src\ICaptchaGenerator.cs(14,93): error CS0103: The name 'SKEncodedImageFormat' does not exist in the current context [C:\Users\***\Documents\wwwroot\***\***\*projectname.csproj]

Build FAILED.

This is a known issue related to the Captcha extension for registered users. Please make sure that you have updated to the latest extension (Tools → Update Template).

Thank you for your response. The above error has now been resolved after updating the template and we have successfully generated the code.However, we we log in, we get the following error message.An unhandled exception occurred while processing the request.
Win32Exception: The certificate chain was issued by an authority that is not trusted.
Unknown locationSqlException: A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The certificate chain was issued by an authority that is not trusted.)
Microsoft.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, bool breakConnection, Action wrapCloseInAction)

The certificate chain was issued by an authority that is not trusted.

You can ignore the error by adding the following codes in the Database_Connecting server event:
connstr += “TrustServerCertificate=True;”;

I have modified the the Database_Connecting server event as below:
Database Connecting event

public void Database_Connecting(ref string connstr += "TrustServerCertificate=True;";) {
  // Check Info["id"] for database ID if more than one database
}

I am now receiving the following errors during code generationDetermining projects to restore…
Restored C:\Users*\Documents\wwwroot***project_name.csproj (in 3.7 sec).

C:\Users\***\Documents\wwwroot\***\***\Models\src\DatabaseConnection.cs(22,29): error CS1002: ; expected [C:\Users\***\Documents\wwwroot\***\***\***project_name.csproj]
C:\Users\***\Documents\wwwroot\***\***\Models\src\DatabaseConnection.cs(22,34): error CS1031: Type expected [C:\Users\***\Documents\wwwroot\***\***\***project_name.csproj]
C:\Users\***\Documents\wwwroot\***\***\Models\src\DatabaseConnection.cs(22,34): error CS1514: { expected [C:\Users\***\Documents\wwwroot\***\***\***project_name.csproj]
C:\Users\***\Documents\wwwroot\***\***\Models\src\DatabaseConnection.cs(22,34): error CS1513: } expected [C:\Users\***\Documents\wwwroot\***\***\***project_name.csproj]
C:\Users\***\Documents\wwwroot\***\***\Models\src\DatabaseConnection.cs(24,68): error CS1003: Syntax error, ',' expected [C:\Users\***\Documents\wwwroot\***\***\***project_name.csproj]
C:\Users\***\Documents\wwwroot\***\***\Models\src\DatabaseConnection.cs(24,101): error CS1026: ) expected [C:\Users\***\Documents\wwwroot\***\***\***project_name.csproj]
C:\Users\***\Documents\wwwroot\***\***\Models\src\DatabaseConnection.cs(24,102): error CS1519: Invalid token ')' in class, record, struct, or interface member declaration [C:\Users\***\Documents\wwwroot\***\***\***project_name.csproj]
Build FAILED.

C:\Users\***\Documents\wwwroot\***\***\Models\src\DatabaseConnection.cs(22,29): error CS1002: ; expected [C:\Users\***\Documents\wwwroot\***\***\***project_name.csproj]
C:\Users\***\Documents\wwwroot\***\***\Models\src\DatabaseConnection.cs(22,34): error CS1031: Type expected [C:\Users\***\Documents\wwwroot\***\***\***project_name.csproj]
C:\Users\***\Documents\wwwroot\***\***\Models\src\DatabaseConnection.cs(22,34): error CS1514: { expected [C:\Users\***\Documents\wwwroot\***\***\***project_name.csproj]
C:\Users\***\Documents\wwwroot\***\***\Models\src\DatabaseConnection.cs(22,34): error CS1513: } expected [C:\Users\***\Documents\wwwroot\***\***\***project_name.csproj]
C:\Users\***\Documents\wwwroot\***\***\Models\src\DatabaseConnection.cs(24,68): error CS1003: Syntax error, ',' expected [C:\Users\***\Documents\wwwroot\***\***\***project_name.csproj]
C:\Users\***\Documents\wwwroot\***\***\Models\src\DatabaseConnection.cs(24,101): error CS1026: ) expected [C:\Users\***\Documents\wwwroot\***\***\***project_name.csproj]
C:\Users\***\Documents\wwwroot\***\***\Models\src\DatabaseConnection.cs(24,102): error CS1519: Invalid token ')' in class, record, struct, or interface member declaration [C:\Users\***\Documents\wwwroot\***\***\***project_name.csproj]

0 Warning(s)
7 Error(s)

aspsteve wrote:

public void Database_Connecting(ref string connstr += “TrustServerCertificate=True;”:wink: {

You have wrong syntax. You should concatenate the connstr inside the method, not in the argument.