Deployment Issue

zahid muhammad 5 Reputation points
2023-07-22T20:52:47.51+00:00

i face this issue when deployment completed "You do not have permission to view this directory or page."

Windows for business Windows Client for IT Pros Devices and deployment Set up, install, or upgrade
Microsoft Security Intune Configuration Manager Deployment
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,930 questions
Windows for business Windows Server User experience Other
Microsoft Teams Microsoft Teams for business Other
{count} votes

2 answers

Sort by: Most helpful
  1. AllenLiu-MSFT 49,311 Reputation points Microsoft External Staff
    2023-07-24T02:04:07.6866667+00:00

    Hi, @zahid muhammad

    Thank you for posting in Microsoft Q&A forum.

    The error message "You do not have permission to view this directory or page" typically indicates that the user does not have the necessary permissions to access the deployed application. Here are some possible causes and solutions based on the limited information you provided:

    • Check that the application is deployed to the correct directory on the server. If the application is not deployed to the correct directory, it may not be accessible to users. You can check the location of the deployed application in the relevant configuration files on the server.
    • Check that the appropriate permissions are set for the user to access the application directory. If the user does not have the necessary permissions, they will not be able to access the application. You can check the permissions by right-clicking on the directory and selecting "Properties" > "Security".
    • Check the identity and permissions of the application pool that is running the application. The application pool identity may need to be changed to a user with the appropriate permissions to access the application directory. You can do this in the "Advanced Settings" of the application pool.
    • Check whether there are any issues with web deployment tool. Possible Cause could be insufficient permissions. Ensure that the user performing the Web Deploy operation has administrative permissions or the Web Deploy could fail due to insufficient permission. Troubleshooting common problems with web deploy provides a comprehensive guide for common problems with Web Deploy.

    If the above solutions do not solve the problem, additional information such as the technology stack used, deployment methodology, configuration files would help achieve a greater understanding of the root issue.

    References:


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Add comment".

    0 comments No comments

  2. VenkateshDodda-MSFT 24,951 Reputation points Microsoft Employee Moderator
    2023-07-24T06:34:27.0133333+00:00

    @zahid muhammad Thanks for reaching out to Microsoft Q&A, apologize for any inconvenience caused on this.

    Since you added the Azure App Service tag, I assume that you are seeing the above-mentioned error message post deploying your application to App services.

    Could you please confirm if you have configured default document. The default document is the web page that is displayed at the root URL for a website. As this happens if there is no default page in your Azure website.

    I would suggest you configure the default documents and check, do let us know you are still facing the issue.

    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.