Skip to content

Can't add a new passkey with an error "An error occurred while processing your request" after publish the Blazor Web App to Azure. #63788

@jinzhao1127

Description

@jinzhao1127

REGRESSION INFO: Not a regression (Also reproduces on 10.0 Preview 7 and 10.0 RC 2)

INSTALL STEPS:

  1. Install VS 18.0 Insiders 1.2 from https://aka.ms/vs/18/insiders/vs_Enterprise.exe

    • Web workload + .NET Desktop workload
    • Including 10.0.100-rc.1.25451.107

Platform

  • Windows
  • macOS
  • Linux

Repro Steps

  1. File > New Project > Select "Blazor Web App" template > Next, Give a name > Next > select ".NET 10.0" and change Authentication to "Individual Accounts" and set the Interactive render mode as Server> Create
  2. Run the project and can register the account and log in successfully
  3. Right-click project > Publish, choose Azure > Next > Azure App Service (Windows) > Next
  4. After profile creation, add a database configuration dependency under the "Service Dependencies" node, and configure the Azure SQL database.
  5. Publish the application to Azure
  6. Click the Register, register a new account and log in using the account just registered
  7. Click on the Account, and then click Passkeys

Actual Result

It failed to add Passkey with error "An error occurred while processing your request"

Image

Error Log

Error.
An error occurred while processing your request.
Request ID: 00-d391275d77723d0d2ba62842e0f30370-dfde7fe2092d1c16-00

Development Mode
Swapping to Development environment will display more detailed information about the error that occurred.

The Development environment shouldn't be enabled for deployed applications. It can result in displaying sensitive information from exceptions to end users. For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development and restarting the app.

Expected Result:
It can be add the Passkey successfully.

Note:

  1. This issue does not repro for publish to folder
  2. This issue does not repro for Running the app
  3. When I directly click log in with a passkey, it will pop up the dialog
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-identityIncludes: Identity and providers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions