Compdigitec Labs

« | Home | »

Solving “Only Content controls are allowed directly in a content page that contains Content controls”

By admin | February 3, 2012

While debugging and creating a new ASP.NET User Control, I stumbled across the following error, “Only Content controls are allowed directly in a content page that contains Content controls” that I did not encounter before. The culprit: an invalid assembly in the custom ASP.NET User Control registration section of “web.config“:

The first thing I tried, is, of course, to follow the advice on the can and remove any tag or text other than “<asp:Content>” tags from the page. But as, you can see, there are no other characters or tags on the page, and I had tried many times to regenerate the page or force VS to “re-parse” the page without success.

After some more debugging for a while, I found this error, which was related to an invalid assembly in the registering custom ASP.NET User Controls section of the web.config document:

Found another error

Found another error

And the answer? It turns out it was easy enough to fix after all, just fix the offending assembly reference!

The culprit of the error, Only Content controls are allowed directly in a content page that contains Content controls

The culprit of the error, Only Content controls are allowed directly in a content page that contains Content controls

And voila, fixed:

Fixed!

Fixed!

If you found this article helpful or interesting, please help Compdigitec spread the word. Don’t forget to subscribe to Compdigitec Labs for more useful and interesting articles!

Topics: Windows | 14 Comments »

14 Responses to “Solving “Only Content controls are allowed directly in a content page that contains Content controls””

  1. https://realtorjudyha.com/community/profile/emilia_smith/ Says:
    August 30th, 2021 at 15:08

    … [Trackback]

    […] Find More Information here on that Topic: compdigitec.com/labs/2012/02/03/solving-only-content-controls-are-allowed-directly-in-a-content-page-that-contains-content-controls/ […]

  2. mega888 Says:
    September 12th, 2021 at 15:09

    … [Trackback]

    […] Find More on on that Topic: compdigitec.com/labs/2012/02/03/solving-only-content-controls-are-allowed-directly-in-a-content-page-that-contains-content-controls/ […]

  3. indica strains Says:
    October 10th, 2021 at 07:43

    … [Trackback]

    […] Read More here to that Topic: compdigitec.com/labs/2012/02/03/solving-only-content-controls-are-allowed-directly-in-a-content-page-that-contains-content-controls/ […]

  4. One up Mushroom Bar Says:
    October 16th, 2021 at 19:12

    … [Trackback]

    […] Find More on that Topic: compdigitec.com/labs/2012/02/03/solving-only-content-controls-are-allowed-directly-in-a-content-page-that-contains-content-controls/ […]

  5. Paket Honeymoon Bali Says:
    October 18th, 2021 at 10:03

    … [Trackback]

    […] Read More here on that Topic: compdigitec.com/labs/2012/02/03/solving-only-content-controls-are-allowed-directly-in-a-content-page-that-contains-content-controls/ […]

  6. Plumber Sydney Says:
    October 25th, 2021 at 18:48

    … [Trackback]

    […] Here you will find 12737 more Information on that Topic: compdigitec.com/labs/2012/02/03/solving-only-content-controls-are-allowed-directly-in-a-content-page-that-contains-content-controls/ […]

  7. stiiizy pods for sale Says:
    October 26th, 2021 at 01:54

    stiiizy
    stiiizy pods
    stiiizy pods
    stiiizy pods for sale
    stizzy pods
    stiiizy pods near me
    stiiizy flavors

  8. thc bulk supplies 100% legit weed dispensary Says:
    October 27th, 2021 at 21:16

    buy marijuana online
    moon rocks for sale
    exotic carts
    moon rock weed
    weed for sale
    marijuana flowers
    buy weed online
    stiiizy pods
    buy psychedelics online
    marathon og
    buy pounds of weed online
    sun rocks

  9. hoyle Says:
    October 31st, 2021 at 14:52

    tkocarts.us online
    buy marijuana-edibles online
    buy cbd-oils online
    buy vapes-and-carts online
    buy psychedelics online
    buy cannabis-concentrates-online
    buy vapes-and-carts/dank-vapes/ online
    buy marijuana-flowers online
    “buy psychedelics online usa
    buy real cookie carts online
    fake cookie carts online
    buy marijuana-flowers/moon-rocks online

  10. Groovy Says:
    November 19th, 2021 at 16:46

    buy ragdollcatkitten online
    buy ragdollcatkitten online

    https://goo.gl/maps/3Y9cacYn6nfYML91A online
    tkocarts.us online

  11. dispensary security Says:
    November 21st, 2021 at 19:51

    … [Trackback]

    […] Read More here to that Topic: compdigitec.com/labs/2012/02/03/solving-only-content-controls-are-allowed-directly-in-a-content-page-that-contains-content-controls/ […]

  12. James Wrld Says:
    December 22nd, 2021 at 09:27

    ace-killer-og online usa uk
    atomik-moon-rocks-diamond-58-77 usa uk
    buy-ayahuasca-online usa uk
    hawaiian-cookies usa uk
    buy-dmt-online usa uk
    evolution-cyclone-glass-hybrid-recycler-dab-rig usa uk
    buy-sun-rocks usa uk
    acdc-strain-online usa uk
    buy-bc-big-bud-online uk usa
    buy-nyc-diesel-cannabis-strain-online uk usa
    roor-glass-ashtray uk usa
    buy concentrates online uk usa
    mescalin-or-peyote usa
    blueberry-marijuana-strain uk usa
    grape-god uk usa
    durban-poison-cannabis-strain uk usa
    buy-purple-haze-online uk usa
    g13-haze
    buy-cookies-carts-online usa uk
    buy-tko-edibles-online uk usa
    buy sun-rockss online
    buy1035mg-northern-lights-premium-cannabis-oil-cart usa uk au
    buy-purple-haze-online uk usa
    buytko-edibles-brownie online uk usa
    buy-gorrilla-glue uk usa
    buy-550mg-blue-dream-premium-cannabis-oil-cart uk usa
    buy-bloom-vape-maui-waui uk usa
    buy-cookies-high-flyer-premium-cartridge-snowmanuk usa
    Cannabislife-683062215657951
    white-runtz-for-sale-near-me usa uk au
    berry-pie-for-sale usa uk
    420buds2go
    cookies-high-flyer-premium-cartridge usa uk
    CWu5JvQSTB1REA0
    CTe8a2VS6Qg1EA0

  13. Online Gun Shops USA Says:
    December 28th, 2021 at 09:51

    … [Trackback]

    […] Find More to that Topic: compdigitec.com/labs/2012/02/03/solving-only-content-controls-are-allowed-directly-in-a-content-page-that-contains-content-controls/ […]

  14. ซุปเปอร์สล็อต ฟรี50 Says:
    January 5th, 2022 at 00:24

    … [Trackback]

    […] Info on that Topic: compdigitec.com/labs/2012/02/03/solving-only-content-controls-are-allowed-directly-in-a-content-page-that-contains-content-controls/ […]

Comments