使用visual studio 2012的ReportViewer创建设计错误和无法识别的标记前缀 [英] ReportViewer with visual studio 2012 create design error and unrecognised tag prefix

查看:85
本文介绍了使用visual studio 2012的ReportViewer创建设计错误和无法识别的标记前缀的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 

我一直关注所有线程,因为它现在已经过了7个小时,而我仍然没有解决这个问题。我将我的应用程序升级到VS 2012并开始为我的reportviewer控件创建设计失败和无法识别的标记前缀。我不知道
做什么我已经尝试了网络提供的所有内容,只是不能使用带有控件的aspx页面的继承人样本

I have been following all the threads since midnight its now 7 hrs later and I still haven't solved this. I upgraded my application to VS 2012 and started getting create design failed and unrecognised tag prefix for my reportviewer control. I have no idea what to do I have tried everything the net has to offer its just not working heres sample of the aspx page with the control

<%@ Page Language="C#"  AutoEventWireup="true" CodeBehind="WebForm11.aspx.cs" Inherits="WebApplication1.Employee.WebForm11" %>

<%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>

<%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>

<!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>
    <style type="text/css">
        .style1
        {
            width: 100%;
            height: 323px;
            margin-right: 61px;
            margin-top: 15px;
        }
        .style2
        {
            width: 149px;
        }
        .style3
        {
            width: 100%;
        }
        .style4
        {
            height: 31px;
            width: 136px;
        }
        .style5
        {
            width: 136px;
        }
    </style>
</head>
<body style="background-image: url('Images/Bottom_texture.jpg')">
    <form id="form1" runat="server">
    <div>
       <h2 style="text-align: center"> Invoice Report </h2>

        <table class="style1">
            <tr>
                <td class="style2">
                    <div style="float: left; height: 900px; margin-top: 5%; position: inherit; width: auto; margin-right: 0px;">
                        <asp:Panel ID="Panel1" runat="server" Height="171px" Width="150px" 
                        BackColor="White">
                        <table class="style3">
                            <tr>
                                <td class="style4">
                                    <asp:Button ID="Button1" runat="server" Height="44px" onclick="Button1_Click" 
                                        Text="Show Report" Width="145px" BorderStyle="Outset" BackColor="Black" 
                                        ForeColor="White" />
                                </td>
                            </tr>
                            <tr>
                                <td class="style5">
                                    <asp:Button ID="Button2" runat="server" Height="41px" onclick="Button2_Click" 
                                        Text="Email  Report" Width="144px" BorderStyle="Outset" BackColor="Black" 
                                        ForeColor="White" />
                                </td>
                            </tr>
                              <tr>
                                <td class="style5">
                                    <asp:Button ID="Button3" runat="server" Height="46px" onclick="Button2_Click" 
                                        Text="Print Report" Width="144px" BorderStyle="Outset" BackColor="Black" 
                                        ForeColor="White" />
                                </td>
                            </tr>


                        </table>
                    </asp:Panel>
                    </div>

                    
                </td>
                <td>
                    <table class="style3">
                        <tr>
                            <td >
                                <div style="width:635px; background-color:whitesmoke ">
        <rsweb:ReportViewer ID="InvReportViewer" runat="server" Font-Names="Verdana" 
            Font-Size="8pt" InteractiveDeviceInfos="(Collection)" 
            WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt" Width="635px" 
                        style="margin-left: 0px; margin-right: 133px;" Height="900px">
           
        </rsweb:ReportViewer>
        </div>
                            </td>
                        </tr>
                       
                    </table>
                </td>
            </tr>
        </table>
    
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <br />
      
    
    </div>
    </form>
</body>
</html>




在此先感谢您的问候 


Thanks in advance regards 

推荐答案

您有两个用于ReportViewer控件的注册表程序集标记,尝试删除其中一个并查看是否解决问题。

You have two regsiter assembly tags for the ReportViewer control, try removing one of them and see if that resolves the issue.

Matt M.


这篇关于使用visual studio 2012的ReportViewer创建设计错误和无法识别的标记前缀的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