A
Andrus
..NET 2 WinForms application.
In need to load dynamically generated assembly from isolated storage or from
temp directory due to Vista UAC.
In VS 2005 IDE I stepped over two lines:
Assembly activeRecordAssembly =
Assembly.LoadFrom(@"c:\temp\ModelEntity.dll");
ActiveRecordStarter.Initialize(activeRecordAssembly, source);
VS output window after first line is OK:
'Myapp.vshost.exe' (Managed): Loaded 'c:\temp\ModelEntity.dll', No symbols
loaded.
After stepping over second line Output windows shows that assembly is loaded
again! :
'Myapp.vshost.exe' (Managed): Loaded
'I:\raamat\Myapp\bin\Debug\ModelEntity.dll', No symbols loaded.
How to prevent ModelEntity.dll duplicate loading ?
It loads wrong assembly. I need that first loaded assembly is used or
assembly is loaded from temp directory.
How to force .net to look into c:\temp directory first for assembly ?
How to load this assembly from isolated storage ?
Andrus
In need to load dynamically generated assembly from isolated storage or from
temp directory due to Vista UAC.
In VS 2005 IDE I stepped over two lines:
Assembly activeRecordAssembly =
Assembly.LoadFrom(@"c:\temp\ModelEntity.dll");
ActiveRecordStarter.Initialize(activeRecordAssembly, source);
VS output window after first line is OK:
'Myapp.vshost.exe' (Managed): Loaded 'c:\temp\ModelEntity.dll', No symbols
loaded.
After stepping over second line Output windows shows that assembly is loaded
again! :
'Myapp.vshost.exe' (Managed): Loaded
'I:\raamat\Myapp\bin\Debug\ModelEntity.dll', No symbols loaded.
How to prevent ModelEntity.dll duplicate loading ?
It loads wrong assembly. I need that first loaded assembly is used or
assembly is loaded from temp directory.
How to force .net to look into c:\temp directory first for assembly ?
How to load this assembly from isolated storage ?
Andrus