Using the Remote Logging Configuration tool

If you have developed a mobile application that makes use of remote WCF or web services and you experience problems communicating with the service, you can use Remote Logging to capture all network events that occur between the mobile device/emulator and the remote service.

The Remote Logging Configuration tool allows you to activate the capturing of network event logs. You can run this tool from the Start | All Programs | .NET Compact Framework Power Toys 3.5 menu on your development machine. In the pop-up window, check the Network item (as we are only interested in network events). As indicated in the following screenshot, the network events will be stored in a file named netcf_network.log. Click the Apply button to apply these changes to your mobile device/emulator.

Using the Remote Logging Configuration tool

You can try launching the sample project you've created earlier (for the ServiceModel Metadata tool). You will notice that launching any .NET CF application on the mobile device will now prompt the following dialog message:

Using the Remote Logging Configuration tool

Choose Yes to proceed. In the sample application, try connecting to the web service. After successfully retrieving data, close the application. You will notice that a log file (named netcf_Network.log) has been generated in the same folder as your application.

Using the Remote Logging Configuration tool

It will be difficult to read this log file on the mobile device, so you will need to copy the file to your development machine.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.141.193.158