简体   繁体   English

将 ASP.NET Core 应用程序发布到 Azure 不起作用

[英]Publish ASP.NET Core app to Azure not working

I am literally following the steps here line by line:我逐行按照这里的步骤进行操作:

https://docs.microsoft.com/en-us/aspnet/core/tutorials/publish-to-azure-webapp-using-vs?view=aspnetcore-3.1 https://docs.microsoft.com/en-us/aspnet/core/tutorials/publish-to-azure-webapp-using-vs?view=aspnetcore-3.1

But I keep getting this error when trying to publish the app:但是我在尝试发布应用程序时不断收到此错误:

Severity    Code    Description Project File    Line    Suppression State
Error       Web deployment task failed. ((4/10/2020 10:26:03 PM) An error occurred when the request was processed on the remote computer.)

(4/10/2020 10:26:03 PM) An error occurred when the request was processed on the remote computer.
The database 'WebApplication1_db' could not be created. WebApplication1     0   

Can someone please point me in the right direction?有人可以指出我正确的方向吗? What does this error mean?这个错误是什么意思? Is it an issue with the code?是代码的问题吗? Azure?蔚蓝? How do I start trying to diagnose the issue?我如何开始尝试诊断问题? What tests can I run?我可以运行哪些测试? I've spent ages on this and can't figure it out.我已经花了很多年的时间,无法弄清楚。

Thanks!谢谢!

According to the official documentation, the following are my steps.根据官方文档,以下是我的步骤。 The official documentation and deployment steps are normal.官方文档和部署步骤都正常。 If you still have any doubts, it is recommended to reinstall VS2019 or replace the pc and try again, which may be due to the computer environment.如果还有疑问,建议重装VS2019或者更换电脑再试,可能是电脑环境问题。

The steps are as follows:步骤如下:

Step 1.第1步。

在此处输入图片说明

Step 2.第2步。

在此处输入图片说明

Step 3.第 3 步。

在此处输入图片说明

Step 4.第四步。

在此处输入图片说明

Step 5.第 5 步。

在此处输入图片说明

Step 6.第 6 步。

在此处输入图片说明

Step 7.第 7 步。

在此处输入图片说明

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 ASP.NET 核心 Razor 页面中的 Active Directory 交互式身份验证 - Active Directory Interactive authentication in ASP.NET Core Razor Pages Web App not working when deployed to Azure App Service 从 Docker 容器内的 ASP.Net Core 应用程序(Blazor)连接到 Azure SQL 服务器时出错 - Error when connecting to Azure SQL Server from an ASP.Net Core App (Blazor) inside a Docker container 有没有办法在 Azure 上使用托管 ASP.NET 核心 web 应用程序的本地数据库? - Is there a way to use a local db with a hosted ASP.NET core web app on Azure? 更新 SQL 查询不起作用 ASP.NET Core C# 控制台应用程序 - Update SQL Query not working ASP.NET Core C# Console App 编辑无法在我的 ASP.NET Core MVC 项目上正常工作 - edit not working correctly on my ASP.NET Core MVC project ASP.NET Core存储过程无法循环工作 - ASP.NET Core stored procedure not working in loop 将带有实体框架的 Publish.Net Core 应用程序发布到 IIS - Publish .Net Core app with Entity Framework to IIS C# ASP.NET MVC 5 发布带有实体框架的应用程序(Css 和 SQL 错误) - C# ASP.NET MVC 5 publish app with Enitity Framework (Css and SQL Error) 在 ASP.NET 核心中使用 Azure SQL 弹性数据库客户端时,是否可以使用分片信息注入 DbContext? - Is it possible to inject DbContext with sharding info when using the Azure SQL Elastic Database Client in ASP.NET Core? SQL 发布时出现连接问题 ASP.NET MVC项目 - SQL Connection Problem When Publish ASP.NET MVC Project
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM