Reputation: 58
I am attempting to compile a project as a UWP application for deployment on a Raspberry Pi 2 with Windows 10 IoT installed.
The project uses an open source framework that comes with a wrapper and a DLL.
I have recompiled the DLL to ARM and have placed the C# wrapper into my project.
I have added using into MainPage.xaml.cs and have used functions from the wrapper/DLL.
I copied the compiled DLL file to C:\Users\Public on the RPi2 using FTP and using ICACLS set the DLL to accessible by all.
When I run my application via the remote debugger I get:
Additional information: Unable to load DLL 'C:\Users\Public\snap7.dll': Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
Is what I am trying to do with DLL files on Windows IoT possible?
Upvotes: 4
Views: 2906
Reputation: 582
Generally native DLLs can't be used with UWP Apps. Also look closely at APIs not implemented with IoT-Core. There are tools for this.
Upvotes: 1
Reputation: 4401
I think you're going about it the wrong way. You shouldn't need to do the following step:
I copied the compiled DLL file to C:\Users\Public on the RPi2 using FTP and using ICACLS set the DLL to accessible by all.
Just adding the DLL to your project like you did and setting it to "Copy Local = true" should be enough. When deploying, the DLL will automatically get copied to your bin folder.
Upvotes: 1