title: Unhandled exception rendering component: Failed to construct 'URL': Invalid URL
body: <p>I've followed <a href="https://docs.microsoft.com/en-us/aspnet/core/blazor/security/webassembly/hosted-with-azure-active-directory-b2c?view=aspnetcore-5.0" rel="nofollow noreferrer">this tutorial</a> line by line. It's teaches how to generate a blazor wasm hosted application with all the code to authenticate with Azure B2C. All I had to do was to replace place the correct values in the right places.</p>
  <p><code>dotnet new blazorwasm -au IndividualB2C --aad-b2c-instance &quot;{AAD B2C INSTANCE}&quot; --api-client-id &quot;{SERVER API APP CLIENT ID}&quot; --app-id-uri &quot;{SERVER API APP ID URI}&quot; --client-id &quot;{CLIENT APP CLIENT ID}&quot; --default-scope &quot;{DEFAULT SCOPE}&quot; --domain &quot;{TENANT DOMAIN}&quot; -ho -o {APP NAME} -ssp &quot;{SIGN UP OR SIGN IN POLICY}&quot;</code></p>
  <p>Unfortunately, when I run it I get this error:</p>
  <p><a href="https://i.stack.imgur.com/67ipV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/67ipV.png" alt="enter image description here" /></a></p>
  <p>It's hard to tell where the problem is coming from. I googled the error but can't find any documentation on the issue.</p>
  <p>Thanks for helping.</p>
  <h1>Edit</h1>
  <p>Here's the script that I use to create the Blazor app</p>
  <p><code>dotnet new blazorwasm -au IndividualB2C --aad-b2c-instance &quot;testb2c.onmicrosoft.com&quot; --api-client-id &quot;3b113bda-55d5-47eb-9d8c-5e44375f1341&quot; --app-id-uri &quot;https://testb2c.onmicrosoft.com/testapi&quot; --client-id &quot;3b9fd635-a87f-4899-ad04-9a73fc6f4e21&quot; --default-scope &quot;api.read&quot; --domain &quot;testb2c.onmicrosoft.com&quot; -ho -o BlazorCmdLine -ssp &quot;B2C_1_SignUpIn&quot;</code></p>