Azure App Service Issue with DevExpress .NET MAUI Blazor Report

M. Afifah 0 Reputation points
2023-04-18T01:34:01.0433333+00:00

Hello, I am reaching out to seek help with an issue I am facing when using the Azure App Service for my .NET MAUI Blazor project, which incorporates DevExpress for reporting. My project's source code can be found at this GitHub link: https://github.com/devatrivanus18/SampleDxMauiReport.git. The project works flawlessly on my local machine; however, when I deploy the server-side code to the Azure App Service, I encounter a problem with displaying the reports. Upon further investigation, I realized that the report files are missing on the server. The report folder should contain two .repx files, but currently, there are no files present in that folder. This issue began when I initially deployed the server-side code to Azure App Service. I would appreciate any guidance or suggestions from the community on how to resolve this problem. If anyone has faced a similar issue or has any ideas on how to fix this, please share your insights. Thank you in advance for your help.

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,625 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,726 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,051 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. brtrach-MSFT 16,686 Reputation points Microsoft Employee
    2023-04-18T23:32:08.2566667+00:00

    Hello! I'm sorry to hear that you're facing issues with your .NET MAUI Blazor project on Azure App Service. I would be happy to help you with this. From what you've described, it seems like the report files are not being deployed to the Azure App Service. To troubleshoot this issue, I would recommend checking the following:

    1. Make sure that the report files are included in the project and are set to be deployed. You can check this by right-clicking on the report files in Visual Studio and selecting "Properties". In the Properties window, make sure that the "Build Action" is set to "Content" and the "Copy to Output Directory" is set to "Copy always" or "Copy if newer".
    2. Check the deployment logs to see if there were any errors during the deployment process. You can access the deployment logs by going to the Azure portal, selecting your App Service, and then selecting "Deployment Center" from the left-hand menu. From there, you can select the deployment that you want to view the logs for.
    3. I believe you already looked into this, but can you check the file system on the Azure App Service to see if the report files are present. You can do this by using FTP or the Kudu console. To access the Kudu console, go to the Azure portal, select your App Service, and then select "Advanced Tools" from the left-hand menu. From there, select "Go" under "Kudu". Once you're in the Kudu console, you can navigate to the report folder and see if the files are present. If the above steps do not resolve the issue, please let me know and we can explore other options.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.