This project is read-only.

Tried to create a child theme but getting an exception, am I missing something?

Topics: Troubleshooting, Writing themes
Jan 8, 2013 at 1:31 PM


I created a theme using codegen and requested its based theme to be Bootstrap. When I try to preview it, I get a null reference exception... I switched BaseTheme to: Orchard.Theme.TheThemeMachine and still get the exception.

Am I missing something?

Jan 10, 2013 at 6:34 AM

What command did you execute in the command line tool?

I just gave it a go with:


codegen theme BootstrapTempChild /BasedOn:Bootstrap

and it appears to work alright for me.

Jan 10, 2013 at 3:32 PM

Thanks for checking, I actually found the source of the problem: I had capitalized Bootstrap wrong!

Orchard checks if the name passed to BasedOn is valid but clearly that check is case insensitive and so when I passed "BootStrap" it worked fine until I actually tried to preview my theme and the correct casing was needed.