System.IO.Packaging: Unable to determine the identity of the domain

拟墨画扇 提交于 2019-12-10 18:34:14

问题


I'm using System.IO.Packaging to create files in a completely managed desktop (Windows Forms) application.

Under certain conditions, the writing of the OPC package raises the "Unable to determine the identity of the domain" exception. I have learned that it is related to Isolated Storage, as the Packaging API sometimes creates temporary data there.

I haven't found a reliable reproduction of this, but I believe it occurs when data is over a certain size (a few megabytes compressed), and perhaps also depending on the type of user account running the application.

  • What is "the domain"? My AppDomain? What controls its "identity" in a normal windows forms app?

  • How can I avoid this problem (apart from manually creating the zip archive files without OPC)?

来源:https://stackoverflow.com/questions/11170262/system-io-packaging-unable-to-determine-the-identity-of-the-domain

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!