Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How 2 Run exe from Network ?

How 2 Run exe from Network ?

Scheduled Pinned Locked Moved C#
csharphelpsysadmintutorialquestion
6 Posts 4 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hdv212
    wrote on last edited by
    #1

    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

    I D 2 Replies Last reply
    0
    • H hdv212

      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

      I Offline
      I Offline
      Ian Uy
      wrote on last edited by
      #2

      A possible security related problem. Try moving your executable on the desktop.

      1 Reply Last reply
      0
      • H hdv212

        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

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        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

        H 1 Reply Last reply
        0
        • D Dave Kreskowiak

          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

          H Offline
          H Offline
          hdv212
          wrote on last edited by
          #4

          i don't want to code access security, i want to run my exe file from network.

          P D 2 Replies Last reply
          0
          • H hdv212

            i don't want to code access security, i want to run my exe file from network.

            P Offline
            P Offline
            Pete OHanlon
            wrote on last edited by
            #5

            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.

            1 Reply Last reply
            0
            • H hdv212

              i don't want to code access security, i want to run my exe file from network.

              D Offline
              D Offline
              Dave Kreskowiak
              wrote on last edited by
              #6

              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

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups