Run app from network share

  • Thread starter Thread starter B
  • Start date Start date
B

B

Can somedoby tell me the steps, or perhaps examples, which I have to
complete to access .net application on client computer from network shared
folder on server computer??

I made a release of my appplication and it is on my D disk (D:\Test) and I
use third party control (xyz.dll) which is
in the same folder like exe file.

So, please.....

These are the steps on server:
1.
2.
....

These are the steps on client:
1.
2.
....


When I remove xzy.dll from my application, everything works fine. I can
start the application from network folder just through the shortcut
on client computer. But when I drag xzy.dll from toolbox and tried to start,
it shows me this error: "An error occurred creating the form. See
Exception.InnerException for details. The error is: Request for the
permission of type 'System.Security.Permissions.FileIOPermission, mscorlib,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed."

Please help me.
Thanks!
 
An network path belongs to the intranet security zone, not the local
computer zone.
You can either trust the network location, deploy the file to local, or
migrate the functionality into a webservice .
 
Hi!

For this, and to run applications in the security zone of network shares,
we're signing our .NET assemblies with a strong key that is shared by all
products from our company. We're then using a batch file (this can also be
done in a UI, but more cumbersome for automated installs) to tell .NET to
grant software signed with our key more access rights. I think that's a
pretty "clean" way of doing it, with not having to disable or change any
more global security settings, but just add some trust for the apps we're
developing. They key we're signing our assemblies basically works as our
signature or identity.

See more here:
- Signing an assembly in Visual Studio:
http://msdn2.microsoft.com/en-us/library/ms247123.aspx (you'll only need to
do this once per application)
- Running a .NET application on a server:
http://weblogs.sqlteam.com/jhermiz/archive/2007/08/14/60284.aspx

/ Jonas
 
Back
Top