Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File or Assembly Not Found

Status
Not open for further replies.

NeilV

Programmer
Oct 14, 2002
117
GB
Hello,

I am trying to use a DLL that I have created in my ASP.Net page using Visual Studio. I have added a reference to my DLL (which I have used in other projects without problems but not using Visual Studio) but I get the following error:

"File or assembly name XXXX, or one of its dependencies, was not found"

I can get round this problem by setting the Copy Local Property for this DLL to true, but I would ideally not have to make alocal copy.

Any help would be great

Neil
 
There is no impact for your app because you set Copy Local property when you develop the app. So keep it set to True.

-obislavu-
 
If you don't want to "copy local" the DLL, you can register it in the GAC after giving it a strong name, but, unless the DLL is shared by multiple applications in different unrelated folders, and/or you want an easy way to do side-by-side deployments of the same DLL, it is far better to copy the DLL locally than to put it in the GAC.

As obislavu said, it is best to leave the "copy local" setting as you have it in your case.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top