How do I resolve Please make sure that the file is accessible and that it is a valid assembly or COM component?
the file is a native DLL which means you can't add it to a .NET project via Add Reference... you can use it via DllImport (see http://msdn.microsoft.com/en-us/library/system.runtime.interopservices.dllimportattribute.aspx)
Failed to add reference to 'DocuSign.eSign'. Please make sure that the file is accessible, and that it is a valid assembly or COM component
This is a bug, I can reproduce. We will be working on it and I'll update when we have a fix.
UPDATE: this has been fixed with a new release today of https://www.nuget.org/packages/DocuSign.eSign.dll/5.4.1
A reference to the dll could not be added
I used dependency walker to check out the internal references the dll was having. Turns out it was in need of the VB runtime msvbvm60.dll and since my dev box doesnt have that installed I was unable to register it using regsvr32
That seems to be the answer to my original question for now.
Error referencing DLL in C# A reference to xxx.DLL could not be added
Include your dll in your project then embedd it as a resource, and choose to copy it to output directory if newer or always: https://static1.squarespace.com/static/508eb96ae4b047ba54db4e47/t/519e1809e4b01e6a03d7f51b/1369315338280/properties.png?format=750w
Then use platform invoke:
[DllImport("nameofyourdll.dll")]
public static extern void methodnameinyourdll(string param1, string param2);
public static void Main()
{
methodnameinyourdll("test1", "test2");
}
Sometimes you may have to use native types but they are not compatible with CLR to avoid that use Marshalling:
https://www.codeproject.com/articles/66245/marshaling-with-csharp-chapter-1-introducing-marsh.aspx
Error on add reference to SQLite.Interop.dll
Add the package using NuGet
Install-Package System.Data.SQLite
It will download and add the appropriate references for SQLite. It looks like you are trying to add the wrong references. You should be adding references to binaries like the Core / EF6 / Linq from the SQLLite binaries.
Related Topics
Waiting for Async/Await Inside a Task
How to Hide "Chrome Is Being Controlled by Automated Software" Infobar Within Chrome V76
Adding Unknown (At Design Time) Properties to an Expandoobject
Fluent API, Many-To-Many in Entity Framework Core
How to Round Up Value C# to the Nearest Integer
How to Best Implement Equals for Custom Types
How to List All Variables of Class
How Expensive Is the Lock Statement
How to Not Serialize the _Type Property on JSON Objects
How to Ensure an Event Is Only Subscribed to Once
How to Create an Explorer-Like Folder Browser Control
How to Render a Wpf Usercontrol to a Bitmap Without Creating a Window
Capturing Mouse/Keyboard Events Outside of Form (App Running in Background)
How to Get the Kestrel Web Server to Listen to Non-Localhost Requests