Tuna,
I changed the configuration from:
<component id="cipherVariation"
service="Demo.View.UserControls.CipherMaster, Demo.View"
type="Demo.View.UserControls.CipherVariation, Demo.View" />
to:
<component id="cipherMaster"
type="Demo.View.UserControls.CipherMaster, Demo.View" />
<component id="cipherVariation"
type="Demo.View.UserControls.CipherVariation, Demo.View" />
<component id="presenterVariation"
service="Demo.Model.Interfaces.IDemoTypePresenter, Demo.Model"
type="Demo.Presenter.PresenterVariation, Demo.Presenter" >
<cipherPanel>${cipherVariation}</cipherPanel>
</component>
by removing the service attribute. However, setting a breakpoint at the same
place shows that the container is still instantiating
Demo.Presenter.PresenterVariation with cipherPanel as
Demo.View.UserControls.CipherMaster instead of
Demo.View.UserControls.CipherVariation. Why is the container doing that?
Thanks, Lars
From: [email protected]
[mailto:[email protected]] On Behalf Of Lars Zeb
Sent: Friday, August 28, 2009 10:24 AM
To: [email protected]
Subject: RE: ComponentActivator: could not instantiate ...
Tuna,
Thanks for the response.
When I place a breakpoint at:
_variation = (CipherVariation) cipherPanel; //<<< Cast error
points here line 18
cipherPanel = Demo.View.UserControls.CipherMaster
Lars
From: [email protected]
[mailto:[email protected]] On Behalf Of Tuna Toksoz
Sent: Friday, August 28, 2009 7:31 AM
To: [email protected]
Subject: Re: ComponentActivator: could not instantiate ...
Can you put a breakpoint on that line and check "cipherPanel"'s type? It may
be proxied and this can be the reason.
Tuna Toksöz
Eternal sunshine of the open source mind.
http://devlicio.us/blogs/tuna_toksoz
http://tunatoksoz.com
http://twitter.com/tehlike
On Fri, Aug 28, 2009 at 5:24 PM, Lars Zeb <[email protected]> wrote:
cipherPanel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---