Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / January 2005

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
James - 19 Jan 2005 17:35 GMT
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
ajaykalra@yahoo.com - 19 Jan 2005 20:25 GMT
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

> Not sure if this is the proper group for this but...
>
[quoted text clipped - 15 lines]
>
> JIM
James - 19 Jan 2005 21:28 GMT
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.



> 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
[quoted text clipped - 42 lines]
> >
> > JIM
ajaykalra@yahoo.com - 19 Jan 2005 21:47 GMT
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
ajaykalra@yahoo.com

> Ajay,
>
[quoted text clipped - 24 lines]
>
>    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)
>
[quoted text clipped - 39 lines]
>
> 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.

> > 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
[quoted text clipped - 42 lines]
> > >
> > > JIM
James - 20 Jan 2005 15:29 GMT
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

> 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.
[quoted text clipped - 181 lines]
> > > >
> > > > JIM
Ajay Kalra - 20 Jan 2005 18:17 GMT
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.

--------------
Ajay Kalra
ajaykalra@yahoo.com

> 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,
[quoted text clipped - 55 lines]
> > >
> > >    at

DevExpress.XtraNavBar.NavBarItem.RaiseLinkClickedCore(NavBarItemLink
> > > link)
> > >
[quoted text clipped - 3 lines]
> > >
> > >    at

DevExpress.XtraNavBar.ViewInfo.NavBarViewInfo.DoLinkClick(NavBarHitInfo

> > > hitInfo)
> > >
[quoted text clipped - 3 lines]
> > >
> > >    at

DevExpress.XtraNavBar.ViewInfo.NavBarViewInfo.OnMouseUp(MouseEventArgs
> > > e)
> > >
> > >    at
DevExpress.XtraNavBar.NavBarControl.OnMouseUp(MouseEventArgs
> > ev)
> > >
[quoted text clipped - 45 lines]
> > >
> > > 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.

> > > > To run a .Net app from local intranet, you will first need to
> > change
[quoted text clipped - 55 lines]
> > > > >
> > > > > JIM

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.