locked
Using Microsoft.Reporting.Webforms error.. RRS feed

  • Question

  • User-1853867835 posted

    Hello ... 
    Trying to create simple report using examples.

    I used this site-
    http://weblogs.asp.net/rajbk/archive/2010/05/09/creating-an-asp-net-report-using-visual-studio-2010-part-1.aspx

    But it seems to have 2 problems. Getting error on 2 things-

    1.  Using Microsoft.Reporting.Webforms

    Error	1	The type or namespace name 'Reporting' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)	C:\Users\USER\Documents\Visual Studio 2010\Projects\NorthwindReports\NorthwindReports\DAL\ProductRepository.cs	5	17	NorthwindReports
    

    2.  Public class ProductRepository : IProductRepository

    Error	1	'NorthwindReports.DAL.ProductRepository' does not implement interface member 'NorthwindReports.DAL.IProductRepository.GetCategories()'. 'NorthwindReports.DAL.ProductRepository.GetCategories()' cannot implement 'NorthwindReports.DAL.IProductRepository.GetCategories()' because it does not have the matching return type of 'System.Linq.IQueryable'.	C:\Users\USER\Documents\Visual Studio 2010\Projects\NorthwindReports\NorthwindReports\DAL\ProductRepository.cs	9	18	NorthwindReports
    


    I added reference of Microsoft.Reporting.Webforms by right clicking the website and then adding. Yet it is showing the error.

    Saturday, June 30, 2012 2:10 AM

All replies

  • User306743125 posted

    Did you edit your webconfig as described here ?

    Saturday, June 30, 2012 5:22 AM
  • User-1853867835 posted

    Hi,

    I am still receiving same error. Could you please help me in finding errors in this web.config file? 

    <?xml version="1.0" encoding="utf-8"?>
    <!--
    For more information on how to configure your ASP.NET application, please visit
    http://go.microsoft.com/fwlink/?LinkId=169433
    -->
    <configuration>
    
    <system.web>
    <buildProviders>
    <compilation debug="true" targetFramework="4.0">
    
    <assemblies>
    <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
    <add assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
    <add assembly="Microsoft.ReportViewer.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
    
    </assemblies>
    
    </compilation>
    <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
    </buildProviders>
    </system.web>
    
    <httpHandlers>
    
    <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false"/>
    
    <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
    
    </httpHandlers>
    <connectionStrings>
    <add name="NorthwindEntities" connectionString="metadata=res://*/DAL.Northwind.csdl|res://*/DAL.Northwind.ssdl|res://*/DAL.Northwind.msl;provider=System.Data.SqlClient;provider connection string=&quot;Data Source=USER-PC\SQLEXPRESS;Initial Catalog=Northwind;Integrated Security=True;MultipleActiveResultSets=True&quot;"
    providerName="System.Data.EntityClient" />
    <add name="NorthwindConnectionString" connectionString="Data Source=USER-PC\SQLEXPRESS;Initial Catalog=Northwind;Integrated Security=True"
    providerName="System.Data.SqlClient" />
    </connectionStrings>
    </configuration>
    



    Sunday, July 1, 2012 12:40 AM