Click here to Skip to main content
13,052,342 members (57,240 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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
i downloaded from -
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=, 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.

Posted 26-Jun-13 3:34am
ThePhantomUpvoter 26-Jun-13 9:37am
You must add a reference to assembly; System

1 solution

Rate this: bad
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?

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 26 Jun 2013
Copyright © CodeProject, 1999-2017
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