0

I am trying to deploy an aspnet core web app in the Linux App service plan.The deployment is complete but I can't get my app from browser.When I go to KUDU I can see the files deployed properly. I tried the same with Windows App service Plan it works fine. I am not sure if I am missing any step. I tried to do it both from Azure DevOps and also from Visual studio code. I am happy to share my KUDU wwwroot information just to show the files deployed.

1
  • I wrote a PowerShell to remove all the files but still, the default page exists.so any help is appreciated Commented Mar 18, 2020 at 16:05

2 Answers 2

2

If you haven't done this already (From your comment above PowerShell script), please specify a startup script for the type of app you are running > Under App Service > Configuration> General Settings.

For .Net core, you need to set - the compiled DLL name as dotnet .dll These commands or scripts are executed after the built-in Docker container is started, but before your application code is started.Checkout this document for more details.

enter image description here

Also, leverage "Diagnostic and solve problems" to fetch more details on the issue.

The default document is the web page that appears at the root URL for a website. The first matching file in the list is used. If the app uses modules that redirect based on the URL instead of providing static content, there is no need for standard documents.

You may update the application settings to the following and then check:

WEBSITE_DYNAMIC_CACHE — 0

WEBSITE_LOCAL_CACHE_OPTION- Never

  • For staging enable this else app will be cached and will not refresh on publishing.

WEBSITE_WEBDEPLOY_USE_SCM — false

  • Set false else you will not be able to use VS to publish directly.

Note that any changes you make outside the /home directory are stored in the container itself and don't persist beyond an app restart.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks Ajay. I had already set the app settings. Let me try one more time with dotnet app dll also set.
0

I am having the exact same problem.

This question pointed me at the right place. The below shows where the missing part is

enter image description here

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.