Error: Unexpected error while executing primary stage PrimaryResolveMembers: FileNotFoundException: Could not find assembly

While veiling a project you may receive the following error where Assembly is unique to your project. This error occurs even when the named assembly is in your project or in one of the search folders. 

ERROR: Unexpected error while executing primary stage PrimaryResolveMembers: System.IO.FileNotFoundException: Could not find assembly 'Assembly'.

Cause

There are two primary causes of this error.

Referencing a .NET 1.x Assembly

The assembly is a .NET 1.1 or .NET 1.0 assembly. DeployLX CodeVeil 3.x Does not support .NET 1.x.

Referencing the Wrong Version of an Assembly

The .NET Framework considers more than the file name when determining if an assembly reference matches a DLL it finds on disk. When CodeVeil loads these assemblies into memory

Solution

Referencing a .NET 1.x Assembly

Update all references to .NET 2.0 or later.

Referencing the Wrong Version of an Assembly

  1. Recompile all assemblies so that assembly references are updated to the most current values.
  2. Don't change the AssemblyVersion and use the AssemblyFileVersion instead. See our Assembly Versioning article for more information.
Published : Feb 11, 2009
Updated : Mar 01, 2010
Views : 2421
  • deploylx
  • codeveil
  • error

Applies To

Downloads

Folder