How to access .svc files in App Service

Jessica Ringberg 0 Reputation points
2025-03-20T09:33:02.02+00:00

Im moving an old Asp.net project previously hosted in Azure by another company, to a new azure app service. The project contains a few .svc files, but when deployed to Azure i get 404 whenever the application tries to execute the code inside. Locally i have no issues, but in Azure i can see the files listed but they are not accessible. If i try to remove them from the directory i also get 404, but they are still there? The .svc.cs files are not having the same issue.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,931 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Deepanshukatara-6769 16,565 Reputation points Moderator
    2025-03-20T09:52:03.17+00:00

    Hello Jessica, Welcome to MS Q&A

    By following these below steps, this should help you to diagnose and resolve the 404 errors related to your .svc files in Azure App Service.

    • Confirm that all of the app's files and folders are deployed by comparing the deployment on the hosting system to the contents of the project's publish folder. For more information on the layout of a published ASP.NET Core app, see ASP.NET Core directory structure.
    • The error is usually caused by a broken deployment on the hosting system, which includes scenarios such as the app being deployed to the wrong folder or the web.config file being missing or malformed. Perform the following steps: Delete all of the files and folders from the deployment folder on the hosting system and redeploy the contents of the app's publish folder. Confirm that the web.config file is present in the deployment and that its contents are correct.

    For more detailed instructions, you can view solution:

    Please check and let us know if any further ques

    Kindly accept answer if it helps

    Thanks

    Deepanshu


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.