.dll file not available

I am trying to add a dll to my project. When I do the “add link” and try to add it, it tells me:

"The link to ... cannot be added. Make sure the file is accessible and that it is a valid assembly or COM component."

By the way, I'm trying to add g729.dll

how can i add dll?

Thanks in advance, Ofek

+8
reference c # file dll
source share
3 answers

You must register your dll in the register database before add reference

You can use Regsvr32 tool

Link: http://msdn.microsoft.com/en-us/library/ms859484.aspx

+7
source share

Register your DLL with the correct path below: -

Open the command line of your visual studio and register the DLL

c: \ Windows \ System 32> regsvr32 yourdll.dll

+3
source share

If you know the name and version of the assembly, as shown below, you can load the project and open csproj in edit mode. Then find the links and add the dll link

Example

  <Reference Include="ReferenceDllAssemblyName, Version=1.0.0.0, Culture=neutral, PublicKeyToken=5a159fbc978150a3, processorArchitecture=MSIL"> <SpecificVersion>False</SpecificVersion> <HintPath>..\TempPath\ReferenceDllAssemblyName.dll</HintPath> </Reference> 
0
source share

All Articles