|
|
Hi firnds, i have a very urgetn problem a i dont know how to solve this. I have a view which have the following event registration method:
<EventSubscription(EventTopicNames.EntitySavedEvent, ThreadOption.UserInterface)> _
Public Sub EntitySavedEvent(ByVal sender As Object, ByVal e As EventArgs)
UpdateView()
End Sub
When the view is loaded for the first time everithing is ok, however when it is loaded the second time i get the a NullReferenceException and the StactTrace point to CAB, did anyone came accross this issue before?
Thank in advance
Stack Trace
en Microsoft.Practices.CompositeUI.EventBroker.WorkItemSubscriptions.Clean()
en Microsoft.Practices.CompositeUI.EventBroker.EventTopic.Clean()
en Microsoft.Practices.CompositeUI.EventBroker.EventTopic.RemoveSubscription(Object subscriber, String handlerMethodName)
en Microsoft.Practices.CompositeUI.EventBroker.EventInspector.HandleSubscriber(Object item, Boolean registerSubscriber, MethodInfo info, EventSubscriptionAttribute attr, WorkItem workItem)
en Microsoft.Practices.CompositeUI.EventBroker.EventInspector.ProcessSubscribers(Object item, Type itemType, WorkItem workItem, Boolean registerSubscriber)
en Microsoft.Practices.CompositeUI.EventBroker.EventInspector.Unregister(Object item, WorkItem workItem)
en Microsoft.Practices.CompositeUI.BuilderStrategies.EventBrokerStrategy.TearDown(IBuilderContext context, Object item)
en Microsoft.Practices.ObjectBuilder.BuilderStrategy.TearDown(IBuilderContext context, Object item)
en Microsoft.Practices.CompositeUI.BuilderStrategies.CommandStrategy.TearDown(IBuilderContext context, Object item)
en Microsoft.Practices.ObjectBuilder.BuilderStrategy.TearDown(IBuilderContext context, Object item) en Microsoft.Practices.ObjectBuilder.BuilderStrategy.TearDown(IBuilderContext context, Object item)
...
|
|
Jun 27, 2012 at 4:47 PM
Edited Jun 27, 2012 at 5:19 PM
|
Hi,
You could check the following threads, which I believe might be related to the problem you are describing:
I hope you find it useful,
Agustin Adami
http://blogs.southworks.net/aadami
|
|
|
|
hi adami, sadly neither of the threads were of much help, i noticed that if instead of event i use command everything work as a charm, so i am inclined to thing that this is a bug in cab in WorkItemSubscriptions class, i am doing some test to see what come
from it
|
|