I'm no expert on ISO storage but if you put the code into debug mode you may be able to figure this out... Put a break point on the BinaryWriter and note the filename. But also note just above that there is a directory that is created.
Note that as well.
//Get the IsoStore.
IsolatedStorageFile isoStore = IsolatedStorageFile.GetUserStoreForApplication();
//Re-create the directory structure. for (int i = 0; i < dirsPath.Length - 1; i++)
strBaseDir = System.IO.Path.Combine(strBaseDir, dirsPath[i]);
//Remove the existing file. if (isoStore.FileExists(fileName))
//Write the file. using (BinaryWriter bw =
Then look at this line in your code and compare note. The first question I have is GetResourceStream wants a URI.. That to me would make me wonder how ISO storage ties into URIs? I don't know the answer but that would be my first point
of investigation. Notice also that the URIKING.RELATIVE means realtive to where the current directory of the application is located. You can have the program tell you which directory that is by posting a message to yourself using
StreamResourceInfo sr = Application.GetResourceStream(new Uri(f, UriKind.Relative));
Those two tips should help you to discover the answer. I don't know if ISO storage supports the funky Pack:// syntax or not.