A reference to the ".dll" could not be added. Please make sure that the file is accessible and that it is a valid assembly or COM component.

Posting artikel berikut ini akan membahas tentang error "A reference to the ".dll" could not be added. Please make sure that the file is accessible and that it is a valid assembly or COM component." yang terjadi pada Visual Studio. 


A reference to the ".dll" could not be added


Error "A reference to the ".dll" could not be added. Please make sure that the file is accessible and that it is a valid assembly or COM component." tersebut biasanya muncul pada saat kita akan menambahkan referensi assembly atau COM komponen pada project yang sedang kita buat.

Error tersebut menandakan bahwa komponen (assembly/COM) yang ingin ditambahkan tidak dikenal oleh Visual Studio. Oleh karena itu kita perlu menambahkan dengan cara melakukan registrasi COM tersebut menggunakan REGSVR32.EXE.


Dibawah ini langkah untuk melalukan registrasi :

  1. Optional : Copy all SDK *.dll files to %windir%\system32 folder 
  2. Buka Visual Studio Tools dan pilih Visual Studio Command Prompt.
  3. Masuk ke dalam folder yang berisi file dll yang akan didaftarkan.
  4. Ketikkan REGSVR32.EXE file_name.dll
  5. Coba lakukan add reference kembali
Sedangkan dibawah ini adalah melakukan unregister SDK :
REGSVR32.EXE -u file_name.dll


A reference to the ".dll" could not be added

A reference to the ".dll" could not be added

Recommended Reading:

Passing Parameter in ASP.NET Thread

Semoga posting artikel tentang "A reference to the ".dll" could not be added. Please make sure that the file is accessible and that it is a valid assembly or COM component." dapat bermanfaat.



Salam,


Popular posts from this blog

SmartObject property ID is a required property for selected method Create. Value must be set.

Cara inject USB 3.0 Driver pada instalasi Windows - How to Inject USB 3.0 Driver in Windows 7

Python Font Color in Console