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. Web Development
  3. ASP.NET
  4. ASP.NET and Shell command

ASP.NET and Shell command

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netsysadminwindows-adminlinux
5 Posts 2 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.
  • R Offline
    R Offline
    Ritesh1234
    wrote on last edited by
    #1

    Hi, My ASP.NET application is hosted on Windows 2003 Standard Server with IIS6.0. My application dynamically converts the autocad files to PDF when user request it, For this i am using third party command line tool which accept input file path and output file path and i am calling this exe using [B][I]Shell()[/I][/B] method. Evetything is working fine on development machine which is windows 2000 pro. But when i run the same on server seems like thigs not working,Is it related to any security settings of IIS. (I also set the application Execute permission to Script and Executable but no luck.... :ehh: ) If you can provide any thread it would be help full. Regards, Ritesh N. Jain

    M 1 Reply Last reply
    0
    • R Ritesh1234

      Hi, My ASP.NET application is hosted on Windows 2003 Standard Server with IIS6.0. My application dynamically converts the autocad files to PDF when user request it, For this i am using third party command line tool which accept input file path and output file path and i am calling this exe using [B][I]Shell()[/I][/B] method. Evetything is working fine on development machine which is windows 2000 pro. But when i run the same on server seems like thigs not working,Is it related to any security settings of IIS. (I also set the application Execute permission to Script and Executable but no luck.... :ehh: ) If you can provide any thread it would be help full. Regards, Ritesh N. Jain

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      Hi there, How do you run the executable from the ASP.NET? You are using the Process class? You might want to check out this document[^].

      R 1 Reply Last reply
      0
      • M minhpc_bk

        Hi there, How do you run the executable from the ASP.NET? You are using the Process class? You might want to check out this document[^].

        R Offline
        R Offline
        Ritesh1234
        wrote on last edited by
        #3

        Hi, thanks for reply.I tried with both Process class as well as with Shell() but no luck, when i call the process it runnning in task manager but generate no o/p file....... :confused: Regards, Ritesh

        M 1 Reply Last reply
        0
        • R Ritesh1234

          Hi, thanks for reply.I tried with both Process class as well as with Shell() but no luck, when i call the process it runnning in task manager but generate no o/p file....... :confused: Regards, Ritesh

          M Offline
          M Offline
          minhpc_bk
          wrote on last edited by
          #4

          You might want to check the account under which the spawned process runs in the Task Manager to see if it has enough permission to do the task. Another option you can try is that you can implement a window service which is responsible for running the third application. The ASP.NET application can use the .Net Remoting to simply send a request to the service to have it run the application.

          R 1 Reply Last reply
          0
          • M minhpc_bk

            You might want to check the account under which the spawned process runs in the Task Manager to see if it has enough permission to do the task. Another option you can try is that you can implement a window service which is responsible for running the third application. The ASP.NET application can use the .Net Remoting to simply send a request to the service to have it run the application.

            R Offline
            R Offline
            Ritesh1234
            wrote on last edited by
            #5

            hi, the third party is running under local service account (same as w3w ) and i set full control for this account for exe as well as for web app, i don't have much idea about remoting but i will try to it, Thankx, Ritesh

            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