ReportViewer Not Found

J

Joe

Hi,

I developed a VB.NET Windows program that gets its data from
an MS Access database and displays information via the ReportViewer
component. This is using VS2005 with .NET 2.0.

I sent it to my customer who loaded it on his target machine
and received this error message:

"'Microsoft.ReportViewer.WinForms, Version=8.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The
system cannot find the file specified."


He tells me that the target machine also has .NET 2.0
installed.

Does anyone have any idea what might be causing this problem?

J
 
K

kimiraikkonen

Hi,

I developed a VB.NET Windows program that gets its data from
an MS Access database and displays information via the ReportViewer
component. This is using VS2005 with .NET 2.0.

I sent it to my customer who loaded it on his target machine
and received this error message:

"'Microsoft.ReportViewer.WinForms, Version=8.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The
system cannot find the file specified."

He tells me that the target machine also has .NET 2.0
installed.

Does anyone have any idea what might be causing this problem?

J

I don't have reportviewer on my VB 2005 express, (have installed later
as a add-on?) but, IMHO If you specified the path as a unique path
like "c:\whatsoever.exe", your program will look for only that path on
every machine. To avoid this, you may try setting path without drive
letter such as "whatsoever.exe" or for processes you may set if the
path refers to a external process:

Dim psInfo As New System.Diagnostics.ProcessStartInfo("yourfile.exe")
psInfo.WorkingDirectory = Application.StartupPath

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top