Hi
I am getting below error -
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0433: The type 'ServerReport' exists in both 'Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' and 'Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91'
Source Error:
Line 370:
Line 371: [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 372: private void @__BuildControl__control10(Microsoft.Reporting.WebForms.ServerReport @__ctrl) {
Line 373:
Line 374: #line 19 "C:\Users\jai\Desktop\MyApplication\MyApplication\Reports\Reports.aspx"
********************* Home Controller
public class HomeController : Controller
{
UserDb dbUser = new UserDb();
public ActionResult Index()
{
// return View();
return Redirect("../Reports/Reports.aspx");
}
************************** Aspx Page
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Reports.aspx.cs" Inherits="MyApplication.Reports.Reports" %>
<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
************************ Web.Config
Thanks
Sachin SinghPosted Jun 29, 2021, 7:56 AM
Pankajkumar PatelPosted Jun 29, 2021, 8:13 AM