microsoft / Microsoft-Fabric-workload-development-sample

Demonstrates how to implement a Microsoft Fabric workload in .net and typescript
Other
30 stars 16 forks source link

Getting Initialization failed: Cannot load configuration when DevGateway starting #64

Closed rutkowskij closed 2 months ago

rutkowskij commented 3 months ago

I'm going through https://learn.microsoft.com/en-us/fabric/workload-development-kit/extensibility-back-end tutorial.

  1. Download the DevGateway from Microsoft's Download Center

  2. Run the Microsoft.Fabric.Workload.DevGateway.exe application located in the DevGateway folder. Sign in with a user that has capacity admin privileges to the capacity you defined in workload-dev-mode.json (CapacityGuid). Upon the initialization of the workload, an authentication prompt appears.

I unzipped it and copied it to Backend\DevGateway and getting when running Microsoft.Fabric.Workload.DevGateway.exe:

[2024-08-14 10:38:25.780] [Information] Starting DevGateway...
[2024-08-14 10:38:25.864] [Error] Initialization failed: Cannot load configuration
anitamayorov commented 3 months ago

Hi @rutkowskij, You should copy the workload-dev-mode.json file (located under Config folder) to your C:\ root, the DevGateway picks it from there. Please make sure to update the file with your correct capacityId and the path to the package.