The page address is not displaying anything, it just shows a blank page.

samirls 20 Reputation points
2024-12-11T19:19:05.4533333+00:00

I published my web app using Azure App Service (Windows). My application is MVC, dot net 8, with a database. The database works fine. I can connect to the database and run the application normally on my local machine, but after publishing the application on Azure, the result is a blank page. There are no errors to indicate what I can do, and I couldn't find any logs on Azure to give me a clue. I have been trying for 3 days and have no idea how to proceed. If anyone can help, I would be very grateful.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,960 questions
{count} votes

Accepted answer
  1. Shree Hima Bindu Maganti 4,925 Reputation points Microsoft External Staff Moderator
    2024-12-17T17:50:45.4033333+00:00

    Hi samirls ,

    Thankyou for your Response.

    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to accept the answer.
    issue: The page address is not displaying anything, it just shows a blank page.
    solutions: After I learned that I had to enable the logs, go to the page, refresh it, and check the Azure site console for the logs, I was finally able to see an error message. Once I found an error indication, it was easy to fix.

    The problem was that my .NET 8 version had a function that wasn’t present in the .NET 8 version on the Azure virtual machine. A very strange issue, which could only have been avoided if I had used Docker. However, I managed to work around the situation using ChatGPT, which created a function in my code to ignore the additional functionality my system had. That extra functionality didn’t make any difference in my application.
    You can mark it 'Accept Answer' and 'Upvote' if this helped you.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.