HighTechTalks DotNet Forums  

Running .NET exe from a network share

Dotnet Security microsoft.public.dotnet.security


Discuss Running .NET exe from a network share in the Dotnet Security forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Frederic Forjan
 
Posts: n/a

Default Running .NET exe from a network share - 06-25-2009 , 03:47 AM






Hello all,

We have an application here which we are migrating from WIN32/C++ to .NET
This tool can be used by our client and launch from a network share :
The user install it on one server and any workstation can run the tool
by \\SERVER\Tools\Tools.exe

When dealing with .NET, it seems there is some security which forbid by
default to run a .NET exe from a network share.
What is the solution and which action must be done on workstation by our
client to be able to run this .NET exe from the server share ?

Best regards,
Frédéric

Reply With Quote
  #2  
Old   
Kerem Gümrükcü
 
Posts: n/a

Default Re: Running .NET exe from a network share - 06-25-2009 , 07:53 AM






Hi,

what you encountered is a Code Security
issue and you have to deal with the Runtime
Configuration of your System and Code. It is
called "Code Access Security". Read this for
more Information:


[.NET Framework Developer's Guide
Code Access Security]
http://msdn.microsoft.com/en-us/library/930b76w0.aspx

[.NET Framework Security
Chapter 8 - Code Access Security in Practice]
http://msdn.microsoft.com/en-us/library/aa302424.aspx

[Understanding .NET Code Access Security]
http://www.codeproject.com/KB/security/UB_CAS_NET.aspx

[Code Access Security (CAS) and Design Patterns]
http://www.codeproject.com/KB/architecture/CASDesignPatterns.aspx

[Code Access Security]
http://en.wikipedia.org/wiki/Code_Access_Security

[Configuring .NET Code Access Security]
http://www.15seconds.com/Issue/040121.htm

Good Luck!


regards

Kerem

--
--
-----------------------
Beste Grüsse / Best regards / Votre bien devoue
Kerem Gümrükcü
Latest Project: http://www.pro-it-education.de/software/deviceremover
Latest Open-Source Projects: http://entwicklung.junetz.de
-----------------------
"This reply is provided as is, without warranty express or implied."

"Frederic Forjan" <frederic.forjan (AT) newsgroup (DOT) nospam> schrieb im Newsbeitrag
news:#cInXGX9JHA.2120 (AT) TK2MSFTNGP02 (DOT) phx.gbl...
Quote:
Hello all,

We have an application here which we are migrating from WIN32/C++ to .NET
This tool can be used by our client and launch from a network share :
The user install it on one server and any workstation can run the tool by
\\SERVER\Tools\Tools.exe

When dealing with .NET, it seems there is some security which forbid by
default to run a .NET exe from a network share.
What is the solution and which action must be done on workstation by our
client to be able to run this .NET exe from the server share ?

Best regards,
Frédéric

Reply With Quote
  #3  
Old   
Frederic Forjan
 
Posts: n/a

Default Re: Running .NET exe from a network share - 06-26-2009 , 03:21 AM



Thanks for all these links, very very interesting :-)

My conclusion, is that an action MUST be done on any computer wanted to
access and run this executable from the network share.
(There is different way to achieve this action, manually or
automatically depending on our solution...)

Thanks again,
Frédéric

Kerem Gümrükcü a écrit :
Quote:
Hi,

what you encountered is a Code Security
issue and you have to deal with the Runtime
Configuration of your System and Code. It is
called "Code Access Security". Read this for
more Information:


[.NET Framework Developer's Guide
Code Access Security]
http://msdn.microsoft.com/en-us/library/930b76w0.aspx

[.NET Framework Security
Chapter 8 - Code Access Security in Practice]
http://msdn.microsoft.com/en-us/library/aa302424.aspx

[Understanding .NET Code Access Security]
http://www.codeproject.com/KB/security/UB_CAS_NET.aspx

[Code Access Security (CAS) and Design Patterns]
http://www.codeproject.com/KB/architecture/CASDesignPatterns.aspx

[Code Access Security]
http://en.wikipedia.org/wiki/Code_Access_Security

[Configuring .NET Code Access Security]
http://www.15seconds.com/Issue/040121.htm

Good Luck!


regards

Kerem

Reply With Quote
  #4  
Old   
Henning Krause [MVP - Exchange]
 
Posts: n/a

Default Re: Running .NET exe from a network share - 06-26-2009 , 08:38 AM



Hi,

this behavior has been changed with .NET 2.0 SP2. Once installed, you can
launch programs from a network share like you can from a local harddrive.

Kind regards,
Henning Krause

"Frederic Forjan" <frederic.forjan (AT) newsgroup (DOT) nospam> wrote

Quote:
Thanks for all these links, very very interesting :-)

My conclusion, is that an action MUST be done on any computer wanted to
access and run this executable from the network share.
(There is different way to achieve this action, manually or automatically
depending on our solution...)

Thanks again,
Frédéric

Kerem Gümrükcü a écrit :
Hi,

what you encountered is a Code Security
issue and you have to deal with the Runtime
Configuration of your System and Code. It is
called "Code Access Security". Read this for
more Information:


[.NET Framework Developer's Guide
Code Access Security]
http://msdn.microsoft.com/en-us/library/930b76w0.aspx

[.NET Framework Security
Chapter 8 - Code Access Security in Practice]
http://msdn.microsoft.com/en-us/library/aa302424.aspx

[Understanding .NET Code Access Security]
http://www.codeproject.com/KB/security/UB_CAS_NET.aspx

[Code Access Security (CAS) and Design Patterns]
http://www.codeproject.com/KB/architecture/CASDesignPatterns.aspx

[Code Access Security]
http://en.wikipedia.org/wiki/Code_Access_Security

[Configuring .NET Code Access Security]
http://www.15seconds.com/Issue/040121.htm

Good Luck!


regards

Kerem

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.