microsoft / vscode-azureappservice

Azure App Service extension for VS Code
https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azureappservice
MIT License
111 stars 94 forks source link

An error displays in the website after deploying a .NET 9.0 project to the .NET 9 web app #2684

Open v-meilei opened 2 weeks ago

v-meilei commented 2 weeks ago

OS: All Build Version: 20240927.1 .NET Version: 9.0.100-rc.1.24452.12

Repro Steps:

  1. Create a .NET 9.0 web project using command "dotnet new web".
  2. Create a basic .NET 9 Web App.
  3. Deploy the .NET 9.0 web project to the basic .NET 9 Web App.
  4. Execute "Browse Website" action.
  5. Check whether the "Hello Word!" displays in the webpage.

Expect: The "Hello Word!" displays in the webpage.

Actual: An error "HTTP Error 500.31 - ANCM Failed to Find Native Dependencies" displays in the web page. image

More Info:

  1. An error "Application Error" displays in the web page after deploying to a Linux .NET 9 web app. image
  2. Based the comments on this bug: https://github.com/microsoft/vscode-azureappservice/issues/2271, the issue should be solved in the next .NET 9.0 RC release.
nturinski commented 2 weeks ago

I think we need to support the .NET 9 runtime in order for this to work. I'll look into enabling this in the extension, though please keep an eye on the next .NET 9 RC release.

MicroFish91 commented 1 week ago

Can you retest again with .NET 9 and let us know if this works? A fix was put in not long ago that may have addressed this

v-meilei commented 1 week ago

Can you retest again with .NET 9 and let us know if this works? A fix was put in not long ago that may have addressed this

Verified this issue on the latest main branch build 20241005.1 and the current released .NET version 9.0.100-rc.2.24474.11, this issue still reproduces.