IsolatedStorageFileStream constructor throws assert failure error in Chinese operating system RRS feed

  • 问题

  • Here is the code:

    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.

    2021年1月21日 7:01


  • Hi, 

    According to your description, your issue is out of this forum support scope which is mainly focus on Windows Server 2012 system issue troubleshooting instead of develop. 

    After discussed with development support engineer, I recommend to create a thread on C# forum dotnet-csharp forum, that forum will provide more available resource for you.

    I also recommend to mark this reply as answer, this action could help others search for right location more quickly, 


    如果我们的回复对您有帮助,请将有帮助的回复标记为答案。 如果您对TechNet技术支持有任何反馈,请联系。

    • 已编辑 Joy-Qiao 2021年1月22日 6:46
    • 已标记为答案 Naga Tech 2021年1月22日 7:17
    2021年1月22日 6:44