I continued reading and found the answer in this question.
I needed to set the properties of the file to Copy if Newer.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have a deployed Azure Web Application that is linked to the GitHub repo triggered to automatically build and deploy with each new push to the repo on the main branch. The Github actions I wrote run without any error the same result is found in the deployment logs, with no error. When I check the end-to-end transactions of the Aure web application it indicates that it can not find the .XML file in C:\home\site\wwwroot\Web Form API.xml. My attempt to clear this error was updating the Build Action property setting of the file to Content. After updating the value I checked git changes and saw that the "Web Form API.xml" was then added to the .csproj file. I saved these updates to the local repository and pushed to my remote repo to trigger a new build/deploy process. I checked github to ensure the updated file was loaded, which it was, and that the actions successfully ran, which they also did. My issue is that the newly deployed application was still triggering the same error in the Web Application.
Web App Stack Trace
setting .XML document properties
.xl included in csproj file
updates present in remote repo
GHAction completed successfully:
How do I add the missing files that are causing this error?
I continued reading and found the answer in this question.
I needed to set the properties of the file to Copy if Newer.
Hi @Thomas, James;
I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to accept the answer.
Issue: .xml file listed in local .csproj contents but not present in Azure web app files, causing error
Solution:
I continued reading and found the answer in this question.
I needed to set the properties of the file to Copy if Newer.
If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.