Home > Mobile >  ASP.NET Core with React.js fails to run in Azure
ASP.NET Core with React.js fails to run in Azure

Time:07-22

Created a new app in VS2022 from tamplate:

enter image description here

Everything runs fine locally and I get the Json payload successfully (fetch-data).

However, when deployed to Azure it does not. It looks as if routing does not work for some reason. enter image description here

I've tried different suggestions here: enter image description here

Error: enter image description here Please help

CodePudding user response:

I have followed the steps you provided, and the demo application works well in my side. And I think your app service is normal, the issue should be related to publish file.


Test Environment

Microsoft Visual Studio Enterprise 2022 (64-bit) - Current Version 17.2.4

PM> node -v
v16.15.0
PM> npm -v
8.13.2

I know it works well in your local now, and please follow my suggestion to try

  • Related