有没有办法将文件从Windows Phone 6.5上传到FTP服务器 [英] Is there any way to upload file from Windows phone 6.5 to FTP server

查看:74
本文介绍了有没有办法将文件从Windows Phone 6.5上传到FTP服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们,



我想从widows phone 6.5上传文件到ftp服务器,但是我无法做到这一点。

我试过

Hi friends,

I want to upload file to ftp server from widows phone 6.5, but i am not able to do this things.
I tried with

edtFTPnet.dll



i从 -

http://www.enterprisedt.com/products/edtftpnetcompact/overview.html

但是,之后调试它显示



,
i downloaded from -
http://www.enterprisedt.com/products/edtftpnetcompact/overview.html
but, after debugging it showing

System.ComponentModel.Component; is defined in an assembly that is not referenced. You must add a reference to assembly; System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;





但是我没有找到System.ComponentModel.Componentreference。



如果有任何其他方式从widows手机6.5上传文件到ftp服务器请告诉我。



谢谢



but i didn't find System.ComponentModel.Componentreference.

If there any other way to upload file to ftp server from widows phone 6.5 please tell me.

thanks

推荐答案

您的项目中存在一个与项目其余部分不同的版本的依赖项正在使用。如果你注释掉引用ftp库的行并删除引用,那么项目是否会编译并运行?如果是这样,这意味着您的项目所针对的框架的任何版本都不同于ftp dll所针对的版本。如果是这种情况,您必须将您的项目降级到ftp dll所针对的任何平台版本。



- 或 -



从他们那里购买源代码(因为他们将其出售),并将其添加到您的解决方案中,使其达到您项目所使用的相同框架级别。无论哪种方式,您的项目和ftp库的system.dll依赖关系必须处于同一级别。 (这只是大多数情况,但暂时忽略边缘情况。)



要了解正在发生的事情,Visual Studio将只解析依赖关系到第一级。这意味着,如果您有一个以.net 3.5为目标的项目,VS将查找您在引用中拥有的任何库,以确保它可以找到它们。在大多数情况下,(有可移植类库之类的例外)VS不会查看引用的库并解决它们的依赖关系。 VS假定他们已经通过现有的项目引用感到满意,他们在可执行文件目录中,或者他们在GAC中。引用库中的依赖关系直到运行时才解析。这就是为什么你可以得到这样的错误,其中一个基类库返回版本错误。有意义吗?
You have a dependency in your project that is at a different version than what the rest of the project is using. If you comment out the lines that reference the ftp library and remove the reference will the project compile and run? If so, that means that whatever version of the framework your project is targeting it different than the version the ftp dll is targeting. If this is the case, you will have to "down grade" your project to whatever version of the platform the ftp dll is targeting.

- or -

Buy the source code from them (since they sell it), and add it to your solution bringing it up to the same framework level your project is using. Either way your project and the ftp library's system.dll dependency must be at the same level. (That is only mostly true but ignore the edge cases for the time being.)

To understand what is going on, Visual Studio will only resolve dependencies to the first level. Meaning that if you have a project which targets .net 3.5 for example, VS will look for any libraries you have in the references to make sure it can find them. In most cases, (there are exceptions like portable class libraries) VS will NOT look at the referenced libraries and resolve their dependencies. VS assumes they are already satisfied via an existing project reference, they are in the executable directory, or they are in the GAC. Dependencies in referenced libraries are NOT resolved until runtime. That is why you can get an error like this where a base class library comes back with a version error. Make sense?


这篇关于有没有办法将文件从Windows Phone 6.5上传到FTP服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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