Skip to Content
1
Nov 17 at 05:14 PM

UI5: Multiple backends in static webserver (IIS)

215 Views Last edit 4 days ago 5 rev

Dear Experts,

I am approaching UI5 tooling and I created a new ui5 project with generator-easy-ui5 with the following parameters.

image.png

Following the documentation and some great community posts I've been able to manage multiple backend endpoints in the ui5.yaml (i know that they are the same endpoint :) )

image.png

--manifest.json
...
"dataSources": { "mainService": { "uri": "svc/", "type": "OData", "settings": { "odataVersion": "2.0", "localUri": "localService/metadata.xml" } } ...

It works great in my runtime server (npm start).

It doesn't work when I deploy it on iis, here the steps:

  • "npm run build:ui" --> create dist folder with all deployed files (no ui5.yaml)
  • copied dist folder into iis init folder
  • linked a new WebSite to the folder
  • start the WebSite but I run into the following error

image.png

I think the problem is that the ui5.yaml file doesn't exist and can't deduce the endpoint.

Does anyone have any ideas on how I can fix it?

Thank you

Fabio

Attachments

image.png (80.7 kB)
image.png (55.8 kB)
image.png (104.4 kB)