
 Rank: Guest Groups: Guest
Joined: 9/17/2007 Posts: 11,670 Points: -1,200
|
Date parsed: 10/04/2008 10:11:39 Date: Thu, 10 Apr 2008 17:11:39 -0700
When using VS2008, which .NET version your project is built against? ..NET3.5, .NET3.0 or .NET2.0?
If it is .NET3.x, does the running computer have the 3.x framework installed?
"Gudni G. Sigurdsson" <GudniGSigurdsson@discussions.microsoft.com> wrote in message news:D46C079E-A8B6-482B-9CE8-96254ACBA82F@microsoft.com... > Hi. > I have created a WinForm app with VS2008 and C#. I make a Data Source > with > anAccess database (typed datta set, MyData.xds). Then I put a > datagridview > on a form to display data from one table. This works OK from my > development > computer. Then I go to another computer on the same local net and try to > run > the same program from there. I first change the connection string in the > MyProgram.exe.config file accordingly. But now my program does not run > any > more. > For testing purposes, I have built an equivalent program with VS2005 and > there, I have no problems running it from other machines (after modifying > the > connection string). Any comments will be appreciated. > > Regards, > Gudni
|

 Rank: Guest Groups: Guest
Joined: 9/17/2007 Posts: 11,670 Points: -1,200
|
Date parsed: 11/04/2008 00:10:26 Date: Fri, 11 Apr 2008 07:10:26 -0700
Microsoft.Report.Viewer.WinForm comes with Visual Studio2005/8, is not part of .NET framework. So, it is not present in the running computer unless you install it. You an either build a setup project with VS, which includes all required depent files/components used by your app and install the package in the running computer, or you can get the report viewer component installed individually. For example, since all computer in my office would run some applications that would use the report viewer sooner or latter, so I deployed the report viewer component to all our existing computers when we stage the box.
The report viewer assemblies are in C:\Program Files\Microsoft Visual Studio 8.0[9.0]\ReportViewer
"Gudni G. Sigurdsson" <GudniGSigurdsson@discussions.microsoft.com> wrote in message news:CDA1D387-18FF-4B5E-BF98-901DD6984679@microsoft.com... > Hi again, Norman. > I installed the Microsoft .NET Framework 3.5 on the target computer and > now > my program works there. There remains one problem, though. In this > program, > I have reports from data in the database. When a report shoold be > executed, > I get a message: > Could not load file or assembly 'Microsoft.Report.Viewer.WinForms, > Version=9.0.0.0, Culture=neutral, PublicKeyToken=bo3f5f7f11d50a3a' or one > of > it's dependencies. The system cannot find the file specified. > > It seems to me that some assemblies are missing. My program has > references > to Microsoft.ReportViewer.Common and Microsoft.ReportViewer.WinForms. > Must I > deploy these assemblies together with my program? > > Regards, > Gudni > > "Norman Yuan" wrote: > >> When using VS2008, which .NET version your project is built against? >> ..NET3.5, .NET3.0 or .NET2.0? >> >> If it is .NET3.x, does the running computer have the 3.x framework >> installed? >> >> "Gudni G. Sigurdsson" <GudniGSigurdsson@discussions.microsoft.com> wrote >> in >> message news:D46C079E-A8B6-482B-9CE8-96254ACBA82F@microsoft.com... >> > Hi. >> > I have created a WinForm app with VS2008 and C#. I make a Data Source >> > with >> > anAccess database (typed datta set, MyData.xds). Then I put a >> > datagridview >> > on a form to display data from one table. This works OK from my >> > development >> > computer. Then I go to another computer on the same local net and try >> > to >> > run >> > the same program from there. I first change the connection string in >> > the >> > MyProgram.exe.config file accordingly. But now my program does not run >> > any >> > more. >> > For testing purposes, I have built an equivalent program with VS2005 >> > and >> > there, I have no problems running it from other machines (after >> > modifying >> > the >> > connection string). Any comments will be appreciated. >> > >> > Regards, >> > Gudni >> >>
|