Print Page | Close Window

Cocktail WPF application - assemblies in privateDirectory

Printed From: IdeaBlade
Category: Cocktail
Forum Name: Community Forum
Forum Discription: A professional application framework using Caliburn.Micro and DevForce
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=3572
Printed Date: 03-Jun-2024 at 12:09pm


Topic: Cocktail WPF application - assemblies in privateDirectory
Posted By: pjcunningham
Subject: Cocktail WPF application - assemblies in privateDirectory
Date Posted: 09-Aug-2012 at 4:23am

I can't get TempHire WPF to run when moving the assemblies into a bin folder.

I've added the following to the config file :

  <runtime>
      <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
         <probing privatePath="bin"/>
      </assemblyBinding>
   </runtime>

I've re-compiled the project and checked that all the necessary dlls are present in the bin folder.

The application never starts, and the Windows Event Log contains the typical "System.Windows.Markup.XamlParseException" that indicates a missing assembly.

Regards, Paul



Replies:
Posted By: pjcunningham
Date Posted: 09-Aug-2012 at 4:26am

Forgot to add I'm using builds cocktail-18574 and DevForce 6.1.7.1 .

Regards, Paul.


Posted By: mgood
Date Posted: 11-Aug-2012 at 6:15pm
If you move the assemblies into a bin folder, you must tell DevForce and Cocktail to look there for the domain models and MEF parts.

        static AppBootstrapper()
        {
            CompositionHost.SearchFolders.Add("bin");
        }


Posted By: pjcunningham
Date Posted: 12-Aug-2012 at 6:37am
D'oh!

Cheers, Paul.



Print Page | Close Window