简体   繁体   English

通过Visual Studio将ASP.NET Web API发布到Azure时出错

[英]Error when publishing ASP.NET Web API to Azure over Visual Studio

I'm trying to use Visual Studio 2015 to publish a simple ASP.NET Web API to Azure over "Publish..." --> Microsoft Azure App Service. 我正在尝试使用Visual Studio 2015通过“发布...” - > Microsoft Azure App Service向Azure发布一个简单的ASP.NET Web API。 I choose to create all new service plan and resource but the deployment failed with MissingRegistrationForLocation error. 我选择创建所有新的服务计划和资源,但部署失败并出现MissingRegistrationForLocation错误。

错误

Error on Azure portal: Azure门户网站出错:

Type microsoft.insights/components Resource Id /subscriptions/8e45263d-xxxx-xxxx-xxxx-3578972e80c4/resourceGroups/xxx/providers/microsoft.insights/components/xxx StatusMessage { "error": { "code": "MissingRegistrationForLocation", "message": "The subscription is not registered for the resource type 'components' in the location 'Central US'. Please re-register for this provider in order to have access to this location." 输入microsoft.insights / components资源ID /subscriptions/8e45263d-xxxx-xxxx-xxxx-3578972e80c4/resourceGroups/xxx/providers/microsoft.insights/components/xxx StatusMessage {“error”:{“code”:“MissingRegistrationForLocation”,“消息“:”订阅未在“美国中部”位置注册资源类型“组件”。请重新注册此提供商以访问此位置。“ } } }}

Microsoft Azure annouces a breaking change but I don't know what I should do to make the Publish... function of Visual Studio work again. Microsoft Azure宣布了一个重大变化,但我不知道应该怎么做才能使Visual Studio的Publish ...功能再次运行。 Apparently the template of Visual Studio is still not updated with this change but where I can edit the Azure template for Visual Studio? 显然,Visual Studio的模板仍未更新此更改,但我可以编辑Visual Studio的Azure模板? Thank you. 谢谢。

EDIT: Download and install latest Azure SDK will solve the problem https://azure.microsoft.com/en-us/downloads/ 编辑:下载并安装最新的Azure SDK将解决问题https://azure.microsoft.com/en-us/downloads/

Download and install latest Azure SDK will solve the problem 下载并安装最新的Azure SDK将解决问题

https://azure.microsoft.com/en-us/downloads/ https://azure.microsoft.com/en-us/downloads/

The answer is also mentioned in the original post, but it took me an hour to discover this, so for others I pasted it as an answer. 答案也在原帖中提到,但我花了一个小时才发现这个,所以对于其他人我把它粘贴作为答案。

暂无
暂无

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

相关问题 使用Visual Studio 2017在Azure应用服务中发布ASP.NET应用程序后获取HTTP错误404 - Getting HTTP ERROR 404 after publishing ASP.NET application in Azure App Service with Visual Studio 2017 从 Visual Studio 2019 将 ASP.NET Core 3.1 站点发布到 Azure 时出错 - Error publishing an ASP.NET Core 3.1 site to Azure from Visual Studio 2019 Compliación:Locale must be of the form - 将 asp.net core web 应用程序发布到 IIS 或 Azure 时出错 - Compliación:Locale must be of the form - Error when publishing asp.net core web app to IIS or Azure 尝试将asp.net Web发布到Azure时,Visual Studio 2015冻结 - Visual Studio 2015 freezing when trying to publish an asp.net web to Azure 如果不手动停止应用程序,则无法将 ASP.NET Core 应用程序从 Visual Studio 发布到 Azure - Publishing ASP.NET Core app from Visual Studio to Azure does not work without manually halting the app 如何在没有Visual Studio的情况下发布ASP.NET Web API? - How to publish ASP.NET Web API without Visual Studio? Web应用程序发布失败-Visual Studio-C#-ASP.NET - Web Application publishing failed - Visual Studio - C# - ASP.NET 使用Visual Studio 2008和Windows 7将ASP.Net Web应用程序发布到映射的驱动器 - Publishing an ASP.Net web application to a mapped drive with Visual Studio 2008 and Windows 7 发布ASP.NET应用程序时,是否应该在Visual Studio Configuration Manager中将构建类型更改为Release? - When publishing an ASP.NET application, should I change the build type to Release in the Visual Studio Configuration Manager? 在Visual Studio中创建ASP.NET网站时出错 - Error when creating ASP.NET website in Visual Studio
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM