Running a .Net WinForms app from network drive etc...

G

Guest

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
 
A

ajaykalra

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.
 
G

Guest

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.
 
A

ajaykalra

You need to put all the dependent modules to the mapped folder. This
will mean your devExpress dlls etc would go to the mapped folder.

------------
Ajay Kalra
(e-mail address removed)
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)
 
G

Guest

Maybe I wasn't clear in my last reply. I DID put all dll's in the mapped
drive folder. The progrm DOES run, however when I try to run a CR Report,
then I get the error's I posted in my last. So, my question then is, what is
so different about CR dll's ? Do they need to be registered somehow on the
client in a way that other DLL's do not? Have you actually tested this
yourself with Crystal? I known that when you put CR in an Install project
and install it onto a client it places files NOT in the app folder but
instead into the Program Files\Common... folders and makes some entries to
the registry.

Thanks again

JIM
 
A

Ajay Kalra

No, I have not tested it with CR(I have never used CR). I have
personally deployed my project like this(using DevExpress and other 3rd
party tools) and had no issues other than the one I mentioned.

Sorry I cant be of further help.
 

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