Questions tagged [dllnotfoundexception]

69 questions
3
votes
1 answer

First DllNotFoundException then EntryPointNotFoundException while calling pure C function from C#

I am trying to use some C code in Unity3D pro. My basic approach is to (1) build C source code into a static libary (2) create an empty bundle and link against the library (3) import the bundle into Unity 3D pro (as a plugin). I was basically…
3
votes
1 answer

DllNotFoundException PInvoke issue

During tests execution in Visual Studio 2013 (C# code) I have such error: System.TypeInitializationException: System.TypeInitializationException: The type initializer for 'Teigha.Core.GlobalsPINVOKE' threw an exception. --->…
Zygmuntix
  • 339
  • 3
  • 13
3
votes
0 answers

Unable to load DLL (Matlab Runtime ) from IIS 7

Resources: MATLAB 2014 (MCR 8.4 = Matlab Compiler Runtime). (X64) VS 2010 IIS7 Windows 2008R Hello together, I created a matlab script and already publsihed it as .NET dll (Via .NET Builder). Now I try to used that .dll in my web Service together…
3
votes
2 answers

Catch DllNotFoundException from P/Invoke

Found post with a solution: How do I handle a failed DllImport? I'm writing an app that checks the OS version to do different things depending on whether the host is using a Vista-series or NT-series version of Windows. If Vista-series, it loads…
Scorpion
  • 784
  • 7
  • 25
3
votes
4 answers

Using DllImport to load unmanaged dll into managed application

In my project I have an unmanaged native C++ dll and a C# application. I am trying to import a function from the unmanaged dll using DllImport but I keep getting a DllNotFoundException. Here is my code that calls the DLL. using…
nalyd88
  • 4,940
  • 8
  • 35
  • 51
2
votes
2 answers

How load the Dll according to platform

I have a dll for 32bit and 64bit and now I want that my exe call the dll from according to solution platform,means when x64 is set then the dll of 64bit will call.For this I declare a function GetPlatform(). Public Function GetPlateform() As…
jiten
  • 5,128
  • 4
  • 44
  • 73
2
votes
1 answer

MonoMac Platform Interop with Framework

I have code that uses the DllImport attribute to talk with an unmanaged assembly. In OS X, this assembly is installed as a framework. [DllImport("libraryname", CallingConvention = CallingConvention.Cdecl)] public static extern void…
sohum
  • 3,207
  • 2
  • 39
  • 63
2
votes
2 answers

DllNotFoundException for .dll which is in current folder

I'm getting a System.DllNotFoundException for a .dll which is in the same folder as the executable whenever my application attempts to use a function which exists in the DLL. The weird thing is that it is only occurring on one user's PC; it works…
jjoelson
  • 5,771
  • 5
  • 31
  • 51
2
votes
7 answers

Why might I get a DLL not found exception on Vista but not XP?

I have an app that relies on several managed libraries. These managed libraries in turn rely on some unmanaged libraries. When I deploy the app to a machine running XP, it runs fine. When I do the same on a machine running Vista, I get a DLL not…
Tom Wright
  • 11,278
  • 15
  • 74
  • 148
2
votes
0 answers

FreeImage C# DllNotFoundException

Throw Nuget Package Manager, I've downloaded this version of FreeImage that seems to be the easyer version to use. The version name is : VVVV.FreeImage The link : https://www.nuget.org/packages/VVVV.FreeImage/ When I try to use the library I have a…
betsou
  • 143
  • 3
  • 16
2
votes
0 answers

Can't load DLL after Windows 10 March update

This is my first question on stackoverflow, so I am open to suggestions. I have been working on a C++/C# school project for the past few months on Visual Studio Ultimate 2013. The project is a robot simulator and we use a dll named Noyau.dll that…
2
votes
3 answers

mono on raspberry pi throws DLLNotFoundException at DLLImport of shared object (.so) file

I am currently working with the mono run-time on a raspberry pi (B). I use Visual Studio Express 2012 for Windows Desktop. What i basically want to achieve is to save a series of pictures from a webcam (Logitech C270) to a .jpg file. I found a…
1
vote
3 answers

unable to load shared object 'C:/Program Files/R/R-4.0.5/library/stats/libs/x64/stats.dll'

[![ Hi there!! I am using R 4.0.5 on a windows 10 OS I have installed rtools40-x86_64 and used the following command to put the location of the make it utilities as recommanded here writeLines('PATH="${RTOOLS40_HOME}\\usr\\bin;${PATH}"', con =…
1
vote
0 answers

DLL dependency from different installation folder not found in ASP.NET website

I have created a .NET Framework 4.7.2 website with a WCF service. To expose data through this service, I have to reference a third party DLL with Copy Local = False from C:\InstallLocation. The website is loading this DLL at runtime, but I get an…
1
vote
1 answer

DllNotFound in Unity

I am trying to use my C++ dll on Unity, so I copied it in Assets/Plugins and at the root of the project but I have DllFoundException when I use the Play button or run the .exe file generated by the build. It doesn't even work when I use the absolute…