pootle

pootle

  • NA
  • 8
  • 0

Cannot load Assembly

Sep 3 2009 12:00 PM
VS 2008
C#

Hi

I am sure this me being a numpty.
I create a DLL from a C# class project. I stick it in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727. I create a new project, set a reference the DLL and refer to the DLL in code. All the objects and methods appear in intellisense. It builds correcly.

If I execute, as soon as I reference a method that references this DLL I get hwat appear to be a compile time error:
"Could not load file or assembly 'myAssembly' Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified."

There are no dependencies. The file is where I referenced it from.

Please could someone point me in the right direction?

Many Thanks

Answers (4)