Visual Studio发布以消除现有应用程序错误

问题描述:

当我在VS 2015更新3中选择发布目标"时遇到此错误.已经在线查看了一段时间,但没有看到任何内容,因此,如果您能向正确的方向指点我,我们将不胜感激.

Getting this error when I select a "publish target" in VS 2015 update 3. Had a look for a while online but didn't see anything, so any help would be appreciated if you could point me in the right direction.

An error has occurred while processing the request: Method 'StopRemoteProfiler' in type 'Microsoft.VisualStudio.Web.WindowsAzure.AzureWebSite' from assembly 'Microsoft.VisualStudio.Web.WindowsAzure.Impl, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' does not have implementation

由于另一个问题,我昨晚已更新到Azure sdk 2.9.6,但与没有错误但未列出现有应用程序有关.

I updated to the to Azure sdk 2.9.6 last night because of a different issue but related where there was no error, but no existing apps were listed.

我可以确认它可以在我的工作计算机上运行,​​并且我在Azure上已有现有的应用程序,但是在我的家用计算机上却不能运行.

I can confirm that this works on my work computer and I have existing apps on Azure, but not working on my home computer.

我有点不愿卸载并重新安装VS,因此对您有所帮助.当然,如果唯一的解决方法是重置,那就这样吧.

I am a bit loath to uninstall and reinstall VS, so any help would be appreciated. Of course, if the only solution is to reset, then so be it.

谢谢,贾罗德

我遇到了同样的问题.这就是对我有用的.

I faced the same problem. This is what worked for me.

我通过转到菜单->工具->扩展和更新->更新-> Visual Studio Gallery更新了"Microsoft .NET Core 1.0.1-VS 2015工具预览2".它显示了您Studio版本的所有可用更新.选择要更新的组件.它应该下载一个名为"DotNetCore.1.0.1-VS2015Tools.Preview2.0.3.exe"的文件或类似的文件.运行此文件时,如果已经安装了软件,则选择修复选项.它将要求您关闭任何正在运行的Visual Studio实例,并确保您具有Internet连接.

I updated the "Microsoft .NET Core 1.0.1 - VS 2015 Tooling Preview 2" by going to Menu -> Tools -> Extensions and Updates -> Updates -> Visual Studio Gallery. It shows all the available updates for your version of studio. Select the component to update. It should download a file named "DotNetCore.1.0.1-VS2015Tools.Preview2.0.3.exe" or something similar. When you run this file, if you have the software already installed then select the repair option. It will ask you to close any running instances of Visual Studio, also make sure you have internet connection.

此外,如果您使用Web Deploy发布应用程序,请确保已安装Microsoft Web Deploy v3或更高版本,否则会出现错误.您可以使用Microsoft Web Platform Installer来做到这一点.

Also if you are using Web Deploy to publish your app make sure you have Microsoft Web Deploy v3 or higher installed or you will get error. You can do it using Microsoft Web Platform Installer.

希望有帮助.