Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
C#
edtFTPnet.dll
,
i downloaded from -
http://www.enterprisedt.com/products/edtftpnetcompact/overview.html
but, after debugging it showing

C#
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
Comments
[no name] 26-Jun-13 9:37am    
You must add a reference to assembly; System

1 solution

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?
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900