Derik Whittaker



WP7 – Why will my Photo or Camera task launchers not work on my device

As you are building out your WP7 applications and trying to utilize either the PhotoChooserTask or CameraCaptureTask you may run into a bit of some ‘odd behavior’ if you try to run your code on your physical device but not on the emulator. 

The odd behavior is that your launcher code will work just fine on the emulator, but will return immediately with the TaskResult == Cancel when testing on your device while tethered (thanks to @smartyp for helping me w/ this).  The issue appears ONLY when your device is tethered (maybe has something to do w/ Zune).  Of course you can only debug when the phone is tethered making for some fun circular dependencies to resolve in order to debug :)

I guess for now you simply have to test/debug the launcher code via the emulator and not the physical device.

The blog below will guide you on how to use the launchers

I hope this helps other solve the mystery of why they cannot open their Photo or Camera task on a device while tethered.


Till next time,

Posted 10-01-2010 12:55 PM by Derik Whittaker
Filed under: ,



Oleksandr Krakovetskiy blog wrote Дайджест технических материалов #5 (Windows Phone 7)
on 10-27-2010 7:01 AM

Tools, Books, Guides Windows Phone 7 Developer Tools RTM (online installer) , ISO UI Design and Interaction

Ozzy wrote re: WP7 – Why will my Photo or Camera task launchers not work on my device
on 11-11-2010 6:23 PM

Thank you!!!

This was driving me nuts.

Sam Judson wrote re: WP7 – Why will my Photo or Camera task launchers not work on my device
on 11-23-2010 5:39 AM

If you use the new WPConnect tool (part of the October update to the Windows Phone 7 tools) then the camera etc will continue to work while debugging.

About The CodeBetter.Com Blog Network
CodeBetter.Com FAQ

Our Mission

Advertisers should contact Brendan

Google Reader or Homepage Latest Items
Add to My Yahoo!
Subscribe with Bloglines
Subscribe in NewsGator Online
Subscribe with myFeedster
Add to My AOL
Furl Latest Items
Subscribe in Rojo

Member Projects
DimeCasts.Net - Derik Whittaker

Friends of
Red-Gate Tools For SQL and .NET


SmartInspect .NET Logging
NGEDIT: ViEmu and Codekana
NHibernate Profiler
Balsamiq Mockups
JetBrains - ReSharper
Web Sequence Diagrams
Ducksboard<-- NEW Friend!


Site Copyright © 2007 CodeBetter.Com
Content Copyright Individual Bloggers


Community Server (Commercial Edition)