Web app not displaying your code/site? Check the path

I was helping a customer this past week, and when deploying his Angular code into a web app, the following error message was being displayed:

More than often, the problem is where the web app is configured to look for the web application files vs. what is set on the code. To perform this simple check, you can check Kudu tools in the web app, and then click on the Debug Console, and select either CMD or PowerShell.

The interface is simple. Start by clicking on the graphical Windows explorer. The prompt will change automatically to reflect the navigation steps that you are performing. By default, the web app running on Windows will have the site configuration on home\site\wwwroot.

As you can see in the example below, the developer added one extra folder as the root of his application. To solve the problem, we have two simple ways: First, talk to the developer and remove that folder and ask him or her to drop all the files in the root without additional folders. The second approach is to modify the configuration files.

I'm working on my diplomatic skills lately, so I decided to take the second approach. We need to go to the Configuration item in the web app, then click on Path mappings, and configure the physical path to reflect how your application is being published, as depicted in the image below.

Anderson Patricio

Anderson Patricio is a Canadian MVP in Cloud and Datacenter Management, and Office Server and Services, besides of the Microsoft Award he also holds a Solutions Master (MCSM) in Exchange, CISSP and several other certifications. Anderson contributes to the Microsoft Community with articles, tutorials, blog posts, twitter, forums and book reviews. He is a regular contributor here at Techgenix.com, MSExchange.org, ITPROCentral.com and Anderson Patricio.org (Portuguese).

Share
Published by
Anderson Patricio

Recent Posts

Azure Windows Virtual Desktop: Avoid the fresh hell of stale user sessions

This tutorial on Azure Windows Virtual Desktop and stale users can help you cut down…

27 mins ago

Phishing campaign spoofs texas.gov domain, targets computer vendors

A convincing-looking phishing campaign purportedly from a Texas government agency is targeting computer vendors in…

4 hours ago

Top 5 cybersecurity innovations and why they’re drawing in the money

With attackers making use of every vulnerability, our sense of security has turned into insecurity.…

7 hours ago

Have you really tested your disaster recovery plan?

How do you simulate a disaster to see whether your disaster recovery plan is ready…

1 day ago

Using conditions in ARM templates when deploying infrastructure-as-code

This Quick Tip shows you a neat little coding trick that will help you when…

1 day ago

Full circle: On-premises Exchange to Microsoft 365 — and back again

Migration from on-premises Exchange to Microsoft 365 may not be a one-way street. What about…

1 day ago