有一个WebUserControl放到WebUserControl.aspx中,在本地运行没问题但是发布以后运行就会出现行 
分析器错误 
说明: 在分析向此请求提供服务所需资源时出错。请检查下列特定分析错误详细信息并适当地修改源文件。 分析器错误信息: 基类包括字段“RegularIndices1”,但其类型(RegularIndices)与控件(ASP.regularindices_ascx)的类型不兼容。源错误: 
行 12: <body >
行 13:     <form id="form1" runat="server">
行 14:         <uc1:RegularIndices ID="RegularIndices1" runat="server" />
行 15:     </form>
行 16: </body>
 源文件: /RegularIndices.aspx    行: 14 
--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:2.0.50727.1433; ASP.NET 版本:2.0.50727.1433 
这样的提示为什么我那里出错了

解决方案 »

  1.   

    这是我的代码 帮我看看是什么地方错的
    <%@ Control Language="C#" AutoEventWireup="true" CodeFile="GasParameter.ascx.cs" Inherits="GasParameter" %><link href="gridviw.css" rel="stylesheet" type="text/css" />
    <table width="100%">
        <tr style="width:100%">
            <td style="height:200px" valign="top">        
                <asp:Panel ID="Panel1" runat="server">
                    <asp:GridView ID="GridView1" runat="server"  
                        AutoGenerateColumns="False" Width="100%"                    
                        onrowcancelingedit="GridView1_RowCancelingEdit" 
                        onrowediting="GridView1_RowEditing"
                        onrowupdating="GridView1_RowUpdating" 
                        AllowPaging="True" DataKeyNames="IndexID"
                        Font-Size="Small" Font-Strikeout="False" Font-Underline="False" 
                        PageSize="7" onpageindexchanging="GridView1_PageIndexChanging1" 
                        onrowdeleting="GridView1_RowDeleting" >  
                        <FooterStyle CssClass="GridViewFooterStyle" /><%@ Page Language="C#" AutoEventWireup="true" CodeFile="GasParameter.aspx.cs" Inherits="GasParameter" %><%@ Register src="GasParameter.ascx" tagname="GasParameter" tagprefix="uc1" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>无标题页</title>
        <link href="StyleSheet.css" rel="stylesheet" type="text/css" />
    </head>
    <body class="body">
        <form id="form1" runat="server">
        <table width="100%">
            <tr>
                <td>
                     <uc1:GasParameter ID="GasParameter1" runat="server" />   
                </td>
            </tr>
        </table>    
           
        </form>
    </body>
    </html>                <RowStyle CssClass="GridViewRowStyle" />   
                    <SelectedRowStyle CssClass="GridViewSelectedRowStyle" />
                    <PagerStyle CssClass="GridViewPagerStyle" />
                    <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                    <HeaderStyle CssClass="GridViewHeaderStyle" />                                
                        <Columns>
                           <asp:BoundField HeaderText="指标ID" DataField="IndexID" ReadOnly="true">
                                <HeaderStyle HorizontalAlign="Left" Height="20px"    gn="Middle" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="指标名称" DataField="IndexName" >
                                <HeaderStyle HorizontalAlign="Left" />
                            </asp:BoundField>                        
                            <asp:BoundField HeaderText="单位" DataField="Unit" >
                                <HeaderStyle HorizontalAlign="Left" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="指标说明" DataField="explain">
      

  2.   

    <uc1:RegularIndices ID="RegularIndices1" runat="server" />没看到引自哪?
      

  3.   


    这是页面的,还是User Control的阿?