Could not load file or assembly 'Microsoft.ReportViewer.WebForms

Last post 06-26-2008 5:56 PM by tusharm_99. 7 replies.

Sort Posts:

  • Could not load file or assembly 'Microsoft.ReportViewer.WebForms

    03-16-2006, 10:25 AM
    Locked
    • Member
      20 point Member
    • Hawkmoth
    • Member since 03-16-2006, 3:15 PM
    • Posts 7

    I hope someone can help me.

    I have created a webapplication that uses the ReportViewer.

    It runs fine on my devolopment pc but when I copy it to our server I get a parse error:-

    Could not load file or assembly 'Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

    I have seen posts anout this error in the 2005 beta version and that this would be resolved by using the setup & deployment project to install this control.

    I have created a setup project but when I attempt to install it to our server I get an error:-

    An error occured while attempting to create the directory Web folder.

    I am logged in as an administrator and I have made sure that the permisions are set to full control on the website Home directorys.

    So I am scratching my head now. Can anyone help me please.

    Hawkmoth

  • Re: Could not load file or assembly 'Microsoft.ReportViewer.WebForms

    03-16-2006, 1:51 PM
    Locked
    • All-Star
      121,846 point All-Star
    • XIII
    • Member since 06-30-2002, 11:59 PM
    • Essen, Belgium
    • Posts 13,519
    • ASPInsiders
      Moderator
      TrustedFriends-MVPs

    Hawkmoth wrote:
    Microsoft.ReportViewer.WebForms

    Hi,

    and welcome to the ASP.NET forums.

    I don't have experience with the reportviewer myself but my first thing to check is to locate the assembly Microsoft.ReportViewer.WebForms.dll on the hard drive and once found upload it to the /bin subfolder on the server.

    Grz, Kris.

  • Re: Could not load file or assembly 'Microsoft.ReportViewer.WebForms

    03-17-2006, 6:03 AM
    Locked
    • Member
      20 point Member
    • Hawkmoth
    • Member since 03-16-2006, 3:15 PM
    • Posts 7

    Thanks for your help. You have put me on the right track. I have done a fare bit in VS2000/2003 but I am new to VS2005

    The bin file was not on the website but it made me realise that the way the site was being uploaded/created maybe wrong and hence not creating the bin file etc

    It turns out that I was using the 'Copy Web Site' option instead of the 'Publish Website' in the Build menu.

    I now have a new problem. In my web application I use the ReportVeiwer control and I used the 'Design a new report' option in the ReportViewer tasks. This created a blank report called report.rdlc. I then link this into the ReportViewer using the 'Choose Report' option also in the ReportViewer tasks.

    When running this on the server I get:-

    An error occurred during local report processing.

  • The report definition for report 'C:\Inetpub\wwwroot\test\Report1.rdlc' has not been specified 
  • Could not find a part of the path 'C:\Inetpub\wwwroot\test\Report1.rdlc'.
  • I can guess this is because in the 'Choose Report' option I can only select the path to the report on my development pc which cannot be foud when running on the server. I can see there is an option to select the <Report Server>.
  • Is there easy way of connecting the Report Viewer to the report on the server website instead of my local machine? or do I need this <Report Server>? I guess I need to read up about this report server option in the help files.
  • Thanks for your help

    Hawkmoth

  • Re: Could not load file or assembly 'Microsoft.ReportViewer.WebForms

    03-20-2006, 3:34 AM
    Locked
    • Member
      20 point Member
    • Hawkmoth
    • Member since 03-16-2006, 3:15 PM
    • Posts 7

    OK I just got round the above problem by just including the following line in the Page_Load event

    this.ReportViewer1.LocalReport.ReportPath = @"Report1.rdlc";

    So I'm happy.

    Thanks again for your help.

    Hawkmoth

  • Re: Could not load file or assembly 'Microsoft.ReportViewer.WebForms

    03-20-2006, 7:55 AM
    Locked
    • All-Star
      121,846 point All-Star
    • XIII
    • Member since 06-30-2002, 11:59 PM
    • Essen, Belgium
    • Posts 13,519
    • ASPInsiders
      Moderator
      TrustedFriends-MVPs

    Hi Hawkmoth,

    glad I could direct you into a solution and thanks for letting the community know how you eventually solved it.

    Grz, Kris.

  • Re: Could not load file or assembly 'Microsoft.ReportViewer.WebForms

    03-14-2008, 12:30 AM
    Locked
    • Member
      7 point Member
    • monipillai
    • Member since 04-25-2005, 7:38 PM
    • Posts 2

    Thanks ! That what i was looking for.

    - Moni

    [ M C P ]
  • Re: Could not load file or assembly 'Microsoft.ReportViewer.WebForms

    03-24-2008, 7:53 AM
    Answer
    Locked
    • Member
      36 point Member
    • dev_chintu
    • Member since 07-31-2006, 9:13 AM
    • Pune
    • Posts 16

     Solution :- Install  ReportViewer.exe in the hosting server,  which can be found here:
        C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\ReportViewer\ReportViewer.exe

  • Re: Could not load file or assembly 'Microsoft.ReportViewer.WebForms

    06-26-2008, 5:56 PM
    Locked
    • Member
      4 point Member
    • tusharm_99
    • Member since 05-02-2007, 3:07 PM
    • Posts 3

    Thanx Chintu...you resolved my purpose..

Page 1 of 1 (8 items)