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."

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,627 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,636 questions
Microsoft Deployment Toolkit
Microsoft Deployment Toolkit
A collection of Microsoft tools and documentation for automating desktop and server deployment. Previously known as Microsoft Solution Accelerator for Business Desktop Deployment (BDD).
859 questions
Microsoft Configuration Manager Deployment
Microsoft Configuration Manager Deployment
Microsoft Configuration Manager: An integrated solution for for managing large groups of personal computers and servers.Deployment: The process of delivering, assembling, and maintaining a particular version of a software system at a site.
942 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,408 questions
{count} votes

2 answers

Sort by: Most helpful
  1. AllenLiu-MSFT 43,061 Reputation points Microsoft Vendor
    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 19,646 Reputation points Microsoft Employee
    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