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. .NET (Core and Framework)
  4. Run external app

Run external app

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharpvisual-studioquestion
13 Posts 6 Posters 0 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.
  • realJSOPR realJSOP

    Using .Net 2.0... I'm using System.Diagnostics, but there is not "Process" item according to intellisense. Did MS move it to another assembly?

    "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
    -----
    "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

    G Offline
    G Offline
    Giorgi Dalakishvili
    wrote on last edited by
    #2

    John Simmons / outlaw programmer wrote:

    Did MS move it to another assembly?

    No, they didn't. Either add using System.Diagnostics; to the usings and then you will have access to Process class in your source code file or just write the full name when you need to access process class System.Diagnostics.Process pr=new System.Diagnostics.Process();

    #region signature my articles #endregion

    realJSOPR 1 Reply Last reply
    0
    • G Giorgi Dalakishvili

      John Simmons / outlaw programmer wrote:

      Did MS move it to another assembly?

      No, they didn't. Either add using System.Diagnostics; to the usings and then you will have access to Process class in your source code file or just write the full name when you need to access process class System.Diagnostics.Process pr=new System.Diagnostics.Process();

      #region signature my articles #endregion

      realJSOPR Offline
      realJSOPR Offline
      realJSOP
      wrote on last edited by
      #3

      I've tried it both ways. I even went ot see if I needed to add a reference to system.diagnostics, and the assembly isn't referenceable that way. So, now what?

      "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
      -----
      "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

      L P 2 Replies Last reply
      0
      • realJSOPR realJSOP

        I've tried it both ways. I even went ot see if I needed to add a reference to system.diagnostics, and the assembly isn't referenceable that way. So, now what?

        "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
        -----
        "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

        L Offline
        L Offline
        led mike
        wrote on last edited by
        #4

        Something must be broken because it's there.

        realJSOPR 2 Replies Last reply
        0
        • L led mike

          Something must be broken because it's there.

          realJSOPR Offline
          realJSOPR Offline
          realJSOP
          wrote on last edited by
          #5

          led mike wrote:

          Something must be broken because it's there.

          Saying that a Microsoft product is broken is like looking at a flat tire and saying there's no air in it. :)

          "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
          -----
          "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

          1 Reply Last reply
          0
          • L led mike

            Something must be broken because it's there.

            realJSOPR Offline
            realJSOPR Offline
            realJSOP
            wrote on last edited by
            #6

            Could it be that I can't run an external app from a web app?

            "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
            -----
            "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

            P L 2 Replies Last reply
            0
            • realJSOPR realJSOP

              Could it be that I can't run an external app from a web app?

              "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
              -----
              "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

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

              You can, but it will run on the server and that's probably not what you're trying to achieve.

              Deja View - the feeling that you've seen this post before.

              1 Reply Last reply
              0
              • realJSOPR realJSOP

                I've tried it both ways. I even went ot see if I needed to add a reference to system.diagnostics, and the assembly isn't referenceable that way. So, now what?

                "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
                -----
                "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

                P Offline
                P Offline
                pbraun
                wrote on last edited by
                #8

                Intellisense doesn't always work as expected. Try the following: 1. Recompile your code (this may work, but most likely not). 2. Close the tab (file) and reopen it. This should cause intellisense to look at the file again. 3. Restart the IDE. Beyound those three, you will have to delete all intermediate files including *.suo files. Then it should work again. The problem that I see here is that intellisense is not working as expected.

                Phil

                1 Reply Last reply
                0
                • realJSOPR realJSOP

                  Could it be that I can't run an external app from a web app?

                  "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
                  -----
                  "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

                  L Offline
                  L Offline
                  led mike
                  wrote on last edited by
                  #9

                  John Simmons / outlaw programmer wrote:

                  Could it be that I can't run an external app from a web app?

                  Well if it is running you better come get it because it just ran past my window ;P

                  1 Reply Last reply
                  0
                  • realJSOPR realJSOP

                    Using .Net 2.0... I'm using System.Diagnostics, but there is not "Process" item according to intellisense. Did MS move it to another assembly?

                    "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
                    -----
                    "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

                    realJSOPR Offline
                    realJSOPR Offline
                    realJSOP
                    wrote on last edited by
                    #10

                    This whole thing started out as a conversion from PHP to C#. I started out by adding a new class to an existing web site project at home (because it seemed to be the right thing to do). I then emailed it to myself at work, and added the class to a winforms app. Well, it still had all the using web*.* lines in it, so I got to thinkin... I created a new web site and added this class to the site, and bingo! Intellisense is showing me what I want/expect.

                    "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
                    -----
                    "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

                    R 1 Reply Last reply
                    0
                    • realJSOPR realJSOP

                      This whole thing started out as a conversion from PHP to C#. I started out by adding a new class to an existing web site project at home (because it seemed to be the right thing to do). I then emailed it to myself at work, and added the class to a winforms app. Well, it still had all the using web*.* lines in it, so I got to thinkin... I created a new web site and added this class to the site, and bingo! Intellisense is showing me what I want/expect.

                      "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
                      -----
                      "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

                      R Offline
                      R Offline
                      Robert Rohde
                      wrote on last edited by
                      #11

                      I bet you didn't have a reference to System.dll in your older projects while your new projetcs automatically got it. Robert

                      realJSOPR 1 Reply Last reply
                      0
                      • R Robert Rohde

                        I bet you didn't have a reference to System.dll in your older projects while your new projetcs automatically got it. Robert

                        realJSOPR Offline
                        realJSOPR Offline
                        realJSOP
                        wrote on last edited by
                        #12

                        Well, you're wrong. All classes created in VS2005 with the templates automatically have using System; in the cs file.

                        "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
                        -----
                        "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

                        R 1 Reply Last reply
                        0
                        • realJSOPR realJSOP

                          Well, you're wrong. All classes created in VS2005 with the templates automatically have using System; in the cs file.

                          "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
                          -----
                          "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

                          R Offline
                          R Offline
                          Robert Rohde
                          wrote on last edited by
                          #13

                          I didn't mean the using System. What I mean is the reference to the System.dll of your project. It might have not been added in the conversion. Removing it from the references of a newly created project reproduces your described behaviour: The System.Diagnostics namespace is there... but no Process class. Robert

                          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