WPF: The tag XXX does not exist in XML namespace ‘clr-namespace:YYY’

When I used the custom WPF control in my project , I got the following compilation error

The tag ‘TestCtrl’ does not exist in XML namespace ‘clr-namespace:MceWpfContainer;assembly=MceWpfContainer’.

Following solution fixed my WPF custom control issue.
Solution:
1. Open the Project properties.
2. Change the target Framework from “.Net framework 4 Client profile” to “.Net framework 4”
3. Recompile the solution.

Advertisements

About ambilykk

I am a Technology Evangelist on Microsoft Technologies. I am carrying the passion on Microsoft technologies specifically on web technologies such as ASP .Net and Ajax. My interests also include Azure and Visual Studio. Technology adoption and learning is my key strength and technology sharing is my passion.
This entry was posted in WPF. Bookmark the permalink.

3 Responses to WPF: The tag XXX does not exist in XML namespace ‘clr-namespace:YYY’

  1. Ernesto Juarez says:

    Thanks a lot, I had the same problem and this solved it, it has been driving me crazy for a while. Funny thing is it was compiling without problems and I didn’t touch the tester at all just the user control library, what could have brought this problem?

  2. Noman says:

    I had the same issue!! Thanks for the solution!!

  3. Neko says:

    Wow, thanks for sharing this. This probably saved me a few hours.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s