This article describes how to set up a test environment to run Microsoft Lync 2010 for Windows Phone application on an emulator. The post outlines the requirements, installation, and steps required to deploy Lync 2010 for Windows Phone from the Windows Phone Marketplace to the Windows Phone Emulator. Kudos to Tom Pacyk who explored this idea on his blog Confused Amused, in the article Lync Mobile on a Windows Phone 7 Emulator.

Disclaimer: Use the procedure at your own risk. The procedure employs a third party application suite called Phone7Market for Windows PC. You assume all risks.

Note: Access to the Windows Phone Marketplace requires you to sign in with your Windows Live ID. If you don’t have a Windows Live ID, you can sign up at https://login.live.com.

Author: Greg Anthony

Publication date: June 20, 2012

Product version: Cumulative update for Lync Server 2010: November 2011

System Requirements

Supported Operating Systems

Windows Vista (x86 and x64) ENU with Service Pack 2 – all editions except Starter Edition.

Windows 7 (x86 and x64) ENU – all editions except Starter Edition.

Hardware

  • Installation requires 4 GB of free disk space on the system drive.
  • 3 GB RAM.
  • Windows Phone Emulator requires a DirectX10 or above capable graphics card with a WDDM 1.1 driver.

Platforms not supported

  • Windows Server is not supported.
  • Windows 8 is not supported.
  • Windows XP is not supported.
  • Virtual machines are not supported.

Install Windows Phone Developer Tools RTM

Windows Phone Developer Tools Overview

The Windows Phone Developer Tools includes the following:

  • Visual Studio 2010 Express for Windows Phone
  • Windows Phone Emulator Resources
  • Silverlight 4 Tools For Visual Studio
  • XNA Game Studio 4.0
  • Microsoft Expression Blend for Windows Phone

Download tools

Download and install vm_web2.exe from Windows Phone SDK 7.1. Depending on pre-requisites and additional SDK programs installed, this installation may take several hours. A reboot may be required, if so the installation will continue after log on. When the setup is complete, you are prompted with a button Run the Product Now. This launches Visual Studio 2010 Express for Windows Phone.

Download and Install Zune Software

Download and install Zune software on the computer where you want to install the Windows Phone Developer Tools.

Download and install the Phone7MarketPlace for Windows PC suite

Note: Phone7Marketplace requires Microsoft .NET Framework 4 to be installed. You can download.NET Framework 4 at Microsoft .NET.

You’ll find the download link for the Phone7MarketPlace application halfway down the page at http://ried.cl/mobile/wp7desktopmarketplace.html. Download and install the suite on the computer where you installed the Windows Phone Developer Tools.

Windows Phone 7 Emulator Setup

Each time Windows Phone Emulator is launched, it inherits the network configuration and internet options from its host machine. If the machine is behind an internet proxy such as ISA or TMG server, you need to perform the following setup for Lync Server 2010, Mobility Server connectivity, before launching the emulator. If the machine is not behind an internet proxy, skip to the next section.

WinInet option - internal mobility connectivity for on-premises Lync Server deployments

Note: This option interferes with the host machine’s ability to access internet resources behind a proxy.

1. Go to the Internet Options control panel on the host machine.

2. On the Connections tab, click the LAN settings button.

3. Under Automatic configuration, make sure all boxes are unchecked.

4. Under Proxy server, uncheck the box next to Use a proxy server...

5. Click OK for both the LAN Settings and Internet Properties dialog boxes.

6. In the System Tray of your desktop, find the ISA or Forefront TMG icon, right click it and choose Configure... to open the properties.

7. On the Settings tab, uncheck Enable ISA or Forefront TMG Client if accessing an internal Mobility Server. Otherwise, leave checked for public Mobility Server so DNS resolution will work.

8. On the Web Browser tab, uncheck Enable Web browser automatic configuration.

9. Start (or restart) the Windows Phone emulator.

Note: You can change Internet Options after the emulator is started to restore partial internet access. However, ISA or Forefront TMG client must remain off and the steps need to be repeated each time the emulator is closed or restarted. You can use the emulator between runs by pressing the back button to exit the program instead of closing the emulator.

WinInet option - public mobility connectivity such as Office 365 Lync Online

1. Go to the Internet Options control panel on the host machine.

2. On the Connections tab, click the LAN settings button.

3. Under Automatic configuration, make sure all boxes are unchecked.

4. Under Proxy server, check the box next to Use a proxy server for you LAN and Bypass proxy server for local addresses.

5. Click Advanced, add external mobility URLs to the Exceptions box, and click OK.

