cancel
Showing results for 
Search instead for 
Did you mean: 

UI5: Multiple backends in static webserver (IIS)

fabio_ubbiali
Explorer

Dear Experts,

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

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 🙂 )

--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

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

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

you should install AAR,url Rewrite and

below is for client UI5.

junwu
Active Contributor
0 Kudos

you should ask in .net forum. not here.