I\'ve a user control which contains asp:Literal.
Are you sure MenuContainer is the problem? You are referencing obj.State in the first line of the Setup function. If that obj is null you'll get that error.
MenuContainer
obj.State
Setup
obj