Skip to content

[WebToolsE2E] Run .exe/.dll file with error "An exception occurred while trying to decrypt the element." from publish folder after publishing .NET 9.0 Razor/MVC/Blazor web app project. #57137

Closed
@v-doyang

Description

@v-doyang

REGRESSION INFO: Worked in .NET 8.0
Azure DevOps work item: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/2183540

Testcases Affected
AspNetCore90_RazorPages_IndAuth_ScaffoldingAsync
AspNetCore90_MVC_IndAuth_CreateRunPublishAsync
AspNetCore90_Blazor_WebApp_IndAuth_Scaffolding_Async
AspNetCore90_EmptyTemplate_HotReload
AspNetCore90_BlazorWebAssemblyStandaloneApp_NoAuth_IncludeSamplePages_ProgressiveWebApplication_CreateRunPublishAsync
AspNetCore90_Blazor_WebApp_IndAuth_CreateRunPublishAsync
AspNetCore90_RazorPages_IndAuth_CreateRunPublishAsync

Platform

  • Windows
  • macOS
  • Linux

INSTALL STEPS

  1. Clean machine: Win 11 x64 22h2 ENU
  2. Install VS Dev17.12 Preview 1 build main-35201.144. Branch channel
  • Web workload
  • Additional project templates(preview)
  • Run: \vspreinstall\preinstall\preinstall.cmd

Repro Steps

  1. Create a new project > ASP.NET Core Web App (Razor Page) > .NET 9.0 > Create.
  2. Publish to Folder and open output folder. Run .exe/.dll file.

Note
This issue only repro on the Pipeline machine when run our automation tests.

Error log:
ErrorInfo.txt

Actual Result
There are some errors after run .exe file
image
Expected Result
There is no error/warning after run .exe file.
image

Error message:
Error message .txt

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions