.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Mobile WCF: Write an IM App with the .NET Compact Framework

Posted By:      Posted Date: August 21, 2010    Points: 0   Category :ASP.Net

The .NET Compact Framework 3.5 provides a subset of Windows Communication Foundation (WCF) functionality that you can harness to communicate between Windows Mobile devices and desktop PCs. We'll show you how.

Andrew Arnott

MSDN Magazine Launch 2008

View Complete Post

More Related Resource Links

Graphics To Go: Make A Mobile Imaging App With The .NET Compact Framework 2.0


This article focuses on developing for Pocket PCs, a skill which can then be transferred to Smartphone application development.

Rob Pierry

MSDN Magazine December 2006

Go Mobile: Create Compact, Robust Mobile Apps with SQL Server CE 2.0 and the .NET Compact Framework


Developers have myriad options when it comes to creating solutions for mobile devices. One of the greatest challenges facing mobile developers is finding a compact yet robust local storage solution. SQL Server CE 2.0 promises to deliver on both fronts. This new release represents a tremendous leap in terms of features and performance over its predecessor. This article will review some of the platform and tools choices developers have today. The authors will compare and contrast the significant new features in SQL Server CE 2.0 with the previous release. Following that, they will build a sample app for illustration.

Mark Brown and David Meunier

MSDN Magazine January 2003

Bar Code Scanners with the .NET Compact Framework

Summary: Learn how to make your applications use bar code scanners in a generic way-ndependent of the specific bar code scanners that are used on different devices. Using the design patterns Façade and Factory, the implementation not only supports multiple bar code scanners, but it also makes it easy to add support for other bar code scanners. After a brief discussion about bar code scanners and the bar code scanner pattern, a download code sample, written in C#, demonstrates the use of the pattern and technologies.

Serial Communication with the .NET Compact Framework

Learn how to make your applications communicate over a serial port and how to handle common issues when implementing serial solutions. After a general discussion about serial communication and a common serial communication standard, this article demonstrates a practical use of the technologies through sample source code written in C#.

Share Code: Write Code Once For Both Mobile And Desktop Apps


If you're building .NET client apps already, target them to Windows Mobile using the same skills and toolsets.

Daniel Moth

MSDN Magazine July 2007

Wandering Code: Write Mobile Agents In .NET To Roam And Interact On Your Network


In artificial intelligence, an agent is a logical entity that has some level of autonomy within its environment or host. A mobile agent has the added capability that it can move between hosts. In this article Matt Neely brings mobile agents from the halls of academia to a dev shop near you.

Matt Neely

MSDN Magazine February 2006

Mobility: Optimize Your Pocket PC Development with the .NET Compact Framework


The .NET Compact Framework can be used to write great code and great applications. As long as you take a few things into consideration and are willing to bend a rule or two, you can have your performance cake and eat it too. In this article the authors present some neat tricks to make life as a programmer easier when using the .NET Compact Framework. Later they discuss techniques to increase performance, and decrease both load time and memory footprints. Sample code is provided.

Dave Edson and John Socha-Leialoha

MSDN Magazine December 2004

Mobility: Add Keyboard Support to Compact Framework Apps by Trapping Windows Messages


The Compact Framework Control class doesn't provide direct access to Windows messages. However, with P/Invoke, a few lines of native code, and the Compact Framework MessageWindow class, it's still possible to access underlying Windows messages. This can be used to work around any .NET Framework features, including keyboard support, that are not included in the Compact Framework.

Alan Pulliam

MSDN Magazine April 2004

Windows CE: Develop Handheld Apps for the .NET Compact Framework with Visual Studio .NET


Smart Device Extensions (SDE) for Visual Studio .NET allow programmers to develop applications for the .NET Compact Framework, a new platform that maintains many of the features of the .NET Framework in a version optimized for handheld devices. This article shows how SDE provides access through Visual Studio .NET to a variety of .NET classes for devices running Windows CE, including classes for creating user interfaces. Data access classes and Web Services for the .NET Compact Framework are also explained. Following that overview, a sample Web Service called XMLList is built. Then the UI-the XMLList client-side application-is created.

Larry Roof

MSDN Magazine March 2002

Symmetric Key Encryption on the Compact Framework

There are two main types of encryption algorithms available within the .NET Compact Framework - symmetric and asymmetric encryption. This blog entry will discuss how to utilise symmetric key encryption, but first we have to outline the difference between Symmetric and Asymmetric encryption (I will discuss asymmetric key encryption in a future blog entry).

