I'm using Isolated Storage via the IsolatedStorageFile.GetMachineStoreForAssembly() method to store my application settings.
After my application was already deployed, I bought a digital certificate to sign my software with. However, the new version with the certificate cannot read the old settings file. Presumbly this is because the signing changed the application identity.
How can I access the old settings, which were written from the old version (which was unsigned)? Is it possible to somehow get the Machine store of the old assembly by passing in the old identity?
The machine store is identified by application identity, not just name.
Your publicKeyToken would be different after you signed your code.
References:
http://msdn.microsoft.com/en-US/library/system.io.isolatedstorage.isolatedstoragefile.getmachinestoreforassembly(v=vs.80).aspx
http://msdn.microsoft.com/en-us/library/b0yt6ck0.aspx
Environment.GetFolderPath(ApplicationData)
and store my files there.That being said, I found this article that can sometimes be used to locate the folder, if you know the name of a file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With