I just ran into this issue. Took me a few minutes to figure out. And there just isn't enough on google for this particular compile time error, so I thought I would help (searching with "The control type" and "cannot be themed" only gets nine hits presently).

If you ever create a custom control and try to theme it, you might get the following exception:

The control type 'YourNamespace.YourControlName' cannot be themed.


Add the following attribute to your class:

[Themeable(true)]

Problem solved.

Filed Under: ASP.NET

Comments: 0

Comments

Something To Say?

Name: (optional)
Email: (optional, and will not be displayed)
Website: (optional)
Comment:

You can use html tags like <b>, <a>, and <p>. Actually, you can use just about anything. If you want to see what it will look like, click the preview comment button below.