Unable to host blazor Webassembly authentication app in IIS

shaker ismaeel 1 Reputation point
2021-08-17T12:39:46.95+00:00

I've created blazor webassembly app :

using visual studio 2019

new project => blazor webAssembly app => Authenticatin type : Individual accounts
checked Asp.Net hosted check box

I did not change anything just used the default template

Its working fine in visual studio and I can register , login and logout successfully

but when hosting on IIS failed with the following error :

Error: Could not load settings from '_configuration/MyWebstie.Client'
at a.createUserManager (http://mywebsiteaut.com/_content/Microsoft.AspNetCore.Components.WebAssembly.Authentication/AuthenticationService.js:1:5887)

Note : I already installed (aspnetcore-runtime-3.1.18-win-x64.exe) and (urlrewrite2.exe)

Any help please, I am stuck on this

Windows development | Internet Information Services
Developer technologies | .NET | Blazor
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.