Deploying app with ClickOnce crashes when it’s been published

My WPF .net Project functions okay with Lexactivator while in the debug environment, but crashes when it’s been published, installed and run. I haven’t got a clue.

Perhaps the Product.dat file is not being found?

I’ve noticed that the LexActivator.dll is not listed in References. What should it’s Build Action be set to?

Help!

I think I have solved my latest issue. Here’s what I did:

Added the Product.dat and Lexactivator.dll files to the project’s root folder, not the Bin/Debug and /Release folders.

Set the Copy to Output Directory to “Copy Always”

Set the Build Action to “Content”

 

Hopefully this will help other users deploying their apps with ClickOnce.