This is a migrated thread and some comments may be shown as answers.

ReportViewer: Entry point was not found.

2 Answers 484 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Robert Lampe
Top achievements
Rank 1
Robert Lampe asked on 05 Aug 2010, 01:07 PM
Hi,

I Got some problems with the reportviewer.

Error:
Server Error in '/AjaxWebInterface' Application.
Entry point was not found.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
 
Exception Details: System.EntryPointNotFoundException: Entry point was not found.
 
Source Error:
 
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
 
Stack Trace:
 
[EntryPointNotFoundException: Entry point was not found.]
   Telerik.Reporting.IReportDocument.get_ReportParameters() +0
   Telerik.ReportViewer.WebForms.ReportViewer.get_HasParams() +127
   Telerik.ReportViewer.WebForms.ReportViewer.SetParamControlsVisibility() +46
   Telerik.ReportViewer.WebForms.ReportViewer.OnPreRender(EventArgs e) +47
   System.Web.UI.Control.PreRenderRecursiveInternal() +80
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
 
 
Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927


My code ReportViewer.aspx

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ReportViewer.aspx.cs" Inherits="ReportViewer" %>
 
<%@ Register Assembly="Telerik.ReportViewer.WebForms, Version=4.0.10.423, Culture=neutral, PublicKeyToken=a9d7983dfcc261be"
    Namespace="Telerik.ReportViewer.WebForms" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div id="Div1" style="vertical-align: top; height: 80px; background-image: url(<%= ResolveClientUrl("~/img") %>/logo.png);
        background-position: right; background-repeat: no-repeat">
        <asp:Panel runat="server" ID="DashboardPanel">
        </asp:Panel>
    </div>
    <div>
        <telerik:ReportViewer ID="ReportViewer1" runat="server" Width="100%" Height="100%">
        </telerik:ReportViewer>
    </div>
    </form>
</body>
</html>

ReportViewer.aspx.cs
public partial class ReportViewer : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        ReportViewer1.Report = PluginManager.Instance.GetReport("TagByAllRegionsByYear");
    }
}

2 Answers, 1 is accepted

Sort by
0
Robert Lampe
Top achievements
Rank 1
answered on 05 Aug 2010, 02:33 PM
I found the solution.

I had the Q1 2010 first installed. After that the Q2 2010. The old file was still available at the C:\windows\assembly.
0
Kanhaiya
Top achievements
Rank 1
answered on 06 Apr 2011, 10:48 AM
Hi,

I am getting the same issue. The reportviewer opens but inside it comes written "Entry Point Not Found". I have also checked the assembly and it has only one file.

<%@ Register Assembly="Telerik.ReportViewer.WebForms, Version=4.1.10.921, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" Namespace="Telerik.ReportViewer.WebForms" TagPrefix="telerik" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head id="Head1" runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>       
        <asp:Button ID="Button1" runat="server" Text="Print Report client-side" OnClientClick="PrintReport(); return false;" />  
        <asp:Button ID="Button2" runat="server" Text="Print Report server-side"/>
        <br />
        <telerik:ReportViewer ID="ReportViewer1" runat="server" Height="488px" Width="779px">
        </telerik:ReportViewer>
        <script type="text/javascript"
            function PrintReport() 
            
                <%=ReportViewer1.ClientID %>.PrintReport(); 
            
        </script>
    </div>
    </form>
</body>
</html>

and cs code is:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Reports;
using System.Drawing.Printing;
 
namespace iCAT.Web.Reports
{
    public partial class TestReport : System.Web.UI.Page
    {
        public List<object> ReportDataSource { get; set; }
        protected void Page_Load(object sender, EventArgs e)
        {
            rptTest report = new rptTest();
            if (Session["Report_DataSource"] != null)
            {
                ReportDataSource = (List<object>)Session["Report_DataSource"];
            }
            report.DataSource = ReportDataSource;
            ReportViewer1.Report = report;
        }
    }
}
Tags
General Discussions
Asked by
Robert Lampe
Top achievements
Rank 1
Answers by
Robert Lampe
Top achievements
Rank 1
Kanhaiya
Top achievements
Rank 1
Share this question
or