Can't use a file path (just a string) for a key in a Windows 8 ApplicationDataContainer - by Zipper777

Status : 


Sign in
to vote
ID 781968 Comments
Status Active Workarounds
Type Bug Repros 0
Opened 3/22/2013 7:55:45 PM
Access Restriction Public


I'm creating a small app and I was playing around with the Containers trying to create a little custom container to store some file paths.

var container = ApplicationData.Current.LocalSettings.CreateContainer("SomeContainerName", ApplicationDataCreateDisposition.Always);

      if (container.Values.ContainsKey("C:\\Some_Fake_Path") == false) // <--- This says that the object is in the container, even though I checked and it is not. This only happens in the string starts with some kind of file path


        container.Values.Add("C:\\Some_Fake_Path", "");


Also if I add a key in there that has a file path I get the following error:

An unhandled exception of type 'System.Exception' occurred in mscorlib.dll

WinRT information: Error trying to query the application data container item info

Additional information: The specified path is invalid.

I checked the documentation, and nowhere did I find anything about file path's not being allowed as keys.
Sign in to post a comment.
Posted by Microsoft on 8/7/2013 at 11:11 AM
Thank you for your bug submission. The issue you reported appears to be on a released Windows Product. If this issue is severe, causing critical business situations or blocking your product development or deployment, please go to or call 1-800-MICROSOFT for assistance. For Microsoft premier customers, please contact your administrator, your Technical Account Manager, or your Microsoft premier account representative. To post a question or receive community support for developing Windows Store apps, consider posting your question or concern on the Windows Store apps forum.
Posted by Microsoft on 4/1/2013 at 1:33 AM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by Zipper777 on 3/29/2013 at 2:43 PM
I added a very simple project that shows this behavior.
Posted by Microsoft on 3/28/2013 at 1:46 AM
Hello, Sorry for bothering. Is there any update? It would be greatly appreciated if you could provide us with that information as quickly as possible. Thank you!
Posted by Microsoft on 3/25/2013 at 12:56 AM
Thank you for submitting feedback on Visual Studio and .NET Framework. In order to efficiently investigate and reproduce this issue, we are requesting additional information outlined below.

Could you please give us a demo project to demonstrate this issue so that we can conduct further research?

We look forward to hearing from you with this information.

Microsoft Visual Studio Connect Support Team
Posted by Microsoft on 3/22/2013 at 8:51 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(