Blazor Server App keep downloading the blazor.server.js file

Hamad 96 Reputation points
2020-09-22T22:00:57.827+00:00

When I run my application in localhost:5001, it works fine. But when I Publish the same app to Azure. I stay on the same page, didn't even move mouse or press any key but It keeps downloading the same file. View the attached image. If it helps.
Would please someone guide me through this?

Thankx in Advance

26573-issue.png

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

Accepted answer
  1. Hamad 96 Reputation points
    2020-09-24T09:05:46.22+00:00

    The answer to this problem is webSockets. I am using SignalR in my Application & was not using webSockets in Azure.
    So I just enable the webSocket from azure settings. And the Problem Solve.
    Same goes for IIS Server if someone deploy same App to IIS. Just Enable webSockets.

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.