Derik Whittaker

Syndication

News


Argument Exception when Working with Secondary Tiles in WinRT (C#)

If you are attempting to work with or create secondary tiles and you are getting the following exception you may want to check your title id.

System.ArgumentException: The parameter is incorrect.

When trying to do a SecondaryTile.Exists(tileId) with the value as seen in the picture below

 

image

I was getting the ArgumentException, at first I was stumped but then it dawned on me the ID cannot contain spaces or special characters.  When I removed the spaces as seen below my errors went away.

image

The take away from here is if you are getting exceptions when working with tileId’s check that the ID does not have whitespace or special characters.

Till next time,


Posted 07-14-2012 1:28 PM by Derik Whittaker
Filed under: , ,

[Advertisement]

About The CodeBetter.Com Blog Network
CodeBetter.Com FAQ

Our Mission

Advertisers should contact Brendan

Subscribe
Google Reader or Homepage

del.icio.us CodeBetter.com Latest Items
Add to My Yahoo!
Subscribe with Bloglines
Subscribe in NewsGator Online
Subscribe with myFeedster
Add to My AOL
Furl CodeBetter.com Latest Items
Subscribe in Rojo

Member Projects
DimeCasts.Net - Derik Whittaker

Friends of Devlicio.us
Red-Gate Tools For SQL and .NET

NDepend

SlickEdit
 
SmartInspect .NET Logging
NGEDIT: ViEmu and Codekana
LiteAccounting.Com
DevExpress
Fixx
NHibernate Profiler
Unfuddle
Balsamiq Mockups
Scrumy
JetBrains - ReSharper
Umbraco
NServiceBus
RavenDb
Web Sequence Diagrams
Ducksboard<-- NEW Friend!

 



Site Copyright © 2007 CodeBetter.Com
Content Copyright Individual Bloggers

 

Community Server (Commercial Edition)