未安装发布所需的网络发布扩展 [英] The web publishing extension is not installed which is required to publish

查看:25
本文介绍了未安装发布所需的网络发布扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图通过以下链接按照教程将 ASP.NET Web 应用程序部署到 Windows Azure 网站:https://www.windowsazure.com/en-us/develop/net/tutorials/get-started/下载公共配置文件后,它是一个.PublishSettings"文件,我返回到 Visual Studio 并在解决方案资源管理器中右键单击该项目,然后从上下文菜单中选择发布,如教程所述.但是,跳出一个警告框,它向我显示未安装发布所需的 Web 发布扩展.您可以从 http://go.microsoft.com/fwlink/?LinkID=208120."

I was tring to deploy an ASP.NET Web Application to a Windows Azure Web Site by following the tutorial through this link: https://www.windowsazure.com/en-us/develop/net/tutorials/get-started/ After download the public profile, which is a ".PublishSettings" file, I go back to Visual Studio and right-click the project in Solution Explorer and select Publish from the context menu as the tutorial said. However, a warning box jumped up and it showed me that "The Web Publishing extension is not installed which is required to publish. You can install it from http://go.microsoft.com/fwlink/?LinkID=208120."

我已经安装了Windows Azure SDK for .NET (VS 2012)",我也尝试卸载它并重新安装,但同样的问题仍然存在.

I already installed "Windows Azure SDK for .NET (VS 2012)" and I also tried to uninstall this and install again, but the same problem is still there.

有人知道怎么解决吗?我真的很感激.

Anyone knows how to solve this? I am really appreciated.

推荐答案

我遇到了 2 个相关的问题.一是未安装发布所需的网络发布扩展,二是未加载网络扩展包.

I ran into 2 issues, which were related. One was the web publishing extension is not installed which is required to publish, and the other was the web extension package did not load.

我正在为遇到此问题的其他人投票并重新发布 user3918092 的解决方案,并执行以下所有操作:

I'm upvoting and reposting user3918092's solution for others who run into this issue and do everything including:


  1. 中删除ComponentModelCacheC:Users...AppDataLocalMicrosoftVisualStudio12.0
    C:Users...AppDataRoamingMicrosoftVisualStudio12.0
  2. 修复 Azure SDK 2.4 和 VS2013U3 卸载和重新安装Azure SDK 2.4 和 VS2013U3
  3. 从解决方案中删除扩展
  4. 忽略 VS 启动时的扩展
  5. 使用 devenv/setup 和 devenv/updateconfiguration 尝试重置配置

解决办法是:

使用以下命令从以管理员身份运行的 vs 命令行中将以下项目重新安装到您的 GAC:

Reinstall the following items to your GAC using the following commands from the vs command line run as an administrator:

gacutil -i "C:Program Files (x86)Microsoft Visual Studio 12.0Common7IDEExtensionsMicrosoftWeb ToolsPublishMicrosoft.VisualStudio.Web.Publish.dll"  
gacutil -i "C:Program Files (x86)Microsoft Visual Studio 12.0Common7IDEExtensionsMicrosoftWeb ToolsPublishMicrosoft.VisualStudio.Web.Internal.Contracts.dll"

感谢用户 3918092!

Thanks to user3918092!

这篇关于未安装发布所需的网络发布扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