Home
%3CLINGO-SUB%20id%3D%22lingo-sub-690000%22%20slang%3D%22en-US%22%3EAzure%20Web%20Apps%3A%20%E2%80%9CError%20403%20%E2%80%93%20This%20web%20app%20is%20stopped.%E2%80%9D%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-690000%22%20slang%3D%22en-US%22%3E%3CP%3EHave%20you%20ever%20come%20across%20the%20error%20message%20%E2%80%9CError%20403%20%E2%80%93%20This%20web%20app%20is%20stopped%E2%80%9D%2C%20while%20browsing%20your%20app%20hosted%20in%20Azure%3F%20If%20you%20are%20still%20wondering%20what%20the%20actual%20reason%20for%20this%20error%20is%2C%20this%20article%20may%20help.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EAbout%20the%20Error%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EWhen%20you%20see%20the%20error%20%E2%80%93%20%E2%80%9CError%20403%20%E2%80%93%20This%20web%20app%20is%20stopped%E2%80%9D%2C%20it%20is%20quite%20possible%20that%20your%20web%20app%20might%20not%20actually%20be%20stopped.%20But%20this%20is%20because%20HTTP%20403%20shares%20same%20error%20code%20with%20several%20other%20causes%2C%20which%20could%20be%20misleading%20since%20it%20hides%20the%20actual%20reason%20for%20this%20error%20message.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20816px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F118024iFFC0D446D3E6F570%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Blog%20Image%201.jpg%22%20title%3D%22Blog%20Image%201.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EHow%20to%20check%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EThe%20very%20first%20step%20is%20to%20quickly%20check%20error%20details%20from%20%3CSTRONG%3Edeveloper%E2%80%99s%20tool%20%2For%20F12%3C%2FSTRONG%3E%26nbsp%3B.%20Once%20we%20observe%20the%20traces%20on%20the%20browser%20window%2C%20it%20will%20gives%20us%20information%20about%20the%20actual%20error%20as%20shown%20below.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20804px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F118023i9E16FEC3AE46FF5B%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Blog%20Image%202.jpg%22%20title%3D%22Blog%20Image%202.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3ENotice%20the%20%E2%80%9C%3CSTRONG%3EHTTP%20403%20%3A%20IP%20forbidden%3C%2FSTRONG%3E%E2%80%9C%2C%20which%20basically%20states%20that%20the%20client%20IP%20browsing%20the%20App%20is%20not%20allowed%20to%20access%20that%20App%20service%20i.e.%20%E2%80%9CIP%20restrictions%E2%80%9D%20have%20been%20explicitly%20configured%20on%20the%20App%20service.%20You%20can%20check%20the%20list%20of%20blocked%20IP%20addresses%20from%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fapp-service%2Fapp-service-ip-restrictions%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Eportal%3C%2FA%3E%20.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ENote%3C%2FSTRONG%3E%3A%20If%20this%20is%20not%20the%20case%20for%20you%2C%20then%20%3CA%20href%3D%22https%3A%2F%2Fblogs.msdn.microsoft.com%2Fwaws%2F2016%2F01%2F05%2Fazure-web-apps-error-403-this-web-app-is-stopped%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehere%3C%2FA%3E%20are%20several%20other%20reasons%20listed%20for%20this%20error%20.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThere%20could%20be%20another%20possibility%20where%20the%20IP%20Restriction%20could%20have%20been%20configured%20using%20web.config.%20In%20such%20cases%2C%20you%20can%20display%20a%20specific%20error%20page%2C%20instead%20of%20the%20misleading%20error%20message.%20In%20below%20screenshot%20of%20web.config%2C%20we%20are%20denying%20access%20to%20IP%20range%20167.220.***.*%2F24%20for%20the%20sample%20web%20app.%20For%20this%20403%20error%2C%20we%20are%20setting%20Unauth.html%20as%20custom%20error%20page.%20Unauth.html%20is%20present%20in%20the%20folder%20site%5Cwwwroot%20folder%20of%20the%20web%20app.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ENote%3A%3C%2FSTRONG%3E%20If%20IP%20restriction%20is%20set%20though%20Azure%20portal%20then%20this%20approach%20would%20not%20help.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20636px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F118022iC62F04D9AB009D90%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Blog%20Image%203.jpg%22%20title%3D%22Blog%20Image%203.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhen%20we%20browse%20the%20web%20app%2C%20we%20see%20the%20custom%20error%20page%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20799px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F118025i894581A47551D369%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Blog%20Image%204.jpg%22%20title%3D%22Blog%20Image%204.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20we%20remove%20httpErrors%20setting%20tag%20we%20get%20default%20403%20error%3A%20%E2%80%9CYou%20do%20not%20have%20permission%20to%20view%20this%20directory%20or%20page%E2%80%9D.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20799px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F118021iCA9AE6C0F6FAA311%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Blog%20Image%205.jpg%22%20title%3D%22Blog%20Image%205.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAuthored%20by%20-%26nbsp%3BSrishti%20Badola%3C%2FP%3E%3C%2FLINGO-BODY%3E
Microsoft

Have you ever come across the error message “Error 403 – This web app is stopped”, while browsing your app hosted in Azure? If you are still wondering what the actual reason for this error is, this article may help.

 

About the Error

When you see the error – “Error 403 – This web app is stopped”, it is quite possible that your web app might not actually be stopped. But this is because HTTP 403 shares same error code with several other causes, which could be misleading since it hides the actual reason for this error message.

 

Blog Image 1.jpg

 

How to check

The very first step is to quickly check error details from developer’s tool /or F12 . Once we observe the traces on the browser window, it will gives us information about the actual error as shown below.

 

Blog Image 2.jpg

 

 

Notice the “HTTP 403 : IP forbidden“, which basically states that the client IP browsing the App is not allowed to access that App service i.e. “IP restrictions” have been explicitly configured on the App service. You can check the list of blocked IP addresses from the portal .

 

Note: If this is not the case for you, then here are several other reasons listed for this error .

 

There could be another possibility where the IP Restriction could have been configured using web.config. In such cases, you can display a specific error page, instead of the misleading error message. In below screenshot of web.config, we are denying access to IP range 167.220.***.*/24 for the sample web app. For this 403 error, we are setting Unauth.html as custom error page. Unauth.html is present in the folder site\wwwroot folder of the web app.

 

Note: If IP restriction is set though Azure portal then this approach would not help.

Blog Image 3.jpg

 

When we browse the web app, we see the custom error page:

Blog Image 4.jpg

  

If we remove httpErrors setting tag we get default 403 error: “You do not have permission to view this directory or page”.

 

Blog Image 5.jpg

 

Authored by - Srishti Badola