Click here to Skip to main content
16,012,316 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I am building a C# project in Visual Studio-15 on communicating between a windows phone and a windows pc. Communication in terms of sending files(.pdf,.docx) etc from Windows mobile to windows PC.

Both the devices are running on Windows 8.1

I have tried the below link but this is not helping according to my project.

Need your guidance as soon as possible

Thank you.

What I have tried:

http://www.codeproject.com/Tips/893352/Using-WCF-Service-in-Windows-Phone
Posted
Updated 5-Apr-16 7:38am
Comments
Sergey Alexandrovich Kryukov 1-Apr-16 21:00pm    
Just sending files? Why not simply using existing Windows file sharing service? If you want to write your own, just write it. You did not show what you have tried (the section "What I have tried" is not for sharing CodeProject articles, but for showing what you have done), so there is no a way to figure out what is your problem.
—SA
Member 10259403 5-Apr-16 12:36pm    
Yes sir, i haven't tried anything yet its because i don't know from where to start from......Sir please guide me from begining like am just student doing my Engg in 2nd year....so i dont know more on this stuff.....it would very helpful if you show me path from where i can start from.

1 solution

One obvious option is using an available FTP server on the server side, then the other side can act as its client. This is how: FtpWebRequest Class (System.Net)[^].

Apparently, it can be HTTP, but then you would need to have some Web sever and some site installed.

As a custom way, you can use "classical" .NET remoting or newer WCF. Basically, you can host the service in IIS or self-host it, then the most adequate host would be a Windows Service Application. I would recommend to learn WCF, its knowledge should pay off sooner or later:
What Is Windows Communication Foundation[^],
A Developer's Introduction to Windows Communication Foundation 4[^],
Self Hosting Windows Communication Foundation Services[^],

See also:
Developing Windows Service Applications[^],
Walkthrough: Creating a Windows Service Application in the Component Designer[^].

—SA
 
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