tags:

views:

31

answers:

2

Hi,

I'm currently working on a program in C# WPF. I use an external dll called Irrklang. It's made for x86 only so I set VS to compile for x86. I added the reference, set the copy local to true and set the dll as Required in the application files.

When publishing the app using clickonce I upload it. I install on two machines: my dev machine and another machine. On my dev machine things work fine. On the other machine I get the could not load file or assembly exception through my error handling I added to my app. In the event log there is a xamlparse exception.

How can I solve this when everything works fine on my dev machine. I tried Dependencywalker but that doesn't show anything and I made sure the dll is in the folder of the executable. I ask this question again here on stackoverflow, the last time someone made me an empty app with a reference to the dll and he installed it on 3 other machines and it worked fine. I published his app like I did with my own and it shows the exact same problem!

Please help me out

UPDATE: I was thinking about it but your comment beat me to it! :D I program .net 4 Extended and it is set as a prerequisite. VS C# Express 2010.

A: 

There are some things to try here:

http://social.msdn.microsoft.com/Forums/en-US/vside2008/thread/5b26cf12-a3c4-46fc-a059-169eb39a65c1

SteveCav
Tried the suggestions but the dll is not GAC'ed and the automatic incrementation doesn't solve the exception
internetmw
A: 

Well, no specific advice then. It sounds like you just need to some old school trial and error... Whiddle the app down to something that will distribute correctly with ClickOnce and keep adding functionality until it doesn't!

RQDQ
That sounds great but where do I start if an even empty app with just a dll reference already gives me this exception...
internetmw
Does it publish without the dll reference?
RQDQ
Yes is also publishes with dll reference but as soon as I do anything with code from that dll it gives the exception. On the dev machine it works on both occassions though
internetmw