IsolatedStorageException during writing a package from MATLAB using .NET interface

2 次查看(过去 30 天)
I have a problem using .NET interface. I have written an application what uses a C# dll. The main task of this dll is writing xml files into a package. The problem is when an xml file is bigger than 8 MB, the code throws a "System.IO.IsolatedStorage.IsolatedStorageException: Unable to determine the identity of domain." exception. When this code is running as an executable it works fine.
After some investigation I found the following text:
"When any part exceeds 8MB the System.IO.Packaging API begins to use IsolatedStorage using a user/domain store as a scratch pad area. That’s great when code is running as an executable. [...] ...when COM creates the AppDomain instance it doesn’t provide any evidence so the call to create an IsolatedStorage stream fails."
In my opinion the problem is during creating AppDomain for the C# code.
Is there any solution for this problem?

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 .NET Client Programming 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by