IsolatedStorageException during writing a package from MATLAB using .NET interface
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (0)
Ver también
Categorías
Más información sobre .NET Client Programming en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!