CodeVerge.Net Beta


   Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums



Zone: > Asp.Net Forum > general_asp.net.installation_and_setup Tags:
Item Type: Date Entered: 1/8/2008 9:16:46 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 4 Views: 3726 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
5 Items, 1 Pages |< << Go >> >|
"Hawkmoth" <>
NewsGroup User
Could not load file or assembly 'Microsoft.ReportViewer.WebForms3/16/2006 2:25:54 PM

2

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

"XIII" <>
NewsGroup User
Re: Could not load file or assembly 'Microsoft.ReportViewer.WebForms3/16/2006 5:51:35 PM

1

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.


Kris van der Mast [MVP] || 101 LINQ to SQL samples
"Hawkmoth" <>
NewsGroup User
Re: Could not load file or assembly 'Microsoft.ReportViewer.WebForms3/17/2006 10:03:25 AM

1

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

    "Hawkmoth" <>
    NewsGroup User
    Re: Could not load file or assembly 'Microsoft.ReportViewer.WebForms3/20/2006 7:34:31 AM

    1

    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

    "XIII" <>
    NewsGroup User
    Re: Could not load file or assembly 'Microsoft.ReportViewer.WebForms3/20/2006 11:55:02 AM

    0

    Hi Hawkmoth,

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

    Grz, Kris.


    Kris van der Mast [MVP] || 101 LINQ to SQL samples
    5 Items, 1 Pages |< << Go >> >|



    Free Download:






       
      Privacy | Contact Us
    All Times Are GMT