Re: Running a .Net WinForms app from network drive etc...
From: James (James_at_discussions.microsoft.com)
Date: 01/19/05
- Previous message: Joe: "Re: How to open cash drawer through receipt printer in c#?"
- In reply to: ajaykalra_at_yahoo.com: "Re: Running a .Net WinForms app from network drive etc..."
- Next in thread: ajaykalra_at_yahoo.com: "Re: Running a .Net WinForms app from network drive etc..."
- Reply: ajaykalra_at_yahoo.com: "Re: Running a .Net WinForms app from network drive etc..."
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 19 Jan 2005 13:28:04 -0800
Ajay,
Ok, I tested it and althoug I can now get the app to Run, I cannot get the
reports to run when I simply place all the files in the mapped folder. Are
you absolutely positive the CR dll's do not need to be registered on the
client machine? Below are the exception results I get tryingto execute a
report in this manner. Note all the Crystal dll's are placed directly in the
application mapped drive folder
thanks,
JIM
System.IO.FileNotFoundException: File or assembly name
CrystalDecisions.CrystalReports.Engine, or one of its dependencies, was not
found.
File name: "CrystalDecisions.CrystalReports.Engine"
at TESTAPP.App.MainForm.PreviewReport(Report aReport)
at TESTAPP.App.MainForm.Report_LinkClicked(Object sender,
NavBarLinkEventArgs e)
at DevExpress.XtraNavBar.NavBarItem.RaiseLinkEvent(Object linkEvent,
NavBarItemLink link)
at DevExpress.XtraNavBar.NavBarItem.RaiseLinkClicked(NavBarItemLink link)
at DevExpress.XtraNavBar.NavBarItem.RaiseLinkClickedCore(NavBarItemLink
link)
at DevExpress.XtraNavBar.NavBarControl.RaiseLinkClicked(NavBarItemLink
link)
at
DevExpress.XtraNavBar.ViewInfo.NavBarViewInfo.DoLinkClick(NavBarHitInfo
hitInfo)
at DevExpress.XtraNavBar.ViewInfo.NavBarViewInfo.DoClick(NavBarHitInfo
hitInfo)
at DevExpress.XtraNavBar.ViewInfo.NavBarViewInfo.OnMouseUp(MouseEventArgs
e)
at DevExpress.XtraNavBar.NavBarControl.OnMouseUp(MouseEventArgs ev)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at DevExpress.XtraNavBar.NavBarControl.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
=== Pre-bind state information ===
LOG: DisplayName = CrystalDecisions.CrystalReports.Engine,
Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304
(Fully-specified)
LOG: Appbase = Z:\TESTAPP\
LOG: Initial PrivatePath = NULL
Calling assembly : TESTAPP.App, Version=3.0.1844.26345, Culture=neutral,
PublicKeyToken=541ea5140cdcbd10.
===
LOG: Publisher policy file is not found.
LOG: Host configuration file not found.
LOG: Using machine configuration file from
C:\WINNT\Microsoft.NET\Framework\v1.1.4322\config\machine.config.
LOG: Post-policy reference: CrystalDecisions.CrystalReports.Engine,
Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304
LOG: Attempting download of new URL
file:///Z:/TESTAPP/CrystalDecisions.CrystalReports.Engine.DLL.
LOG: Attempting download of new URL
file:///Z:/TESTAPP/CrystalDecisions.CrystalReports.Engine/CrystalDecisions.CrystalReports.Engine.DLL.
LOG: Attempting download of new URL
file:///Z:/TESTAPP/CrystalDecisions.CrystalReports.Engine.EXE.
LOG: Attempting download of new URL
file:///Z:/TESTAPP/CrystalDecisions.CrystalReports.Engine/CrystalDecisions.CrystalReports.Engine.EXE.
"ajaykalra@yahoo.com" wrote:
> To run a .Net app from local intranet, you will first need to change
> the security level to allow it. Under Control Panel::AdminTools, select
> Microsoft .Net Framework (1.1) wizards. In the ensuing dialog, double
> click Adjust .Net Security and select make changes to this computer.
> Click Next and you will now see Local Intranet as one of the choices.
> Select it and make it Full Trust.
>
>
> Regarding your other issue for a .net app to run on a mapped folder,
> you can do that as well. You dont really need to "Install" anything.
> Just copy all the modules to the mapped drive and make sure all
> machines have "Full Trust" access to Local Intranet. Thats all you will
> need. You dont need to mess with GAC.
>
> ------------
> Ajay Kalra
> ajaykalra@yahoo.com
>
> James wrote:
> > Not sure if this is the proper group for this but...
> >
> > First, I am trying to figure out exactly what steps I must take on
> each
> > client machine to be able to Run a .Net WinForms ap from a local
> Intranet
> > mapped drive. Currently my app will only run if it is installed to a
> local
> > hard drive. Note that I am NOT interested in doing a SmartApp for
> this. I
> > only want to run this as an standard windows .net winforms app.
> >
> > Secondly, is it possible to do an Install to a shared/mapped Intranet
> folder
> > from one machine, and then to go to another machine (with .Net
> framework on
> > it) and then execute that program from the mapped drive without
> having
> > installed it on that machine? If the answer is Yes, what about if
> the app
> > uses 3rd party DLL's like CrytalDecisions reporting DLL's. Is it
> enought for
> > those DLL's to be installed in the App folder or MUST they be
> installed into
> > each client machines local GAC?
> >
> > Thanks in advance,
> >
> > JIM
>
>
- Previous message: Joe: "Re: How to open cash drawer through receipt printer in c#?"
- In reply to: ajaykalra_at_yahoo.com: "Re: Running a .Net WinForms app from network drive etc..."
- Next in thread: ajaykalra_at_yahoo.com: "Re: Running a .Net WinForms app from network drive etc..."
- Reply: ajaykalra_at_yahoo.com: "Re: Running a .Net WinForms app from network drive etc..."
- Messages sorted by: [ date ] [ thread ]