Error message on startup

308 views
Skip to first unread message

Dave

unread,
Mar 8, 2011, 10:22:04 AM3/8/11
to nRoute
Hey all
I just started using nRoute - so very low level question :)

When I try to follow the MVVM basic tutorial from John's Technical
Weblog I get following error message when I try to run the app:

System.Windows.Markup.XamlParseException occurred
Message=Add value to collection of type
'System.Windows.Interactivity.BehaviorCollection' threw an exception.
[Line: 11 Position: 36]
LineNumber=11
LinePosition=36
StackTrace:
at System.Windows.Application.LoadComponent(Object component,
Uri resourceLocator)
at PatientControl.UI.SL.Views.PatientView.InitializeComponent()
at PatientControl.UI.SL.Views.PatientView..ctor()
InnerException: System.InvalidOperationException
Message=nRouteApplicationService has not been initialized.
StackTrace:
at nRoute.Behaviors.BridgeViewModelBehavior.OnAttached()
at
System.Windows.Interactivity.Behavior.Attach(DependencyObject
dependencyObject)
at
System.Windows.Interactivity.BehaviorCollection.ItemAdded(Behavior
item)
at
System.Windows.Interactivity.AttachableCollection`1.OnCollectionChanged(Object
sender, NotifyCollectionChangedEventArgs e)
at
System.Windows.DependencyObjectCollection`1.TryCollectionChanged(NotifyCollectionChangedEventArgs
e)
at
System.Windows.DependencyObjectCollection`1.System.Collections.IList.Add(Object
value)
at
MS.Internal.XamlManagedRuntimeRPInvokes.Add(XamlQualifiedObject&
qoCollection, XamlPropertyToken inCollectionProperty,
XamlQualifiedObject& inValue)
InnerException:

hmm... no idea where the problem could be, do the same as John.
Thanks for any help.

kind regards
Dave

John Thiriet

unread,
Mar 8, 2011, 10:31:03 AM3/8/11
to nro...@googlegroups.com
Hi,

I suggest you to check the steps described there :


This is an often met issue when starting nRoute.

Cheers,

Just a simple check. Did you add the references o

2011/3/8 Dave <dru...@gmail.com>



--
------------------------
John Thiriet

John Thiriet

unread,
Mar 8, 2011, 10:34:04 AM3/8/11
to nro...@googlegroups.com
*Ignore the unfinished sentence at the end of my previous mail.

2011/3/8 John Thiriet <gro...@gmail.com>



--
------------------------
John Thiriet

Dave

unread,
Mar 8, 2011, 11:03:10 AM3/8/11
to nRoute
Ahh perfekt.
I missed to install the Reactive Extensions and to referenc the
System.Observable.
Many thanks.

Regards Dave

On 8 Mrz., 16:34, John Thiriet <gro...@gmail.com> wrote:
> *Ignore the unfinished sentence at the end of my previous mail.
>
> 2011/3/8 John Thiriet <gro...@gmail.com>
>
>
>
> > Hi,
>
> > I suggest you to check the steps described there :
>
> >http://nroute.codeplex.com/discussions/238226
>
> >  <http://nroute.codeplex.com/discussions/238226>This is an often met issue
> > when starting nRoute.
>
> > Cheers,
>
> > Just a simple check. Did you add the references o
>
> > 2011/3/8 Dave <drup...@gmail.com>
Reply all
Reply to author
Forward
0 new messages