Différence de comportement entre release et debug
Bonjour,
tout d'abord je dois vous prévenir que je débute en C# et .net.
Voilà j'ai une appli console en C#, compilée en debug, qui fonctionne correctement quand je la démarre de visual en "start without debug" idem à partir de la console. Mais si je la démarre en debug (F5) j'ai l'exception suivante:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| he assembly with display name 'Base.Service.XmlSerializers' failed to load in the 'Load' binding context of the AppDomain with ID 1. The cause of the failure was: System.IO.FileNotFoundException: Could not load file or assembly 'Base.Service.XmlSerializers' or one of its dependencies. The system cannot find the file specified.
File name: 'Base.Service.XmlSerializers'
Assembly manager loaded from: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
Running under executable M:\TOTO_MyService_main_latest\BASE\Projects\MyService\POCAppliConsole\POCAppliConsole\bin\Debug\Base.Console.exe
--- A detailed error log follows.
=== Pre-bind state information ===
LOG: User = EUR\nlatrill060607
LOG: DisplayName = Base.Service.XmlSerializers
(Partial)
LOG: Appbase = file:///M:/TOTO_MyService_main_latest/BASE/Projects/MyService/POCAppliConsole/POCAppliConsole/bin/Debug/
LOG: Initial PrivatePath = NULL
Calling assembly : System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: M:\TOTO_MyService_main_latest\BASE\Projects\MyService\POCAppliConsole\POCAppliConsole\bin\Debug\Base.Console.exe.config
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\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:///M:/TOTO_MyService_main_latest/BASE/Projects/MyService/POCAppliConsole/POCAppliConsole/bin/Debug/Base.Service.XmlSerializers.DLL.
LOG: Attempting download of new URL file:///M:/TOTO_MyService_main_latest/BASE/Projects/MyService/POCAppliConsole/POCAppliConsole/bin/Debug/Base.Service.XmlSerializers/Base.Service.XmlSerializers.DLL.
LOG: Attempting download of new URL file:///M:/TOTO_MyService_main_latest/BASE/Projects/MyService/POCAppliConsole/POCAppliConsole/bin/Debug/Base.Service.XmlSerializers.EXE.
LOG: Attempting download of new URL file:///M:/TOTO_MyService_main_latest/BASE/Projects/MyService/POCAppliConsole/POCAppliConsole/bin/Debug/Base.Service.XmlSerializers/Base.Service.XmlSerializers.EXE. |
Base.Service est un assembly (dll) dont dépent mon projet, il n'y a aucune class Xmlserializer dedans. Et je ne comprend pas pourquoi j'en aurai besoin.
Quelqu'un aurait une idée de ce qu'il se passe ?
Par avance merci !
PS: si je me suis trompé de forum, merci de me rédiriger.