Error: “The report definition has an invalid target namespace ‘http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition’ which cannot be upgraded.” when run MS Reportviewer and ASP MVC3.

Solution to fix this problem:

Turns out the issue was my “C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\ReportingServices\Microsoft.ReportingServices.targets” file had somehow changed. The top of my file was:

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <UsingTask TaskName="Microsoft.Reporting.RdlCompile" AssemblyName="Microsoft.ReportViewer.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>

And it should have been:

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <UsingTask TaskName="Microsoft.Reporting.RdlCompile" AssemblyName="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>

OR

Just install Microsoft Report Viewer 2010 SP1. You can go to this link to download then install MS Report Viewer 2010 SP1

Advertisements
This entry was posted in ASP.NET MVC. Bookmark the permalink.

5 Responses to Error: “The report definition has an invalid target namespace ‘http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition’ which cannot be upgraded.” when run MS Reportviewer and ASP MVC3.

  1. Hey! I know this is kind of off-topic but I needed to ask.
    Does managing a well-established blog like
    yours take a large amount of work? I’m completely new to running a blog but I do write in my journal daily. I’d like to start a blog so I will be able
    to share my own experience and thoughts online. Please let me know
    if you have any suggestions or tips for new aspiring blog owners.
    Thankyou!

  2. DDa says:

    When i changed >>>>> AssemblyName=”Microsoft.ReportViewer.Common, >>>>>> AssemblyName=”Microsoft.ReportViewer.WebForms, it works. tq

  3. DDa says:

    and change the version too, from Version=9.0.0.0 >>> Version=10.0.0.0 Make sure you close the project before you rebuild the solution. If not there’s no effect.

  4. DDa says:

    lastly TQ for the solution.

  5. Ronald Paguay says:

    I had this problem on VS2013. My solution was to update Microsoft.ReportViewer reference to 11.0 (It was 10)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s