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. How can I run Client Side Winform Application by using ASP.Net

How can I run Client Side Winform Application by using ASP.Net

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nettutorialquestion
10 Posts 5 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.
  • Q Offline
    Q Offline
    Qaiser Muhammad
    wrote on last edited by
    #1

    I have client side application, trusted assembly through share drive, Can anyone suggest me any code example or suggestion to run that exe by using ASP.Net.

    C W 2 Replies Last reply
    0
    • Q Qaiser Muhammad

      I have client side application, trusted assembly through share drive, Can anyone suggest me any code example or suggestion to run that exe by using ASP.Net.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      ASP.NET generates HTML, that is all. Apparently you can load the shell object and call it in jscript, but your ability to run it on the client machine will be no better than if you were running any other exe on the machine, and of course, you'd need to know the exact path. Christian Graus - Microsoft MVP - C++

      Q S 2 Replies Last reply
      0
      • C Christian Graus

        ASP.NET generates HTML, that is all. Apparently you can load the shell object and call it in jscript, but your ability to run it on the client machine will be no better than if you were running any other exe on the machine, and of course, you'd need to know the exact path. Christian Graus - Microsoft MVP - C++

        Q Offline
        Q Offline
        Qaiser Muhammad
        wrote on last edited by
        #3

        Thanks! Can you send me any usefull link to go through Shell object on JScript? Thanks again

        C 1 Reply Last reply
        0
        • C Christian Graus

          ASP.NET generates HTML, that is all. Apparently you can load the shell object and call it in jscript, but your ability to run it on the client machine will be no better than if you were running any other exe on the machine, and of course, you'd need to know the exact path. Christian Graus - Microsoft MVP - C++

          S Offline
          S Offline
          Saud AKhter
          wrote on last edited by
          #4

          hello christian i am facing same kind of problem. i need to call a VB exe file located on my server from my asp.net page. This exe will run on server. i have tried shell("path") and system.diagnosis.process.start("path"), but iam out of luck when i see task manager, exe is appearing under process tab but its not appearing in application tab. any help in this regard is highly appreciated. thanx in advance saud

          C 1 Reply Last reply
          0
          • Q Qaiser Muhammad

            I have client side application, trusted assembly through share drive, Can anyone suggest me any code example or suggestion to run that exe by using ASP.Net.

            W Offline
            W Offline
            Wyxlwiis
            wrote on last edited by
            #5

            Well if it is a form application u just have to link to it from your page it will run in SandBox mode it will have no abbility to access the clients system unless u have access to the client security settings further more the .Net runtime have to be installed on the client but if its uses ex Webservices as feeder only or like eg a calulator type of application no problem so normally you will only use this kind of applications in Intranet environment but just do like this create a button type and in eventhandler write ex Response.Redirect("WindowsApplication2.exe"); with the path to the exefile Wyx

            A C 2 Replies Last reply
            0
            • W Wyxlwiis

              Well if it is a form application u just have to link to it from your page it will run in SandBox mode it will have no abbility to access the clients system unless u have access to the client security settings further more the .Net runtime have to be installed on the client but if its uses ex Webservices as feeder only or like eg a calulator type of application no problem so normally you will only use this kind of applications in Intranet environment but just do like this create a button type and in eventhandler write ex Response.Redirect("WindowsApplication2.exe"); with the path to the exefile Wyx

              A Offline
              A Offline
              Anonymous
              wrote on last edited by
              #6

              It doesn't work Response.Redirect("WindowsApplication2.exe"). Is there any better suggestion to run exe from asp.net form or client side javascript.

              1 Reply Last reply
              0
              • W Wyxlwiis

                Well if it is a form application u just have to link to it from your page it will run in SandBox mode it will have no abbility to access the clients system unless u have access to the client security settings further more the .Net runtime have to be installed on the client but if its uses ex Webservices as feeder only or like eg a calulator type of application no problem so normally you will only use this kind of applications in Intranet environment but just do like this create a button type and in eventhandler write ex Response.Redirect("WindowsApplication2.exe"); with the path to the exefile Wyx

                C Offline
                C Offline
                Christian Graus
                wrote on last edited by
                #7

                Good lord - this surely never works ? Christian Graus - Microsoft MVP - C++

                W 1 Reply Last reply
                0
                • Q Qaiser Muhammad

                  Thanks! Can you send me any usefull link to go through Shell object on JScript? Thanks again

                  C Offline
                  C Offline
                  Christian Graus
                  wrote on last edited by
                  #8

                  No, I saw it on one of these forums and noted that it was an ugly hack that I would never use. It's just a design fault that you expect to run an app on the client side. I have no idea how it's done beyond seeing the post here on CP. Christian Graus - Microsoft MVP - C++

                  1 Reply Last reply
                  0
                  • S Saud AKhter

                    hello christian i am facing same kind of problem. i need to call a VB exe file located on my server from my asp.net page. This exe will run on server. i have tried shell("path") and system.diagnosis.process.start("path"), but iam out of luck when i see task manager, exe is appearing under process tab but its not appearing in application tab. any help in this regard is highly appreciated. thanx in advance saud

                    C Offline
                    C Offline
                    Christian Graus
                    wrote on last edited by
                    #9

                    ssaud wrote: i am facing same kind of problem. i need to call a VB exe file located on my server from my asp.net page. This exe will run on server. i have tried shell("path") and system.diagnosis.process.start("path"), but iam out of luck If you want to run an exe on the server, then Process.Start should be what you need, or pinvoke shellexecute. How does Process.Start not do what you want ? Perhaps the problem is that it's being started as the asp_net user, and it does not have the permissions needed ? Is the exe inside your applications web path ? If not, I doubt you'd be allowed to run it due to file permissions. Christian Graus - Microsoft MVP - C++

                    1 Reply Last reply
                    0
                    • C Christian Graus

                      Good lord - this surely never works ? Christian Graus - Microsoft MVP - C++

                      W Offline
                      W Offline
                      Wyxlwiis
                      wrote on last edited by
                      #10

                      Well i dont know what you guys are doing ? are we talking about the same thing ? running an .NET application at the client through the web. or have I misinterpret the question ? If it's the first. I have been doing this many times ! If it's the latter im sorry But a simple example is place your application.exe in a folder or root of your web application make a button in the eventhandler write the response redirect with path to your exe Or simply create a link to your exe HyperLink and the application will start and run in SandBox Mode As i wrote its heavily secured and not able to access the clients system unless you change the securety zone for the specific hosting server read this to learn how to change securety zone http://west-wind.com/weblog/posts/275.aspx[^] a site that do deploy a small game it this way http://www.sellsbrothers.com/wahoo/[^]

                      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