Home>

As###

I want to publish a web application created with ASP.NET Core (MVC).
If possible, I would like to borrow your wisdom. Thank you.

1. First, I created an app based on the tutorial below.
Tutorial 1
2. Execution in the local environment worked fine. CRUD is also done properly. In addition, I added the functions I want to do, such as adding the login function and search function, and it works properly, so it is OK so far.
3. I created an Azure account based on the following site, issued it according to the procedure, and published it.
Issue
However, when I jump to the URL that should have been published, the following sentence is displayed on the blank screen of the browser and it does not move to the correct page.
"The resource i am looking for has been removed, had its name changed, or is temporarily unavailable."
I would appreciate it if you could tell me how to fix the above error.

Corresponding source code

If i have any points you would like to see, please comment and I will add them.

Supplementary information (FW/tool version, etc.)

Execution environment: VisualStudio2019, .Net core 3.1

  • Answer # 1

    1. First, I created an app based on the tutorial below.

    If you do that, the EF Code First feature will probably generate the database in the LocalDB that was installed with Visual Studio 2019 when you installed it.

    Enable SQL Server in the production environment (LocalDB does not work in the production environment), set login and permissions for it, attach the .mdf file to the specified folder or run a script to generate the database You need to do that.

    It seems that Azure is used for the production environment, but if it is within the free range, I think that SQL Server can not be used, but did you think about that?

    3. I created an Azure account based on the following site, issued it according to the procedure, and published it.

    It seems to be a .NET Framework based procedure.

    I have no experience deploying to Azure, so I can't talk about it in detail, but since the production environment is significantly different between Core and .NET Framework, I think that the same thing as .NET Framework is not good.

    It seems that Core can be hosted on either Windows or Linux, but it seems that you need to first choose which way to go and deploy according to the procedure.

    For Windows, select the following document, and for Linux, select [Linux] in "Select a hosting platform" at the top of the page to read it.

    Quick Start: Create an ASP.NET Core Web App on Azure
    https://docs.microsoft.com/ja-jp/azure/app-service/quickstart-dotnetcore?pivots=platform-windows