Azure Website Error 502

前端 未结 3 1864
挽巷
挽巷 2021-02-15 15:25

I have an ASP.NET Webforms Application on Azure but i always get the following Error on some sites: 502 - Web server received an invalid response while acting as a gatew

3条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-15 15:52

    That points to an application issue. The reason you are etting 502 is because the worker process is crashing and the front end is left with a request with no response and returning a 502 to say exactly that. Look for eventlog.xml under the LogFiles folder for your website. Alternatively you can try remote debugging from VS to your website.

    System.Windows.Forms.dll contains a lot of UI code that will most probably not work Azure websites sandbox. The reason it's loaded is probably because you are using something from the assembly or using something that uses something from that assembly. It doesn't have to be listed in Visual Studio to be loaded since it's a part of the standard .NET Framework.

    I would suggest looking into remote debugging and figuring out at what point this is getting loaded and why.

提交回复
热议问题