How 2 Run exe from Network ?
-
hi i wrote a simple .net 2 application with csharp and i want to execute it from another client(s) on the network, but when i click on it, the microsoft error has shown me(send report,dont sent) without any useful error message. i add this code to my AssemblyInfo :
[assembly: PermissionSet(SecurityAction.RequestMinimum, Name="FullTrust")]
but so that error shown me, where does my problem and how to solve that ? thanks -
hi i wrote a simple .net 2 application with csharp and i want to execute it from another client(s) on the network, but when i click on it, the microsoft error has shown me(send report,dont sent) without any useful error message. i add this code to my AssemblyInfo :
[assembly: PermissionSet(SecurityAction.RequestMinimum, Name="FullTrust")]
but so that error shown me, where does my problem and how to solve that ? thanks -
hi i wrote a simple .net 2 application with csharp and i want to execute it from another client(s) on the network, but when i click on it, the microsoft error has shown me(send report,dont sent) without any useful error message. i add this code to my AssemblyInfo :
[assembly: PermissionSet(SecurityAction.RequestMinimum, Name="FullTrust")]
but so that error shown me, where does my problem and how to solve that ? thanksAny managed code running from an untrusted source (i.e.: any network share) runs in a restricted sandbox. Go to MSDN and search for "Code Access Security". You've got a bunch of reading to do...
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007 -
Any managed code running from an untrusted source (i.e.: any network share) runs in a restricted sandbox. Go to MSDN and search for "Code Access Security". You've got a bunch of reading to do...
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007 -
You might want to take a look at what has been suggested - it's been pointed out to you for a reason, i.e. you really need to learn how to do this if you want to break out of the Sandbox. Dave IS a MVP for a reason you know.
Deja View - the feeling that you've seen this post before.
-
hdv212 wrote:
i don't want to code access security
Well, understanding CAS is a requirement when dealing with managed code, especially in running from untrusted sources. It's not an option. The only reason why all your code to this point works is because of the default security setup under the .NET Framework. Now that you've ventured outside the defaults, you've having problems. You're either going to read up on CAS, or you're going to be stuck writing simple Windows Forms app that have to be run from a local drive. In order to "run my exe file from network", you must understand CAS. This is not optional.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007