unable to determine application identity of the caller. settings class
or
Exception while using IsolatedStorageSettings:
System.IO.IsolatedStorage.IsolatedStorageException: Unable to determine
application Identity of the caller.
at System.IO.IsolatedStorage.IsolatedStorage.InitStore(IsolatedScope
scope,Type appEvidenceType)
at System.IO.IsolatedStorage.IsolatedStorageFile.GetStore(IsolatedScope
scope,Type applicationEvidenceType)
at System.Io.IsolatedStorage.IsolatedStorageSettings..ctor(boolean
useSiteSettings)
at System.IO.IsolatedStorage.IsolatedStorageSettings.get_ApplicationSettings()
at ManasutoApp.AppSettings..ctor() in
or
Exception while using IsolatedStorageSettings:
System.IO.IsolatedStorage.IsolatedStorageException: Unable to determine
application Identity of the caller.
at System.IO.IsolatedStorage.IsolatedStorage.InitStore(IsolatedScope
scope,Type appEvidenceType)
at System.IO.IsolatedStorage.IsolatedStorageFile.GetStore(IsolatedScope
scope,Type applicationEvidenceType)
at System.Io.IsolatedStorage.IsolatedStorageSettings..ctor(boolean
useSiteSettings)
at System.IO.IsolatedStorage.IsolatedStorageSettings.get_ApplicationSettings()
at ManasutoApp.AppSettings..ctor() in
Try this code in your settings class.
if (!System.ComponentModel.DesignerProperties.IsInDesignTool)
{
settings = IsolatedStorageSettings.ApplicationSettings;
}
"check if the code is running in (visual studio or blend) using DesignerProperties.IsInDesignTool since accessing IsolatedStorageSettings in Visual Studio or Expression Blend is invalid."
"check if the code is running in (visual studio or blend) using DesignerProperties.IsInDesignTool since accessing IsolatedStorageSettings in Visual Studio or Expression Blend is invalid."
I found this from StackOverFlow ..
Specified argument was out of the range of valid values. wp7.
for this you need to lode the settings class in Loded event.
public partial class Page2 : UserControl
public Page2(){
Loaded += ChannelsPage_Loaded;
}
void ChannelsPage_Loaded(object sender, RoutedEventArgs e)
{
appSettings = new AppSettings();
this.isolatedSettings(); // here you are calling method that uses isolated class
var deviceId = DeviceExtendedProperties.GetValue("DeviceUniqueId"); // devide id of your Wp7
byte[] bID = (byte[])deviceId;
string deviceID = Convert.ToBase64String(bID);
}
if possible instantiate "settings" Class as
Specified argument was out of the range of valid values. wp7.
for this you need to lode the settings class in Loded event.
public partial class Page2 : UserControl
public Page2(){
Loaded += ChannelsPage_Loaded;
}
void ChannelsPage_Loaded(object sender, RoutedEventArgs e)
{
appSettings = new AppSettings();
this.isolatedSettings(); // here you are calling method that uses isolated class
var deviceId = DeviceExtendedProperties.GetValue("DeviceUniqueId"); // devide id of your Wp7
byte[] bID = (byte[])deviceId;
string deviceID = Convert.ToBase64String(bID);
}
if possible instantiate "settings" Class as
if (!System.ComponentModel.DesignerProperties.IsInDesignTool)
{
settings = AppSettings();// where you lode entire data from isolated storage
}