{"id":100,"date":"2009-10-19T21:08:02","date_gmt":"2009-10-20T02:38:02","guid":{"rendered":"http:\/\/www.arjarapu.com\/wordpress\/?p=100"},"modified":"2010-03-28T13:23:48","modified_gmt":"2010-03-28T18:53:48","slug":"ektron-the-controls-collection-cannot-be-modified","status":"publish","type":"post","link":"http:\/\/www.arjarapu.com\/wordpress\/2009\/10\/ektron-the-controls-collection-cannot-be-modified\/","title":{"rendered":"Ektron: The Controls collection cannot be modified &#8230;"},"content":{"rendered":"<p>For the past couple of hours I have been banging my head and pulling my left over few strands of hair to figure out what&#8217;s wrong with my code causing the below exception.<\/p>\n<p><code><br \/>\nThe Controls collection cannot be modified because the control contains code blocks (i.e. < % ... %>)<br \/>\n<\/code><\/p>\n<p>I finally found out the solution from a least expected settings. <!--more--><\/p>\n<div id=\"attachment_105\" style=\"width: 610px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-105\" src=\"http:\/\/www.arjarapu.com\/wordpress\/wp-content\/uploads\/2009\/10\/Controls.Collection.Error-600x384.PNG\" alt=\"The Controls collection cannot be modified because the control contains code blocks \" title=\"Controls.Collection.Error\" width=\"600\" height=\"384\" class=\"size-large wp-image-105\" srcset=\"http:\/\/www.arjarapu.com\/wordpress\/wp-content\/uploads\/2009\/10\/Controls.Collection.Error-600x384.PNG 600w, http:\/\/www.arjarapu.com\/wordpress\/wp-content\/uploads\/2009\/10\/Controls.Collection.Error-300x192.PNG 300w, http:\/\/www.arjarapu.com\/wordpress\/wp-content\/uploads\/2009\/10\/Controls.Collection.Error.PNG 980w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><p id=\"caption-attachment-105\" class=\"wp-caption-text\">The Controls collection cannot be modified because the control contains code blocks <\/p><\/div>\n<p>I was trying to integrate our project demo into the Ektron CMS 400.NET along with Telerik (initially I had whole set of <a href='#'>issues<\/a>). Once I added all our code &#038; web pages into the Ektron, our pages look great and Ektron &#8220;Work Area&#8221; is NOT working. when ever I access the work area, I get the above error. I started digging deep, but long story short, the culprit seems to be .NET <strong>Theme<\/strong>. <\/p>\n<p>Our websites uses themes and configured at web.config &#8220;pages&#8221; section level. WorkArea web pages does NOT have any themes defined. So, I reset the themes in WorkArea\/Web.Config file and all is working fine.<\/p>\n<div id=\"attachment_108\" style=\"width: 610px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-108\" src=\"http:\/\/www.arjarapu.com\/wordpress\/wp-content\/uploads\/2009\/10\/Themes.Difference-600x149.PNG\" alt=\"Web.Config Theme Differences\" title=\"Web.Config Theme Differences\" width=\"600\" height=\"149\" class=\"size-large wp-image-108\" srcset=\"http:\/\/www.arjarapu.com\/wordpress\/wp-content\/uploads\/2009\/10\/Themes.Difference-600x149.PNG 600w, http:\/\/www.arjarapu.com\/wordpress\/wp-content\/uploads\/2009\/10\/Themes.Difference-300x74.PNG 300w, http:\/\/www.arjarapu.com\/wordpress\/wp-content\/uploads\/2009\/10\/Themes.Difference.PNG 668w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><p id=\"caption-attachment-108\" class=\"wp-caption-text\">Web.Config Theme Differences<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>For the past couple of hours I have been banging my head and pulling my left over few strands of hair to figure out what&#8217;s wrong with my code causing the below exception. The Controls collection cannot be modified because &hellip; <a href=\"http:\/\/www.arjarapu.com\/wordpress\/2009\/10\/ektron-the-controls-collection-cannot-be-modified\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,13,14],"tags":[18,36,16,17],"_links":{"self":[{"href":"http:\/\/www.arjarapu.com\/wordpress\/wp-json\/wp\/v2\/posts\/100"}],"collection":[{"href":"http:\/\/www.arjarapu.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.arjarapu.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.arjarapu.com\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.arjarapu.com\/wordpress\/wp-json\/wp\/v2\/comments?post=100"}],"version-history":[{"count":12,"href":"http:\/\/www.arjarapu.com\/wordpress\/wp-json\/wp\/v2\/posts\/100\/revisions"}],"predecessor-version":[{"id":164,"href":"http:\/\/www.arjarapu.com\/wordpress\/wp-json\/wp\/v2\/posts\/100\/revisions\/164"}],"wp:attachment":[{"href":"http:\/\/www.arjarapu.com\/wordpress\/wp-json\/wp\/v2\/media?parent=100"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.arjarapu.com\/wordpress\/wp-json\/wp\/v2\/categories?post=100"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.arjarapu.com\/wordpress\/wp-json\/wp\/v2\/tags?post=100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}