Re[4]: Winservice C# и winforms exe
От: Luchnik Россия  
Дата: 10.12.21 16:50
Оценка:
Здравствуйте, Михаил Романов, Вы писали:

МР>Здравствуйте, Luchnik, Вы писали:


L>>Не, всюду простой 4 дотнет. И в сервисе, и в exe.

МР>Ну тогда не тратьте время на эксперименты, а просто настройте логи в Fuslog и посмотрите, какую именно сборку он не может загрузить и почему.
МР>Это почти 100% будет на порядок быстрее.

*** Assembly Binder Log Entry (10.12.2021 @ 19:44:07) ***

The operation failed.
Bind result: hr = 0x8007000b. Была сделана попытка загрузить программу, имеющую неверный формат.

Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable C:\Projects\CE2006\ContourEnterpriseIV\WinService\CIVWinService\bin\Debug\CIVWinService.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: DisplayName = CERudestaApp
(Partial)
WRN: Partial binding information was supplied for an assembly:
WRN: Assembly Name: CERudestaApp | Domain ID: 1
WRN: A partial bind occurs when only part of the assembly display name is provided.
WRN: This might result in the binder loading an incorrect assembly.
WRN: It is recommended to provide a fully specified textual identity for the assembly,
WRN: that consists of the simple name, version, culture, and public key token.
WRN: See whitepaper http://go.microsoft.com/fwlink/?LinkId=109270 for more information and common solutions to this issue.
LOG: Appbase = file:///C:/Projects/CE2006/ContourEnterpriseIV/WinService/CIVWinService/bin/Debug/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = CIVWinService.exe
Calling assembly : CECommon, Version=4.8.5.3389, Culture=neutral, PublicKeyToken=f5f4295dccc3a8ed.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Projects\CE2006\ContourEnterpriseIV\WinService\CIVWinService\bin\Debug\CIVWinService.exe.Config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\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:/Projects/CE2006/ContourEnterpriseIV/WinService/CIVWinService/bin/Debug/CERudestaApp.DLL.
LOG: Attempting download of new URL file:///C:/Projects/CE2006/ContourEnterpriseIV/WinService/CIVWinService/bin/Debug/CERudestaApp/CERudestaApp.DLL.
LOG: Attempting download of new URL file:///C:/Projects/CE2006/ContourEnterpriseIV/WinService/CIVWinService/bin/Debug/CERudestaApp.EXE.
LOG: Assembly download was successful. Attempting setup of file: C:\Projects\CE2006\ContourEnterpriseIV\WinService\CIVWinService\bin\Debug\CERudestaApp.exe
LOG: Entering run-from-source setup phase.
LOG: Assembly Name is: CERudestaApp, Version=4.8.5.922, Culture=neutral, PublicKeyToken=f5f4295dccc3a8ed
ERR: Invalid assembly platform or ContentType in file (hr = 0x8007000b).
ERR: Run-from-source setup phase failed with hr = 0x8007000b.
ERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing terminated.
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.