Quantcast
Channel: Visual Studio General Questions forum
Viewing all articles
Browse latest Browse all 21115

Visual Studio Microsoft Reporting errors

$
0
0

I have imported a C# ASP.Net project originally developed in Visual Studio 2010 Premium to Visual Studio 2013 Professional. After doing so there are a number of errors in the project, including the following:

Warning              1             D:\xxx\MAIN\About.aspx: ASP.NET runtime error: Could not load file or assembly 'Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) (D:\xxx\MAIN\web.config line 30)                D:\xxx\MAIN\About.aspx           1             1             

web.config line 30:

 

        <addassembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />

 

Error      2             'Microsoft.Reporting.WebForms.ReportViewer' does not contain a definition for 'KeepSessionAlive' and no extension method 'KeepSessionAlive' accepting a first argument of type 'Microsoft.Reporting.WebForms.ReportViewer' could be found (are you missing a using directive or an assembly reference?)                D:\xxx\MAIN\ShowReport.aspx.cs         28           34

 

ShowReport.aspx.cs line 28:

 

                        rpReport.KeepSessionAlive =true;

 

Definition of rpReport:

 

       ///<summary>

       /// rpReport control.

       ///</summary>

       ///<remarks>

       /// Auto-generated field.

       /// To modify move field declaration from designer file to code-behind file.

       ///</remarks>

       protectedglobal::Microsoft.Reporting.WebForms.ReportViewer rpReport;

Does anybody know why I am getting these errors? I might be missing a library but there is no error in the import statement.

Or does Visual Studio 2013 use a new version of the reporting library that is incompatible with the version that is specified in web.config (10.0.0.0)?


Viewing all articles
Browse latest Browse all 21115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>