- Регистрация
- 20.12.2012
- Сообщения
- 15
- Благодарностей
- 0
- Баллы
- 0
I ran into a problem when working on an exported Code Creator project in Visual Studio.
When trying to debug the project Visual Studio would throw an exception at runtime that it was unable to load and external DLL references added to the project. After troubleshooting for a long time I found that the Interop used in debugging was trying to copy the DLL files to C:\Program Files (x86)\ZennoLab\ZennoPoster Lite\Progs\ExternalAssemblies. On Windows 7 the Program Files directory is a protected path and the Code Creator Interop fails to copy the DLL files over and Code Creator/ZennoPoster throws a File Not Found IO Exception.
The Fusion Log shows
Do the developers know of a fix for this issue? Can ZennoPoster be installed to a different Hard Disk? I don't remember having a destination option on installation.
When trying to debug the project Visual Studio would throw an exception at runtime that it was unable to load and external DLL references added to the project. After troubleshooting for a long time I found that the Interop used in debugging was trying to copy the DLL files to C:\Program Files (x86)\ZennoLab\ZennoPoster Lite\Progs\ExternalAssemblies. On Windows 7 the Program Files directory is a protected path and the Code Creator Interop fails to copy the DLL files over and Code Creator/ZennoPoster throws a File Not Found IO Exception.
Код:
Error 4 Could not load file or assembly 'ServiceStack.Interfaces, Version=4.0.0.0, Culture=neutral, PublicKeyToken=e06fbc6124f57c43' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
ExceptionString:
System.IO.FileLoadException: Could not load file or assembly 'ServiceStack.Interfaces, Version=4.0.0.0, Culture=neutral, PublicKeyToken=e06fbc6124f57c43' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
Код:
(Fully-specified)
LOG: Appbase = file:///C:/Program Files (x86)/ZennoLab/ZennoPoster Lite/Progs/
LOG: Initial PrivatePath = C:\Program Files (x86)\ZennoLab\ZennoPoster Lite\Progs\ExternalAssemblies
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/Program Files (x86)/ZennoLab/ZennoPoster Lite/Progs/ServiceStack.OrmLite.DLL.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/ZennoLab/ZennoPoster Lite/Progs/ServiceStack.OrmLite/ServiceStack.OrmLite.DLL.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/ZennoLab/ZennoPoster Lite/Progs/ExternalAssemblies/ServiceStack.OrmLite.DLL.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/ZennoLab/ZennoPoster Lite/Progs/ExternalAssemblies/ServiceStack.OrmLite/ServiceStack.OrmLite.DLL.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/ZennoLab/ZennoPoster Lite/Progs/ServiceStack.OrmLite.EXE.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/ZennoLab/ZennoPoster Lite/Progs/ServiceStack.OrmLite/ServiceStack.OrmLite.EXE.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/ZennoLab/ZennoPoster Lite/Progs/ExternalAssemblies/ServiceStack.OrmLite.EXE.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/ZennoLab/ZennoPoster Lite/Progs/ExternalAssemblies/ServiceStack.OrmLite/ServiceStack.OrmLite.EXE.