Xamarin.Forms - Add external dll

0

I am trying to load a dll (ACRCloud - libacrcloud_extr_tool.dll) within my Xamarin.Forms.UWP App. When I try to access it, I get an error:

Unable to load DLL 'C:\Users\Martin\Desktop\libacrcloud_extr_tool.dll': Access denied (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

Is there a way to access this .dll in a Xamarin.Forms Project (starting with UWP)?

c#
dll
xamarin.forms
uwp
dllimport

1 Answer

1

At times, you may download a file from the Internet or receive one by email. Windows classifies certain files as unsafe downloads and attachments by identifying the files type and the security settings for each file...

It seems like you have to unlock the dll on OS level before you could use it in your project.
More information can be found here.

P.S.: It should not affect the distribution process of your application, since the app bundle will be considered from a trusted source.

answered on Stack Overflow Sep 5, 2018 by EvZ

User contributions licensed under CC BY-SA 3.0