Symptom

You may get the following errors launching a cloud app after deploying your PowerServer API to Azure App Service:

ERROR [12424] Failed to get the app publisher from the server.

ERROR [34720] Failed to download the file. URL: https://[your_azure_website]:443/CloudAppPublisher/runtime/21.0.0.1150/manifest.json, Error description: HTTP error.(error code: 404).


Environment 

PowerServer 2021

PowerServer 2022


Cause

By default, IIS on Azure App Service does not support to download static JSON file. 


Resolution

Create a web.config file in the CloudAppPublisher folder to enable the download of JSON files.

<?xml version="1.0"?>

<configuration>
    <system.webServer>
        <staticContent>
            <mimeMap fileExtension=".json" mimeType="application/json" />
     </staticContent>
    </system.webServer>
</configuration> 


Reference links

https://stackoverflow.com/questions/51937016/unable-to-open-json-file-on-server

https://docs.microsoft.com/en-us/archive/blogs/africaapps/how-to-serve-static-json-files-from-a-windows-azure-website

 

1
0