WP7 Designer Errors

Topics: Issues / bugs
Jun 1, 2012 at 4:22 PM

I have found out that the designers of both Visual Studio 2010 and Expression Blend don't support design time data. Keeps giving the error:

Could not load type 'System.ComponentModel.IDataErrorInfo' from assembly 'System.Windows, Version=5.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'.

Coordinator
Jun 1, 2012 at 5:35 PM

Interesting, you are using 3.1? It should be fixed in that version. Otherwise, try the very latest beta:

install-package Catel.Extensions.Controls -includeprerelease

Jun 2, 2012 at 1:13 PM

I'm using the latest beta version. The 28th May release. On Visual Studio, the problem shows up when I set the design data context. Expression blend gives an error about not being able to use the solution's assembly at all.

Coordinator
Jun 13, 2012 at 5:38 PM

This issue should be fixed with the latest beta we just released.

Jun 15, 2012 at 12:12 AM

Thanks. I'll download it and try.

Jun 15, 2012 at 12:29 AM

Still have the problem. And now when I run the project it gives a missing method exception.

Coordinator
Jun 15, 2012 at 6:55 AM

Can you provide the stacktrace for the missing method exception?

Aug 11, 2012 at 12:37 AM

Sorry, I've been a little busy but here's the stacktrace:

   at Catel.Logging.Log..ctor(Type targetType)   at Catel.Logging.LogManager.GetLogger(Type type)   at Catel.Logging.LogManager.GetCurrentClassLogger()   at Catel.Argument..cctor()   at Catel.Logging.LogManager.GetLogger(Type type)   at Catel.Logging.LogManager.GetCurrentClassLogger()   at Catel.Logging.LogManager..cctor()   at Catel.Phone.Controls.PhoneApplicationPage..cctor()   at Catel.WP7.WindowsPhoneApplication1.Views.MainPage..ctor()   at System.Reflection.RuntimeConstructorInfo.InternalInvoke(RuntimeConstructorInfo rtci, BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo culture, Boolean isBinderDefault, Assembly caller, Boolean verifyAccess, StackCrawlMark& stackMark)   at System.Reflection.RuntimeConstructorInfo.InternalInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, StackCrawlMark& stackMark)   at System.Activator.InternalCreateInstance(Type type, Boolean nonPublic, StackCrawlMark& stackMark)   at System.Activator.CreateInstance(Type type)   at System.Windows.Navigation.PageResourceContentLoader.BeginLoad_OnUIThread(AsyncCallback userCallback, PageResourceContentLoaderAsyncResult result)   at System.Windows.Navigation.PageResourceContentLoader.<>c__DisplayClass4.<BeginLoad>b__0(Object args)   at System.Reflection.RuntimeMethodInfo.InternalInvoke(RuntimeMethodInfo rtmi, Object obj, BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo culture, Boolean isBinderDefault, Assembly caller, Boolean verifyAccess, StackCrawlMark& stackMark)   at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, StackCrawlMark& stackMark)   at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)   at System.Delegate.DynamicInvokeOne(Object[] args)   at System.MulticastDelegate.DynamicInvokeImpl(Object[] args)   at System.Delegate.DynamicInvoke(Object[] args)   at System.Windows.Threading.DispatcherOperation.Invoke()   at System.Windows.Threading.Dispatcher.Dispatch(DispatcherPriority priority)   at System.Windows.Threading.Dispatcher.OnInvoke(Object context)   at System.Windows.Hosting.CallbackCookie.Invoke(Object[] args)   at System.Windows.Hosting.DelegateWrapper.InternalInvoke(Object[] args)   at System.Windows.RuntimeHost.ManagedHost.InvokeDelegate(IntPtr pHandle, Int32 nParamCount, ScriptParam[] pParams, ScriptParam& pResult)

 

I upgraded to version 3.2 and still have this issue.

Coordinator
Aug 11, 2012 at 9:47 AM

Interesting, thanks for letting me know. This should be an easy fix :)

Coordinator
Aug 11, 2012 at 10:42 AM

I have implemented a fix, you can subscribe to the @CatelMvvm twitter account, it will automatically post a message when a new build is created.

Aug 13, 2012 at 11:28 PM

I've downloaded the new libraries but i still have that issue...could the templates I'm using be the problem?