internetmw
internetmw

Reputation: 699

Clickonce deploy external dll reference not found

I'm trying to deploy an application written in wpf c#. I use an external library (irrklang). I added a reference in visual studio to that dll (it is placed in the same folder as the executable). It shows up in my application files, I deploy, install on a different machine and I get the file not found exception. I looked up the exe folder and the DLL is in the folder.

What am I doing wrong, the reference seems to be correct but the program isn't finding the dll at all

UPDATE: added solution below. Still same error:(

Upvotes: 4

Views: 3744

Answers (2)

internetmw
internetmw

Reputation: 699

Found it, the external dll requires the visual studio redistributable.

Upvotes: 0

JanW
JanW

Reputation: 1849

Check the following points:

  • Properties of the DLL -> Use local copy = true
  • Project Properties -> ClickOnce Properties -> ApplicationFiles -> Check if your dll is enlisted and manually set "Include" on it.

Then try again. ClickOnce often has annoying bugs.

Upvotes: 5

Related Questions