.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

The report definition is not valid. Details: The report definition has an invalid target namespace

Posted By:      Posted Date: September 01, 2010    Points: 0   Category :Sql Server
Hi all, I am getting this error message when i try to run the report from VS 2010. It was working fine before the upgradation. why it is not working in VS 2010 and SQL Server 2008. can any one please give me a solution.?  

View Complete Post

More Related Resource Links

report definition is not valid



I recently upgraded to VS 2010.  One on of my reports I am getting the following error.  Can someone help?

The report definition is not valid. Details: The report definition has an invalid target namespace 'http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition' which cannot be upgraded.

Thank you.

report definition cannot find custom assembly in VS 2010



I;m trying to use custom code (C#) in a report definition and I have followed the steps outlined in MSDN to get this done. However, whenever I compile the code, I keep getting the following error

"Error while loading code module: ‘GSLibrary, Version=, Culture=neutral, PublicKeyToken=null’. Details: Could not load file or assembly 'GSLibrary, Version=, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified."

I've scoured through this forum and the net looking for answers but nothing seems to work. The closest answer was to mark the assembly as a trusted code module in the current app domain, but VS2010 complains that this method is deprecated.

The assembly works just fine elsewhere in code. How do I get custom C# code to work with the reports I am creating.

Thanks for your help.

Invalid data has been used to update the list Item.(List definition)

<nativehr>0x80070057</nativehr><nativestack></nativestack>Invalid data has been used to update the list item. The field you are trying to update may be read only. I have created a list definition and into that i have created lookup column when i am trying to add any item into the list then it gives me an error as above. Can anyone help me.? I made the readonly attributes to false for lookup columns.  

what kind of a report to be created in SSRS when the requirement is to show the Summary and Details

I have some reports to be developed where I need to show the Summary and the details of Students/Particular Product, Please advice what kind of Report format/ drill down or is there a way that on clicking on the summary it would show Details in a child report using SSRS 2008. it would be helpful if there are some tutorial links too thanks in advance for response.

Creating Matrix report to show totals, need subreport to show details...

I've created a perfect matrix report using the nifty wizard and it's exactly what the client wants, but they would also like to see the detail for each row. I'm able to create subreports and pass parameters and all that jazz, but I'm having a hard time setting up a subreport for this matrix. It's pretty much this format                      MakeOfCar                      ModelOfCar LotLocation   Count of cars   This would return:                         Ford           Ford                        Mustang      F150 Location A:         5                0 Location B:         2                3    

Valid Credentials for Report Execution Web Service


I've had an application running for some time which accesses reports via the reportingservices web service.   Recently I had a request to directly stream the reports for download rather than viewing them through the report viewer.  I facillitated this using the reportexecutionservice web service and in testing, everything went fine.  When deployed however, the downloads mysteriously failed to occur.

The issue traced to a 401 unauthorized error, which implies my network credentials were rejected.   Easy, right?  Well, the problem I'm having is that I'm using the same credentials for both the reportingservices web service and the reportexecutionservice web service and I had expected that what was sufficient for one was sufficient for the other. 

The credentials I'm passing are for a user which is a member of the SQLServerReportServerUser group on the machine hosting the web service.  Is this insufficient to run the reportexecutionservice, and if so, what do I need to do to adjust the security permissions of this user to grant them access to reportexecutionservice?

Error 2 Type or namespace definition, or end-of-file expected


Hi frnds,

I am new to this programming.. I am trying to download files from a specific folder in ftp server. after downloading those files i want to store in my computer. . I got the code on internet but wen i am trying i am getting this error Error 2 Type or namespace definition, or end-of-file expected. .  please help me very urgent. here is my complete code


using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
using System.Net;
using System.Text;
using System.Runtime.InteropServices;

public partial class _Default : System.Web.UI.Page 
    protected void Page_Load(object sender, EventArgs e)
        string[] files = GetFileList();
        foreach (string file in files)

        public string[] GetFileList()
            string[] downloadFiles;
            StringBuilder result = new StringBuilder();
            WebResponse response = null;
            StreamReader reader = null;
                FtpWebRequest reqFTP;
                reqFTP = (FtpWebReq

An error occurred while executing the command definition. See the inner exception for details.



In my mvc asp.net application, I am getting error in edit function : in given code

public ActionResult Edit(int id)

var res = (from r in objeEntities.DocumentationsSet.Include("DocStatus")
where r.textid == id select r)

I am getting this exception:

  • Source : System.Data.Entity

    Stack Trace : at System.Data.EntityClient.EntityCommandDefinition.ExecuteStoreCommands(EntityCommand entityCommand, CommandBehavior behavior) at System.Data.Objects.Internal.ObjectQueryExecutionPlan.Ex

Importing table/ column details from one report to another

is it possible to import a value present in the  column/table of a report to another report. The is just to avoid the creation of datasets again in the second report.

how to set the height of table row details become auto in report viewer?



i facing a problem how to set the height of table row details become auto in report viewer? 

due to my data maximum length is 300, however some data may be short till 10 characters.

how to make the height become auto and depends on the content of data?

Classes and Namespaces - Error CS0101 the namespace already contains a definition for


I keep getting the error: Error message: CS0101: The namespace '<global namespace>' already contains a definition for 'checkvalue'.

Then, I rename the Inherits from the @page directive in both the .aspx and .aspx.cs pages and it works!

My website has only 2 pages, and both use the same class (same class name, exactly same syntax) but it has been copied and pasted and the 2 aspx pages (and aspx.cs pages) are not referencing each other.

In other words, both aspx.cs pages (called page1.aspx.cs and page2.aspx.cs) has the class

public class CheckValue
        return true;

Both the aspx pages reference the 'inherits' files seperately:

<%@ Page Language="C#" CodeFile="page1.aspx.cs" Inherits="_1" %>

and my code behind

public partial class _1 : System.Web.UI.Page

and for my second page

<%@ Page Language="C#" CodeFile="page2.aspx.cs" Inherits="_2" %>

and my code behind

public partial class _2 : System.Web.UI.Page

I don't use the .resx file.

Why does this error happen some times, and not other times?


Report - Drill down/Expand details? - how do I create this report in SSRS


I'm having trouble making this drilldown/expand details report. It is probably simple - but is beyound the basic drill down examples that I have found.

My data has multiple rows per product because 2 of the columns are joined with tables that include multiple rows per product. This is related products and prices for quantity intervals.

Is it possible to use grouping so that I could have these show as 1 row per product and then be able to expand the information

Any solution will do – it could be like this:

Invalid object name 'HG_AX09TempDB.dbo.PersistedStream' while running the report


when i run any report it gives the following error


An error occurred within the report server database. This may be due to a connection failure, timeout or low disk condition within the database. (rsReportServerDatabaseError)

  • Invalid object name 'HG_AX09TempDB.dbo.PersistedStream'.

Invalid Template error after deploying site definition to different environment



I have developed a custom site definition with some custom features and web parts.All Works fine in my development environment i.e site is being created with necessary features and lists. But when I copy the respective files and folders to Production environment and installed my custom features and also run the IISRESET command and click on Create button by selecting my site definition in template section, its giving "The template you have chosen is invalid or cannot be found" error. But a few days prior I have deployed a initial version of the same site definition with same features and every thing had worked fine. I am going crazy of this absurd behavior of SharePoint.its really annoying as it accepts the same definition a few days prior and gives unfriendly error afterwards. If anybody had solved this issue please share it to me to get out of this.



Alternating row background for first column of a report


is there a way to make the first column of a report use the an alternating background color? 

I have the background color set for the entire row however it does not work for the first column if the color is set to an expression.  If I just set it to a color i.e. red it works just fine. If I insert a dummy column to the left it works just fine (but the dummy column does not work, presumably because it is first??).

In the file below only the textbox for part number does not show an alternating background.  All others work correctly.

                    <Textbox Name="PartNumber">

How to use report viewer 2010 in VS 2008


I downloaded report viewer 2010 from here


Now I want to actually use it in a website.  How do I do that?  Do I have to modify some part of web.config?  Specifically, what do I need to change?


populate report viewer by code


Hi all

I have a button "Show Report" to show some data from table

what I should write under this button to populate the reports ?

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend