Re: ReportViewer Not Found

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



On Dec 29, 5:26 am, Joe <delphi...@xxxxxxx> wrote:
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.
.