Symmetric and Asymmetric Key Encryption
Symmetric encryption algorithms (also known as ciphers) process plain text with a secret encryption key to create encrypted data (called cipher text). The same secret key is used to decrypt the cipher text back to plain text.

Asymmetric encryption (also known as public-key encryption) is a cryptography technique that uses public and private key pairs to encrypt and decrypt data respectably. The private key is a closely guarded secret, while the public key can be freely distributed over untrusted networks. You do not worry who has your public key (you could print it on a 100foot tall banner if you so desired), but you must keep your private key secret.

Redistribution of .net Compact FrameWork

Hi Every One, I Have a One Problem and need the expert Suggestion I have Developed Window Application Using VsStudio .Now In need to Deploy it on the Client P.c .So i Need to install the .net framework on the client p.c.It's going Fine I have deployed my Application successfully.BUt .net frame work tyaking too much time in installing on the client p.c is it possible to me to involve the compact .net framework in my installer project and redistribute it so that it can take less time and The deployement become more faster.. With Regards Thanx in advance

Windows Mobile - Visual Studio 2008 - Erro gravar no banco SQL compact 3.5

Boa noite estou tentando gravar em um banco de dados Compact 3.5 com o  código abaixo. Public Conexao As New SqlCeConnection("Data Source =" & (System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase) & "\banco.sdf;"))         Dim command As SqlCeCommand = Conexao.CreateCommand()         Conexao.Open()         Dim Trans As SqlCeTransaction = Conexao.BeginTransaction()         command.CommandText = "INSERT INTO clifor (nom, data, numero)VALUES (?, ?, ?)"                command.Parameters.Add("@nom", txtNome.Text)         command.Parameters.Add("@data", txtData.Text)         command.Parameters.Add("@numero", txtNumero.Text)         command.Prepare()         Trans.Commit(CommitMode.Immediate)         command.ExecuteNonQuery()         command.Dispose()         Conexao.Close()

SQL Compact 3.5 and Windows Mobile 6.5.3 emulator

Hi, I have a Windows Mobile Professional 6.5.3 project in VS2008. When I compile and run in, the emulator gives me an error that cannot find the "sqlceme35.dll" library. I guess the SQL Compact 3.5 libraries are not in the emulator, I think the CABs have not been properly delpoyed. How can I install SQL Compact 3.5 in the emulator? I did not have this problem when my project was compiled for Windows Mobile Professional 6.0 platform. Thanks

SQL server 2008 compact editioin + Entity Framework: Can we backup the SQL server compact edition da

our application uses the SQL server 2008 compact edition and entity framework. The application will control the instrument. It may run for several days before it stops. In order to protect the database crash (database failure), we plan to backup SQL compact database during running. Can we backup or duplicate the ~.sdf when application is running? Is there any SQL server command we can call inside the application to achive the backup? Or we only can backup the database when application is not running. thx!  

WCF and compact framework 3.5

Good morning, I'm developing an mobile app that consumes a WCF service(WCF service library with a local database cache hosted in IIS). There are two types of sync processes that I need: The first one is working: the sync process between the central database(Sql Server 2005) and the local database on the device(Sql server compact edition 3.5.1). The second process is that I need to send to the central database other data from the compact database. I need to publish other contracts(along the sync framework contracts that are currently exposed on the WCF Service) on the WCF service to perfom this operation. Actually I'm trying to do this, but I'm getting different errors. For the communication between the mobile app and the WCF service I'm using the proxy generated with the NetCFSvcUtil utility. Can anybody give a clue about how I can get working this scenary? I'm a newbie on Sync Framework and WCF so I really appreciate your colaboration and to be patient with me. Thank you!!

Compact Framework - MaxReceivedMessageSize property


I am using Microsoft Synchronization services to synchronize a SQL Server Compact Edition database with a SQL Server 2008 database. I used the netcfSvcUtil.exe tool to generate the wcf service the mobile client will use to connect to the server.

The client uses a basicHttpBinding, which is required for WCT on the compact framework. The synchronization works fine for small amounts of data. When I try to synchronize larger amounts of data I receive an exception with the following message on the client:

"The maximum message size quota for incoming messages(65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding."

It took a while but I figured out how and where to change this on the client. In MyServiceClientContract I change the binding as it is created:

   Public Shared Function CreateDefaultBinding() As
       Dim binding As System.ServiceModel.Channels.CustomBinding =
New System.ServiceModel.Channels.CustomBinding

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend