0

I support a WPF application with multiple build configurations (local, dev, stage, etc) that uses Castle Windsor for dependency injection, and click-once for deployment. I had to update the certificates for click-once and when I was testing I started getting Castle.MicroKernel.ComponentRegistrationExceptions but only when testing the stage build configuration. local and dev build configurations work fine but stage gets the above exception with the following message:

Component X could not be registered. There is already a component with that name. Did you want to modify the existing component instead? If not, make sure you specify a unique name.

I tried breakpoint-ing the registration code and it only appears to hit once but the one time is when it crashes.. How else can I troubleshoot this and has anyone seen this before?

1 Answer 1

0

Deleting the bin folder and rebuilding made the dependency injection behave.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.