Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Wits end
Message
De
07/04/2011 14:18:45
 
 
À
07/04/2011 13:28:57
Information générale
Forum:
ASP.NET
Catégorie:
Windows Presentation Foundation (WPF)
Titre:
Versions des environnements
Environment:
C# 4.0
OS:
Windows XP SP2
Divers
Thread ID:
01506407
Message ID:
01506418
Vues:
64
>Hi,
>
>I just dusted off a WPF project I'd been working on using Prism/Unity. It was still on Prism 2 so I decided to upgrade to v4. There were a couple of changes to the namespaces used and the DLLs where they resided (details here:http://msdn.microsoft.com/en-us/library/gg430859(v=pandp.40).aspx). I refactored all the namespaces and changed to referenced DLLs. All seems fine except for *one* problem:
>
>I have a simple class defined thus:
public class ILLObjectDeletedEvent : Microsoft.Practices.Prism.Events.CompositePresentationEvent<DeleteInfo> { }
When this is referenced I get an exception:
>"Could not load file or assembly 'Microsoft.Practices.Composite.Presentation, Version=2.0.1.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified." so it is obviously still trying to resolve this using the v2 version of Prism (even though the namespace explicitly implies v4 - there was no such namespace in v2) I cannot find why this is so.
>
>Also - An oddity: the solution contains two potential startup apps. One give this exception but the other does not.
>
>Any suggestions of what I might try to track down the root of this problem ?

That is weird...

FYI, it looks like ServiceLocator and Unity are still V2 are you missing a reference?

Is it only that one error being thrown, or are there others?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform