Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.NET ClickOnce deployment and wrong assemblies called after updated version

I have a ClickOnce application (app1) that calls DLL files from another solution (app2). I recently updated this application at one customer and a strange thing occurred.

He got the new version (publish version was correct in Control Panel/Add or Remove Programs) of app1 and the application version was correct as manually inspected in the application. But the DLL files called from the referenced solution (app2) was still the old ones.

We deleted all files in C:\Documents and Settings\username\Local Settings\Apps\2.0 and installed again. This time there was no problem, the correct DLL files were called.

One thing to mention is that the version numbers are completely different in the new version since we changed this while upgrading from Visual Studio 2005 to Visual Studio 2008. Old / new published version: 1.0.0.6 / 1.9.1.6.

like image 406
Fredrik Stigmarker Avatar asked Oct 26 '22 05:10

Fredrik Stigmarker


1 Answers

This appears to be a bug in .NET Framework 3.5 SP1.

http://support.microsoft.com/default.aspx/kb/971052

I fixed it by:

  1. Clearing the .NET Online Cache from a command prompt: “rundll32 dfshim CleanOnlineAppCache”
  2. Deinstall all .NET-applications that could have a reference to the same problematic assembly.
  3. Install all applications again.
like image 67
Fredrik Stigmarker Avatar answered Nov 15 '22 06:11

Fredrik Stigmarker