Here is the code:
try
{
isoFile = IsolatedStorageFile.GetUserStoreForAssembly ();
// create a writable file.
isoStream = new IsolatedStorageFileStream(name,
FileMode.Create, FileAccess.Write, isoFile);
}
catch (Exception ex)
{
}
Event viewer Logs this message:
Framework �汾: v4.0.30319
˵��: Ӧ�ó���ͨ�� System.Environment.FailFast(string message) ������ֹ���̡�
��Ϣ: Infinite recursion during resource lookup within mscorlib. This may be a bug in mscorlib, or potentially in certain extensibility points such as assembly resolve events or CultureInfo names. Resource name: Security_Generic
The above code works in English operating system.