Note: For your on-premises mobility URLs do not add the mobility URL to the Exception box.

6. Click OK on both the LAN Settings and Internet Properties dialog boxes.

7. In the System Tray of your desktop, find the ISA or Forefront TMG icon, right click it and choose Configure... to open the properties.

8. On the Web Browser tab, uncheck Enable Web browser automatic configuration.

9. Start (or restart) the Windows Phone Emulator.

Deploy Lync Server 2010 from the Windows Phone Marketplace

Launch the Phone7Market program and search for Lync 2010.

Figure 1. Search Phone7Market for Lync 2010

Right-click the Lync 2010 result, select Quick actions, and then select Deploy to Emulator.

Figure 2. Deploy the emulator

After the Windows Phone Emulator is launched, download the Lync_2010_v4…xap file, connect to the Emulator, deploy the application, and then launch it.

Note: Windows Emulator cannot save the state of the image with Lync. This requires that you launch Phone7Market each time.

Figure 3. Lync 2010 for Windows Phone

Important: If you are using the emulator in a lab environment that does not have public certificates, you need to install the root certificate from the lab. Setup an IIS website, add the root certificate with the certificate MIME type, and then access the URL using IE in the emulator.

The easiest way is to use Fiddler in between and install the Fiddler generated root certificate in the emulator.

Emulator Usage Tips

Emulator keyboard shortcuts

  • Page up / Page down: Toggles between the software keyboard on the emulator and the hardware keyboard on your physical machine. When using your machine’s keyboard, you can TAB between fields.
  • F1: Back.
  • F2: Start.
  • F3: Search.

Retrieving Lync Logs from the Emulator

Isolated Storage Explorer Tool

Isolated Storage Explorer (ISETool.exe) is a command-line tool installed with the Windows Phone SDK. Use the Isolated Storage Explorer to copy Lync logs from of the emulator. Isolated Storage Explorer can be used in the emulator or a developer-registered device, and can be used for applications that target Windows Phone.

Isolated Storage Explorer Overview

To use Isolated Storage Explorer, the application must be installed on the emulator or device. The emulator or device must be running, but the application does not have to be running. Depending on your operating system, Isolated Storage Explorer is installed in one of following locations:

  • Program Files\Microsoft SDKs\Windows Phone\v7.1\Tools\IsolatedStorageExplorerTool
  • Program Files (x86)\Microsoft SDKs\Windows Phone\v7.1\Tools\IsolatedStorageExplorerTool

Isolated Storage Explorer has the following syntax:

ISETool.exe <ts|rs|dir[:device-folder]> <xd|de> <Product GUID> [<desktop-path>]

You can use Isolated Storage Explorer to copy the files and directories in isolated storage from the emulator or device, to your computer. You can then view the files for troubleshooting or educational purposes.

Copying logs from isolated storage

To copy files from isolated storage:

1. Deploy the Lync application to the emulator or a device. After choosing deploy to emulator from Phone7Market, select the Menu Ellipse (lower right) to bring up the application menu bar for settings and enable Diagnostics Logging.

    

Figure 4. Enable Diagnostic Logging

2. Run the application and reproduce the issue to create log files in isolated storage.

3. Sign out of Lync and exit Lync by using the Windows Phone back key (left arrow).

4. Open a command window and navigate to the location of ISETool.exe.

Note: When you copy files from the emulator, the command window must be running at the same permission level as the emulator or an error will occur.

To copy all of the files from isolated storage to your computer, type the following command. Use the Lync 2010 Product GUID obtained in the previous steps and specify a directory on your computer.

ISETool.exe ts <xd|de> <Product GUID> <desktop-path>

Where xd is for emulator and de is for device.

The following example shows a command that copies the isolated storage files to the directory C:\temp on your computer for the Lync 2010 for Windows Phone.

From a command prompt run:

C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v7.1\Tools\IsolatedStorageExplorerTool\isetool.exe" ts xd 9ce93e51-5b35-e011-854c-00237de2db9e "c:\temp

This command creates a subdirectory on your computer named IsolatedStore in C:\temp and copies the files and directories in isolated storage into the IsolatedStore directory.

Warning: If the IsolatedStore directory already exists and you copy the files again, the entire contents of the IsolatedStore directory are overwritten without warning. The C:\temp directory must exist before running the command.

When retrieving logs from a physical device using ISETool, you must have the latest version of Zune software install.

For visual explorer tools, see Windows Phone Power Tools.

Additional Information

To learn more, check out the following articles:

Lync Server Resources

We Want to Hear from You