Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

I am not able to deploy the application to Azure from Visual Studio Code #979

Open
matewiszt opened this issue Nov 28, 2023 · 1 comment
Assignees

Comments

@matewiszt
Copy link

As Visual Studio for Mac will retire next year, I am trying to deploy eShopOnWeb via Visual Studio Code. When I try to deploy the Web project, it happens successfully but the webpage on the deployed service says "You do not have permission to view this directory or page.". If I turn on application logging in the App Service, it says: "The Web server is configured to not list the contents of this directory." It seems there is no web.config file in the folder to be picked up by IIS to suessfully launch the application.

These are my App Service settings:
Location: East US
Publishing model: Code
Runtime stack: Dotnet - v7.0
OS: Windows
Pricing: Free (F1)

I tried to deploy a sample application to this App Service (you can find the steps here: https://learn.microsoft.com/en-us/azure/app-service/quickstart-dotnetcore?tabs=net70&pivots=development-environment-vscode) and the application launches without issues. What am I doing wrong?

@SrushtiPasari94
Copy link
Contributor

SrushtiPasari94 commented Jan 30, 2024

@matewiszt Able to reproduce the issue, Now working to find the root cause of the issue.
By that time, you can use these ways of deployment using visual studio code dev container or GitHub codespaces for development process. https://github.com/dotnet-architecture/eShopOnWeb/blob/main/.devcontainer/devcontainerreadme.md

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants