Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Problems building site after deleting bin / obj / ClientBin folders - "only content controls are allowed directly in a content page that contains content controls"

Posted on 2009-05-12
2
Medium Priority
?
579 Views
Last Modified: 2013-11-26
Hi,

I've deleted all the bin, debug, and ClientBin folders in an ASP.NET / Silverlight project to prepare the project for entry into source control. now I get the error message when trying to build:

"only content controls are allowed directly in a content page that contains content controls" for several .aspx pages.

Clicking the errors in visual studio doesn't take me to anthing useful. The pages listed don't all include UserControls, but some may.

What could be the problem here?

What could be the problem here. Other than
0
Comment
Question by:Cognize
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 2

Author Comment

by:Cognize
ID: 24362670
This seems to be a red herring type error message - I really cant see a problem with any of the example pages
<%@ Page Title="" Language="C#" MasterPageFile="~/Master.master" AutoEventWireup="true" CodeFile="MobileApplicationAndDeviceManagement.aspx.cs" Inherits="Administration_MobileApplicationAndDeviceManagement" MaintainScrollPositionOnPostback="true" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
 
<!-- Override column layout with mini style sheet -->
<link href="../Styles/SingleColLayout.css" rel="stylesheet" type="text/css" />
 
<style type="text/css">
 
h2
{
    margin-top: 10px;
}
 
.applicationModelAssociationTxtBx
{
    display: inline;
    float: left;
}
 
.leftApplicationModelAssociationTxtBx
{
    margin-right: 10px;
}
 
.hoverBtn
{
    cursor: pointer;
}
 
.bigButton
{
    width: 800px;
    height: 35px;
    margin-top: 10px;
    margin-bottom: 10px;
}
 
.fileUploader
{
    width: 800px;
    height: 20px;
    margin-bottom: 10px;
    margin-top: 10px;
}
 
.compatTxtBxHeader
{
    font-size: 0.85em;
    color: #006699;
}
 
.modelUploadManufDDL
{
    margin-bottom: 10px;
}
 
.littleBtn
{
    margin-bottom: 10px;
    margin-top: 10px;
    height: 30px;
}
 
.SuccessPnl
{
    border: 1px solid green;
    color: Green;
}
 
.ErrorPnl
{
    border: 1px solid red;
    color: Red;
}
 
.SuccessPnl, .ErrorPnl
{
    background-color: #FFFFCC;
    padding: 10px;
    margin-bottom: 10px;
}
 
.ErrorTextBox
{
    color: red;    
}
 
.SuccessTextBox
{
    color: green;    
}
 
.UnsetTextBox
{
    color: #333333;    
}
 
#bgDiv {
  position:absolute;
  top:0px;
  bottom:0px;
  left:0px;
  right:0px;
  overflow:hidden;
  padding:0;
  margin:0;
  height: 1350px;
  background-color:black; 
  filter: alpha(opacity=50);
  opacity: 0.5;
  z-index:500;
}
 
#progressPleaseWaitDiv
{
    border: 1px solid #999999;
    text-align: center;
    color: Green;
    position: absolute;
    left: 20px;
    top: 20px;
    font-size: 2em;
    z-index: 600;
    background-color: #ffffff;
    padding: 10px;
}
 
</style>
 
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    
    <div>
        <h2>Application Upload &amp; Device Association for <asp:Literal ID="m_prodTitleLit" runat="server"></asp:Literal> ( ID: <asp:Literal ID="m_prodIdLit" runat="server"></asp:Literal> )</h2>
        <br />
        <asp:Literal ID="m_prodLinkLit" runat="server"></asp:Literal><br />
        <br />
        <asp:Image ID="m_productThumbImg" runat="server" />
        
    </div>
    
            <hr />
            
            <div id="clearAllDataDiv">
            
                <h2>Clear Compatible Models Text Boxes</h2>
                
                <br />
                
                <div>
                    <asp:LinkButton CssClass="hoverBtn" ID="m_clearAllDataBtn" runat="server" 
                        Text="Clear Compatible Models Text Boxes" onclick="m_clearAllDataBtn_Click" />
                </div>
                
                <br />
            </div>
            
        
            <hr />
            
            <div id="applicationModelAssociationDiv">
            
                <h2>Application Device Association</h2>
                
                <div>
                    <asp:FileUpload  CssClass="fileUploader" ID="m_applicationFileUpload" runat="server" />
                </div>
                
                <div>
                    <div class="applicationModelAssociationTxtBx leftApplicationModelAssociationTxtBx">
                        
                        <asp:Label CssClass="compatTxtBxHeader" ID="m_potentialCompatibleModelsLbl" runat="server" Text="Potential Compatible Models"></asp:Label>
                        <br />
                        <asp:TextBox CssClass="UnsetTextBox" ID="m_potentialCompatibleModelsTxtBx" Width="390" Height="200" 
                            runat="server" BackColor="#FFFF99" Font-Names="Courier New" 
                            TextMode="MultiLine"></asp:TextBox>
                    </div>
                    <div class="applicationModelAssociationTxtBx">
                        
                        <asp:Label CssClass="compatTxtBxHeader" ID="m_successfulCompatibleModelsLbl" runat="server" Text="Successful Compatible Models"></asp:Label>
                        <br />
                        <asp:TextBox CssClass="UnsetTextBox" ID="m_successfulCompatibleModelTxtBx" Width="390" Height="200" 
                            runat="server" BackColor="#FFFF99" TextMode="MultiLine"></asp:TextBox>
                    </div>
                    
                    <div class="ClearingLeftDiv"></div>
                    
                    
                </div>
                
 
                <div>
                    <asp:Button CssClass="hoverBtn bigButton" ID="m_associateApplicationsModelsBtn" 
                        runat="server" Text="Upload Application and Associate Devices" 
                        onclick="m_associateApplicationsModelsBtn_Click" />
                        
                    <asp:Panel CssClass="SuccessPnl" ID="m_applicationUploadAssociationStatusPnl" runat="server" Visible="false">
                    
                        
                    
                    </asp:Panel>
                    
                </div>
            </div>
            
            <asp:UpdateProgress  runat="server" id="m_pageUpdateProgress">
            <ProgressTemplate>
                    <div id="progressPleaseWaitDiv">
                            <span>Loading...</span>
                    </div>
                <div id="bgDiv"></div> 
            </ProgressTemplate>
        </asp:UpdateProgress>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            
 
            <div id="modelUploadDiv">
                
                <div class="applicationModelAssociationTxtBx">
                
                    
                    <MyControl:MobileMakesAndModelsEditor ID="m_uc_mobileMakesAndModelsControl" DisplayMakesAndModelsLists="false" runat="server" />
 
                </div>
                
                <div class="ClearingLeftDiv"></div>
                
            </div>
            
            <hr />
            
 
            
            
        </ContentTemplate>
    </asp:UpdatePanel>
 
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder3" Runat="Server">
</asp:Content>

Open in new window

0
 
LVL 2

Accepted Solution

by:
Cognize earned 0 total points
ID: 24362712
Ok, it was a red herring.

I commented out everything in all the pages reporting the error as listed above, and then got an  error saying that the application could not find something in the System.Web.Silverlight name space. I added a reference back to the System.Web.Silverlight dll into the web project, and presto!


Ever feel like you're talking to your self? ;)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question