4

We have an asp.net core application hosted in azure as web-app. We have pretty big front-end including few javascript files, images and html. And sometimes, request for a static files(for instance something.js) just runs into endless process and replies after long delay with status 502 Bad Gateway. It happens not often, but it is a big problem for us. All our static files are placed under the wwwroot directory.

Have someone experienced something similar?

6
  • Do you have the same issue if running locally? Commented Dec 5, 2016 at 16:46
  • Unrelated question: If you have a big/high traffic page and use azure, why not host static files on the CDN instead? Do you have many small files or few big ones? Commented Dec 5, 2016 at 17:20
  • @Tseng . I have ng2 application and I am using webpack minification strategy, so I dont have huge amount of *.js files. Also, I don't have big traffic, on my webapp. Commented Dec 5, 2016 at 18:58
  • @alltej. No, I am not able to reproduce it locally. Commented Dec 5, 2016 at 18:59
  • Is the static files middleware at the top of the app pipeline? Commented Dec 5, 2016 at 23:59

2 Answers 2

1

So ok, after few days of investigation together with team we came up with next solution. We have updated version of ASP.NET Core to 1.1 and the problem was solved. This problem cannot be reproduced when you deploy your application on local-IIS only on azure.

I am not sure, which team of MS have produced that bug(azure team or ASP.NET core team). But it is sad that quality of MS products have dramatically decreased during last 2-3 years.

So don't blame your self too much when some unknown bug appears in your code, probably it is a gift from MS. ;)

Sign up to request clarification or add additional context in comments.

Comments

0

It seems this issue is well documented and should be addressed in the upcoming .NET Core 1.1.1 patch (set to be released tomorrow, 03/07/2017).

https://github.com/aspnet/IISIntegration/issues/311

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.