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
Loading
Master BillaPosted Sep 4, 2009, 12:19 PM
Yes this is you need add the reference that dll to this web project.
to this right click on the web project, and then select the dll path and click ok to window
then re build the application. now it will work for you
thank you
Roei BarPosted Sep 4, 2009, 8:23 AM
pootlePosted Sep 3, 2009, 12:15 PM
I am referencing from another class library project, and executing that from a console project in the same solution (the console app is purely for testing purposes at this time).
No ASP.NET.
Roei BarPosted Sep 3, 2009, 12:10 PM
the problem is that you are probebly using a referance call to the dll class method or property from the ascx or aspx, for that to work you will need to add the referance on the aspx page
like that :
<%@ assembly name="System.DirectoryServices,Version=1.0.3300.0, Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a" %>