Hello,
The above code generate the above error.
The not found assembly is different at each execution.
--------------------------------------------------------------------------
public void WritePatchConfiguration(StreamWriter wr)
{
System.Xml.Serialization.XmlSerializer writer = new
XmlSerializer(this.GetType());
//writer = null;
}
--------------------------------------------------------------------------
System.IO.FileNotFoundException: Le fichier ou l'assembly nommé
u_pawew4.dll ou
l'une de ses dépendances, est introuvable.
Nom du fichier : "u_pawew4.dll"
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String
codeBase, B
oolean isStringized, Evidence assemblySecurity, Boolean
throwOnFileNotFound, Ass
embly locationHint, StackCrawlMark& stackMark)
at System.Reflection.Assembly.InternalLoad(AssemblyNa me assemblyRef,
Boolean
stringized, Evidence assemblySecurity, StackCrawlMark& stackMark)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef,
Evidence assembl
ySecurity)
at System.CodeDom.Compiler.CompilerResults.get_Compil edAssembly()
at System.CodeDom.Compiler.CompilerResults.get_Compil edAssembly()
at System.Xml.Serialization.Compiler.Compile()
at System.Xml.Serialization.TempAssembly..ctor(XmlMap ping[] xmlMappings)
at
System.Xml.Serialization.XmlSerializer.GenerateTem pAssembly(XmlTypeMapping
xmlTypeMapping)
at System.Xml.Serialization.XmlSerializer..ctor(Type type, String
defaultName
space)
at System.Xml.Serialization.XmlSerializer..ctor(Type type)
at dotnetpatcher.PatchFilesList.WritePatchConfigurati on(StreamWriter
wr) in Q
:\Developpement\Pro\dotnetpatcher1\PatchFilesListI nfos.cs:line 100
at dotnetpatcher.Patcher.NewVersionAvailable() in
Q:\Developpement\Pro\dotnet
patcher1\Patcher.cs:line 49
at dotnetpatcher_app.MainForm..ctor() in
Q:\Developpement\Pro\dotnetpatcher-a
pp\MainForm.cs:line 38
=== Pre-bind state information ===
LOG: Where-ref bind. Location = d:\tmp\u_pawew4.dll
LOG: Appbase = Q:\Developpement\Pro\dotnetpatcher-app\bin\Debug\
LOG: Initial PrivatePath = NULL
Calling assembly : (Unknown).
===
LOG: Policy not being applied to reference at this time (private,
custom, partia
l, or location-based assembly bind).
LOG: Attempting download of new URL file:///d:/tmp/u_pawew4.dll.
-----------------------------------------------------------------------
In advance thanks,
CN