Error when publishing to local IIS

I am trying to publish a simple 1 page data entry form to a local IIS, and I get the following erros.

MSBuild version 17.4.0+18d5aef85 for .NET
Determining projects to restore...
All projects are up-to-date for restore.
InformationBlazor -> C:\Development\InformationBlazor\bin\Release\net7.0\InformationBlazor.dll
InformationBlazor -> C:\Development\InformationBlazor\bin\Release\net7.0\publish
MSDEPLOY : error : The type initializer for 'Microsoft.Web.Deployment.DeploymentManager' threw an exception. [C:\Development\InformationBlazor\InformationBlazor.csproj]
MSDEPLOY : error : The type initializer for 'Microsoft.Web.Deployment.BuiltInTypesCache' threw an exception. [C:\Development\InformationBlazor\InformationBlazor.csproj]
MSDEPLOY : error : The provider 'Microsoft.Data.Tools.Schema.MsDeploy.MsDeployProviderFactory' could not be loaded. [C:\Development\InformationBlazor\InformationBlazor.csproj]
MSDEPLOY : error : The type 'Microsoft.Data.Tools.Schema.MsDeploy.MsDeployProviderFactory' could not be loaded. The configuration settings may not be valid. [C:\Development\InformationBlazor\InformationBlazor.csproj]
MSDEPLOY : error : The type initializer for 'Microsoft.Data.Tools.Schema.MsDeploy.MsDeployProviderBaseProviderFactory' threw an exception. [C:\Development\InformationBlazor\InformationBlazor.csproj]
MSDEPLOY : error : Could not load file or assembly 'Microsoft.Data.Tools.Schema.Sql, Version=10.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. [C:\Development\InformationBlazor\InformationBlazor.csproj]
MSDEPLOY : error count: 1. [C:\Development\InformationBlazor\InformationBlazor.csproj]

You can check this thread: Web Deployment error (first attemp)