Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/visual-studio/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio 此Azure部署错误意味着什么?_Visual Studio_Azure_Publish_Diagnostics - Fatal编程技术网

Visual studio 此Azure部署错误意味着什么?

Visual studio 此Azure部署错误意味着什么?,visual-studio,azure,publish,diagnostics,Visual Studio,Azure,Publish,Diagnostics,当我尝试通过Visual Studio 2012部署到Azure云服务时,出现以下错误: Windows Azure could not find the resource Diagnostics in the service package. To upgrade the deployment, you must add the resource. Otherwise, perform a new deployment. 你知道这意味着什么,或者我如何修复它吗?我解决这个问题的方法是进入A

当我尝试通过Visual Studio 2012部署到Azure云服务时,出现以下错误:

Windows Azure could not find the resource Diagnostics in the service package. To 
upgrade the deployment, you must add the resource. Otherwise, perform a new deployment.

你知道这意味着什么,或者我如何修复它吗?

我解决这个问题的方法是进入Azure门户上的云服务,单击底部的垃圾桶,然后选择“删除我网站的生产部署”。我从Visual Studio重新上传,它成功了。

在Azure Publish Advanced Settings中使用临时未选中的“Deployment update”复选框发布您的云服务一次。

发布到新服务时,这是可以的,因为部署不必比较已经存在的内容(这是一个新服务,因此没有任何内容)你的包裹里有什么。但是,在升级服务时,必须在现有服务和您尝试上载的包之间匹配大量设置。因此,你所犯的错误不是因为你的软件包中有额外的东西,而是因为你现有的服务中有额外的东西,而你正在上传的软件包中缺少了这些东西。希望有帮助

为了解决这个问题,我删除了我的部署(生产部署)并再次上传了它