Assembly not found: u_pawew4.dll

C

Cornu Nicolas

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(AssemblyName assemblyRef,
Boolean
stringized, Evidence assemblySecurity, StackCrawlMark& stackMark)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef,
Evidence assembl
ySecurity)
at System.CodeDom.Compiler.CompilerResults.get_CompiledAssembly()
at System.CodeDom.Compiler.CompilerResults.get_CompiledAssembly()
at System.Xml.Serialization.Compiler.Compile()
at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings)
at
System.Xml.Serialization.XmlSerializer.GenerateTempAssembly(XmlTypeMapping
xmlTypeMapping)
at System.Xml.Serialization.XmlSerializer..ctor(Type type, String
defaultName
space)
at System.Xml.Serialization.XmlSerializer..ctor(Type type)
at dotnetpatcher.PatchFilesList.WritePatchConfiguration(StreamWriter
wr) in Q
:\Developpement\Pro\dotnetpatcher1\PatchFilesListInfos.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.
 
D

Denny Boynton

Cornu,

A couple of quick questions:

- Are you saying that the error message names a different assembly each
time you try to execute the application?

- How are you referencing these assemblies in your application? Are you
referencing the GAC or loading them from your /bin directory?

Thanks,
Denny Boynton
 
C

Cornu Nicolas

Denny Boynton a écrit :
Cornu,

A couple of quick questions:

- Are you saying that the error message names a different assembly each
time you try to execute the application?

Yes

- How are you referencing these assemblies in your application? Are you
referencing the GAC or loading them from your /bin directory?

I both tried SharpDevelop and VS.NET 2003 the compiled executable
produce the same type of error but not the same assembly each time.

I make a library dotnetpatcher and an app dotnetpatcher-app
dotnetpatcher-app reference the library dotnetpatcher

The referenced library in VS.NET 2003 for dotnetpatche rlibrary are
System System.Data System.Xml
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top