Share via

Application Build with sdk .NET9 rc-1 and .NET9 rc-2 were not working in Azure app service(Linux)

Raja VIGNESH B 0 Reputation points
2024-10-25T11:40:30.1666667+00:00

Description

I have created a new ASP.NET core web application (Razor Pages), and build the application with .NET9 rc-1 sdk. Then while publishing it to Azure app service Linux, it throws application error. The same behavior occurs while building the application with .NET9 rc-2 sdk (latest).

But If I build the same application with .NET9 preview 6, the application works as expected and the output was proper.

Note: In local windows machine, the application runs properly with the .NET9 rc1- or rc-2 sdk

Reproduction Steps

  1. Install the .NET9 rc-1 or rc-2 sdk in your machine.
  2. Create a new Asp.Net Core Web app (Razor pages) and build the application.
  3. Now publish the application in the Azure app service (Linux).
  4. You will get 504 gateway error initially and then while refreshing the page, you will get the Application error on the web page.

Expected behavior

The application should work properly without any errors as it runs properly in Local.

Actual behavior

It throws application error

Azure App Service
Azure App Service

Azure App Service is a service used to create and deploy scalable, mission-critical web apps.

Developer technologies | .NET | Other
Developer technologies | ASP.NET Core | Other

1 answer

Sort by: Most helpful
  1. Anonymous
    2024-10-28T07:58:26.6633333+00:00

    Hi @Raja VIGNESH B,

    I followed your steps and it works well. I will share my test result with you.

    User's image

    As we know the .net 9 still in preview stage, so maybe there is a delay in the update policy on the Azure App Service side. It is estimated that you need to wait for some test regions to be used normally and stabilized before deploying all regions.

    I am using East Asia region, and you can create a new one for testing, this can validate our guesses.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best regards,

    Jason

    Was this answer helpful?

    0 comments No comments

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.