веб конфиг
<PropertyGroup>
<!--это по умолчанию добавленные теги-->
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<ServiceWorkerAssetsManifest>service-worker-assets.js
</ServiceWorkerAssetsManifest>
<!-- for PublishIISAssets ===> doc: If the SDK doesn't generate
the file, for example, in a standalone Blazor WebAssembly app at
/bin/Release/{TARGET FRAMEWORK}/publish/wwwroot or bin\Release\
{TARGET FRAMEWORK}\browser-wasm\publish, depending on which version of
the SDK is used and where the {TARGET FRAMEWORK} placeholder is the
target framework, set the <PublishIISAssets> property to true in the
project file (.csproj). Usually for standalone WebAssembly apps,
this is the only required setting to move a custom web.config file
and prevent transformation of the file by the SDK.-->
<PublishIISAssets>true</PublishIISAssets>
<!-- for PublishTrimmed ===> Trims unused libraries to reduce the
deployment size of an app when publishing a self-contained
executable. For more information, see Trim self-contained
deployments
and executables. Available since .NET 6 SDK.-->
<PublishTrimmed>false</PublishTrimmed>
<!-- for BlazorEnableTimeZoneSupport ===> A data file is included
to make timezone information correct. If the app doesn't require
this feature, consider disabling it by setting the
BlazorEnableTimeZoneSupport MSBuild property in the app's project file
to false:-->
<BlazorEnableTimeZoneSupport>false</BlazorEnableTimeZoneSupport>
<BlazorWebAssemblyPreserveCollationData>false
</BlazorWebAssemblyPreserveCollationData>
<SelfContained>false</SelfContained>
<UseBlazorWebAssembly>true</UseBlazorWebAssembly>
</PropertyGroup>
еше, обратите внимание, если у вас установлены следующие пакеты
скачайте sdk тут найдите нужную вам версию

VS важно открыть от имени администратора,
для публикации, правой кнопкой мыши на проекте

публикацию разместила на сервер в папку по умолчанию C:\inetpub
, и добавила новый сайт

потом перешла в визуал студио и опубликовала Server Web IIS предварительно подключившись к сайту, и посмотрела все ли загрузилось
публикация пакета позволит правильно собрать все пути к файлам, а IIS просто указываем имя нашего порта и сайта и публикуем


там можно было использовать пароль и логин, а можно просто, я не настраивала эту часть
а, и еще в части Паннель и Конфигурация ===> Программы ===> слева меню

и затем popUp открывается и там все, что касалось IIS

там важно дать разрешение для IIS,