Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# Windows Phone
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 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;
 
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
Posted 26-Jun-13 4:34am
Comments
ThePhantomUpvoter at 26-Jun-13 9:37am
   
You must add a reference to assembly; System

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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?
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 273
1 Maciej Los 255
2 Aajmot Sk 234
3 Richard MacCutchan 200
4 Marcin Kozub 195
0 OriginalGriff 7,903
1 Sergey Alexandrovich Kryukov 7,127
2 DamithSL 5,604
3 Manas Bhardwaj 4,986
4 Maciej Los 4,820


Advertise | Privacy | Mobile
Web02 | 2.8.1411023.1 | Last Updated 26 Jun 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100