VS2015:未安装与FTP服务器通信的组件 [英] VS2015: The components for communicating with FTP servers are not installed

查看:1119
本文介绍了VS2015:未安装与FTP服务器通信的组件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用Visual Studio 2010 Pro来开发我的vb.net桌面应用程序。我通过clickonce将应用程序发布到带有ftp的Web服务器。我的设置如下所示:



发布文件夹位置: ftp://www.webaddress.com/folder/



安装文件夹: http://webaddress.com/folder/



这个在VS2010中非常完美。



我正在尝试升级到Visual Studio 2015社区版。当我尝试发布我的应用程序时,出现错误与FTP服务器通信的组件未安装。我在安装了VS2015的两台电脑上都出现了这个错误。



奇怪的是,这个错误信息并不多。我见过的唯一解决方案是修复安装。我做到了这一点,但仍然是不行。我读到的另一个原因是有Xamarin安装,但我从来没有安装。



有没有人遇到这个,知道修正是什么?






编辑:

似乎与安装的组件没有任何关系。在我发布这个问题后,我意识到通过FTP发布早些时候在我做的一个小示例Hello World项目(脑屁)上工作。只有一次,我加载了我现有的项目,这个错误开始显示出来。



我关闭了解决方案,创建了另一个简单的项目,但仍然出现错误。我关闭了visual studio,重新打开了示例项目,并且ftp工作了!然后我打开了我现有的项目,并且ftp也在那里工作?!所以我不知道触发器是什么,我还没有再次失败,但也许这个信息将帮助找出是什么导致了失败。






编辑(3/30/2017)



只是更新 - 我仍然有这个问题。这个问题发生在Visual Studio 2013,2015和2017年。我曾尝试重新安装c ++可再发行,但仍然没有。看起来其他人在web项目中遇到了这个问题,但我的桌面应用程序是通过FTP通过clickonce发布的。它必须与我正在处理的解决方案有关,该解决方案最初是在2010年创建的,因为该问题不存在于任何其他项目中。

解决方案
这是一个全面的工作,但我注意到每次打开我的应用程序(源于VS2010)时都会出现此错误,并尝试在没有首先打开示例应用程序的情况下发布。我创建了一个新项目并将其发布到我的FTP服务器。当我收到这个错误时,我关闭Visual Studio,重新打开并打开示例项目,发布该应用程序,然后打开我的真实应用程序。然后发布工作。

这每次都有效,似乎是Visual Studio中的一个bug,可能与我的应用最初是在2010年构建的事实有关。



也许这会帮助其他人解决同样的问题。这是一个很大的痛苦,所以希望MS能够解决这个问题。


I have been using Visual Studio 2010 Pro for my vb.net desktop application development. I publish the apps via clickonce to a web server with ftp. My settings look like this:

Publishing folder location: ftp://www.webaddress.com/folder/

Installation folder : http://webaddress.com/folder/

This works perfect in VS2010.

I am now trying to upgrade to Visual Studio 2015 community edition. When I try to publish my app, I get the error "The components for communicating with FTP servers are not installed". I am getting this error on both computers I have installed VS2015 on.

Strangely enough, there isn't much info on this error. The only solution I've seen is to repair the installation. I did this but still a no go.. Another cause I read about is having Xamarin installed, but I have never had that installed.

Has anybody run into this and know what the fix is??


EDIT:

It appears to not actually have anything to do with installed components. After I posted this question, I realized the publish via FTP had worked earlier on a little sample Hello World project i made (brain fart). It was only once I loaded my existing project that this error started showing up.

I closed the solution, created another simple project, and still got the error. I closed visual studio, reopened the sample project, and ftp worked! I then opened my existing project and ftp worked there too?! So I don't know what the trigger is, and I haven't had it fail again yet, but maybe this info will help figure out what is causing the failure.


EDIT (3/30/2017)

Just an update - I am still having this issue. This issue happens on visual studio 2013, 2015, and 2017. I have tried reinstalling the c++ redistributable, still nothing. It seems others are having this issue with a web project but mine is a desktop app publishing with clickonce via FTP. It must be something to do with solution I am working on that was originally created in 2010, as the issue is not present in any other project.

解决方案

This is a total work around, but I've noticed I get this error every time I open my app (that originated in VS2010) and try to publish without first opening a sample app. I created a new project and published it to my FTP server. When I receive this error, I close Visual studio, reopen and the open the sample project, publish that app, then open my real app. The publish then works.

This works every time, and seems to be a bug in Visual studio, and probably has something to do with the fact that my app was originally built in 2010.

Maybe this will help somebody else with the same issue. It's a big pain so hopefully MS gets a fix in for this.

这篇关于VS2015:未安装与FTP服务器通信的组件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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