Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Wits end
Message
From
07/04/2011 13:28:57
 
 
To
All
General information
Forum:
ASP.NET
Category:
Windows Presentation Foundation (WPF)
Title:
Wits end
Environment versions
Environment:
C# 4.0
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01506407
Message ID:
01506407
Views:
209
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 ?
Next
Reply
Map
View

Click here to load this message in the networking platform