.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 Reference for the Shared Dataset is not Valid.

Posted By:      Posted Date: September 30, 2010    Points: 0   Category :Sql Server

I am running SQL Server 2008 R2 Enterprise 64bit and Reporting Services on  Windows 7 Pro 64 bit. The Report Server is running in Native mode. I have been able to deploy my first report (after running BIDS as administrator), but I cannot render the report from the Report Manager.

When I click on the report in the Report Manager, I get the following message: "

  • The report server cannot process the report. The reference for the shared dataset 'DataSet1' is not valid. (rsInvalidDataSetReference) ".
  • DataSet1 is a Shared Dataset.
  • What am I doing wrong?

  • View Complete Post

    More Related Resource Links

    Shared Dataset embedded URL reference


    When you add a shared dataset, Report builder puts the fully qualified url reference of that dataset in the RDL.  I would have expected a relative reference, but the server name is embedded in the RDL!  It looks like this:


    When I deploy to another server, that url still points to the old server.  If I set them all to localh

    Shared dataset in SSRS 2008 R2 running on SSAS 2005

    I am trying to create a report in SSRS 2008 R2 using SSAS 2005 as a datasource. My dataset has a date parameter. When I create an embedded dataset in my report everything works fine, but when I create a shared dataset with the exact same mdx query, I get the following error: An error occurred during local report processing. The definition of the report 'xxxx' is invalid. The Value expression for the report parameter 'DateCalendarHierarchy' contains an error: [BC30034] Bracketed identifier is missing closing ']'. Does anybody have any ideas? Is this a bug? Thanks, Louis

    Reference to a non-shared member requires an object reference in code generated by ASP.NET



    I am working on converting a project from C# to VB and am facing this weird issue. 1 page cannot compile and I get the reference error, but the weird thing is that the compiler shows the error as coming from ASP.NET generated code. Visual Studio shows me that error is coming from my ASPX page. I cannot seem to figure out why or where this error is occuring. Also if I take the inherits attribute out I don't get the compilation error. The code in aspx page is below:

    <%@ Page Language="VB" AutoEventWireup="true" CodeBehind="diff.view.aspx.vb"  Inherits="MR.ControlApp.diffview" MasterPageFile="~/Site1.Master"%>
    <asp:Content ID="Header1" ContentPlaceHolderID="head" runat="server">
        Page: <select onchange="sel(this);">
            Dim j As Integer = 0
            While j < pageCount
               <option <%= IIf(currentPage = ( j + 1 ), "selected", "")  %> value="<%= j+1 %>"><%= j + 1 %></option>
            <%j = j + 1
            End While
        <% 'Print(); %>
        <div style="font-family: verdana; font-size: 10pt; font-weight: bold">
            MDM Data Inconsiste

    when adding web reference, I get "Operation is not valid due to the current state of the object."



    I am trying to add a Web reference to a project.  So, I do the standard: right clicking on the project and select "Add Web Reference". The Add Web Reference appears and I navigate to the desired URL "http://ws.melissadata.com/dqws/Address.asmx" and click "Go".   This works in IE.  I see the results and two methods in the window.  However,  the "Add Reference" button and " Web Reference Name" texbox is disabled. And, I see the Operation is not valid due to the current state of the object." I think this is a proxy and or firewall issue?


    I know the System.Net.WebProxy("corp-xxx-proxy.xxx", 8080);  and System.Net.NetworkCredential("xxxx", "xxxx"); [x replaces real values]

     Any ideas where I can set this info so I will be able to use the "Add Web Reference" wizard?  - OR - Is there a workaround?




    Reference to a non-shared member requires an object reference


    This is detaining me from transferring my website to another webserver.  So much for a seamless transfer. I had no problem ever with the following line on several pages on my site:

      <%Dim cust As New BusinessLogic.SiteUser(CInt(BusinessLogic.SiteUser.CurrUserID))%>

    This line is used on 4 other pages just like above. The vs 2008 is whining with this error message.

    I opend my 2005 vb.net site into VS 2008 and it asked me if I wanted to upgrade for .net 3.5 and I said yes. I cannot debug and I get the mentioned error. Visual Studio 2005 gives NO such error. What is the issue?  How can I resolve this?

    What is a non-shared member? I don't think I should have to change anything in my business logic area. Can this line, which does 2 things, be done in the code behind? Or partly in the code behind so as to not give this error?

    <%@ Page Language="VB"  AutoEventWireup="false" CodeFile="paypal_featured.aspx.vb" Inherits="paypal_paypal_featured" title="Untitled Page" %>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <form action="<%=paypalurl%&g

    Reference to a non-shared member requires an object reference


    I do not receive this error when I open my website application in vs 2005. When I open in vs 2008, I get this error. What gives?

    These lines are underlined in blue:

    <%Dim cust As New BusinessLogic.SiteUser(CInt(BusinessLogic.SiteUser.CurrUserID))%>

    Businesslogic area is imported into each of 3 pages with this line. 

    reference web control from shared sub



    Guys I need reference a Treeview from a shared sub so I can run a databind on it after the the sub has finished doing it's thing.

    Any Ideas?

    Reference to a non-shared member requires an object reference.


    I cannot seem to find the answer to this error.  I have read all the posts I could find but nada seem to work.


    Here's what I have


    Sub Page_Load

    Dim clsTest As New clsTest

         Dim myTest As String = clsTest.Test1()    <-- Error Reference to non-shared member requires an object reference

     End sub


    Imports System
    Imports Microsoft.VisualBasic
    Imports System.DateTime
    Imports System.Data
    Imports System.Data.SqlTypes
    Imports System.Data.SqlClient
    Imports System.Data.Linq.DataContext

    Imports System.Web
    Imports System.Web.UI.Page
    Imports System.Web.HttpRequest
    Imports System.Collections

    Public Class clsTest

       Public Shared Function Test1() As String

          Return "Test1"

       End Function

    End Class



    Thanks for your help







    A better way to reference your wizard steps using named steps

    Note: this article uses the plain vanilla but the concepts apply equally well to its popular counterpart .

    By far the most common way that I see wizard steps reference in code snippets is by their index.

    Using a CompareValidator to check input is a valid date

    The CompareValidator can do more than just compare two controls. You can also compare it against several of the main .net data types such as Date, Integer, Double and Currency.

    To do this you would set Operator="DataTypeCheck" and instead of setting the ControlToCompare or ValueToCompare attributes as you normally would you use the Type="Date" (or any of the data types I have listed above).

    Introducing ADO.NET and the Typed DataSet

    In reviewing the applications it seemed everything they were doing involved database reads, writes, and manipulation. The development staff had been reviewing the articles and code samples for ADO.NET. They had spent many years refining their existing ADO based infrastructure and perfecting their use of ADO

    Create and Use a Typed DataSet by Using Visual C# .NET

    This article shows you how to create and use a typed DataSet in a small Web application. Typed DataSets, which inherit from the DataSet class, create first-class members of a DataSet's DataTables and DataColumns, yielding the many benefits that come with the use of strong typing.

    Get Top 1 Record from Dataset

    Many of them in need of getting the Top 1 or Top 10 records from a Dataset without going to SQL query. It is possible to do from Code Behind. I have given the code below,
    The below code is to get single record from a Dataset. Also I have given for getting 8 records at Green Color.

    Returning a DataSet From a Web Services: Step-by-Step

    This Example Shows how to create a webservice which returns a DataSet and a Client Which displays the DataSet in a Grid.


    This Example Shows how to create a webservice which returns a DataSet and a Client Which displays the DataSet in a Grid.

    reference from menubuttons to text parts in article on the same page


    Hi, I'm searching now for hours but couldn't find it.Cry

    In my menu i have several buttons which (by a <a href..) should go the a part of an article that is in the same form.

    Menu button : What is a database should go to the page default.aspx and in there is an article published.
    A part of this article is having a piece of text about "what is a database"

    Menu button: how to make a query should go to this same article in the same page but then to the part that is have the piece about the query. The next could be an example of what i'm doing:

        <li><a href="default.aspx ?????>what is a database</a></li>
        <li><a href="default.aspx ?????>what is a query</a></li>

    Where my question marks are, there should be a connection to that particular piece of text.
    In each article part there is an ID="text1" and the second part id="text2"

    How shoudl i do that, Should i use a question mark.
    Please give me some guidance how to structure the <li> statement or a pointer where I can read about it.


    Persist large dataset across ASP.NET pages. No database


    Can anyone give me suggestions on how to implement the following requirement?

    1. A online wizard (step-by step operation) processes user requests across several ASP.NET pages.  The session data is stored in memory until the user submits the request.  Once the request is submitted, a XML file is created and the data are passed to XML.

    # Case Study: The parent page has a "select" button.  Click "select" will pop up a child page.  The users can select 1000+ items from a datagrid in the child page.  Once the user clicks "confirm", the selected items in the child page will be populated to the selected item gridveiw in the parent page.  The user can keep selecting more in the child page and the selected items will be appended to the gridview in the parent page.


    - What's the best way to extract strings from a text file and convert to a dataset in memory and then present it in a datagrid in UI?

    - What's the best way to persist and manipulate a large dataset across pages?  Session? or ViewState? Can it be accomplished by LINQ?

    The app doesn't interact with a DB.  Once the request is submitted, it will convert the in memory data to a XML file.  What technology can be used to accomplished this?&nb

    Why not Dataset use to Saving?


    Hie Friends,

    I have searched on net and even i worked on 2 huge shipping projects.

    Everywhere i found that while binding data to control use dataset but when we save, they recommend use command (use generic collection and create command object with store procedure) why not we use dataset as in .NET 2.0 it is improved lot and data adapter has new feature batchupdatesize.

    why we need to create property page which maps to all column in a database.

    E.g. if i have employee table with empid and empname in database then i use to create emp.cs with properties of empid and empname and use same properties for saving. If i use these properties for validation in business rule then no problem. But why we use them in saving for creating command object.


    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