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. Using Desktop applications in Web Application

Using Desktop applications in Web Application

Scheduled Pinned Locked Moved ASP.NET
tutorial
15 Posts 3 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.
  • J Offline
    J Offline
    JayaDurai
    wrote on last edited by
    #1

    Hi All, I have a scenario to use a desktop application inside a web page. i.e. I should be able to execute an EXE within the web page. For example If I want to open a word document I should be able to open within the page say a frame and can do all the operations as in word within that frame. Please let me know if its possible Thanks, Jaya

    E 1 Reply Last reply
    0
    • J JayaDurai

      Hi All, I have a scenario to use a desktop application inside a web page. i.e. I should be able to execute an EXE within the web page. For example If I want to open a word document I should be able to open within the page say a frame and can do all the operations as in word within that frame. Please let me know if its possible Thanks, Jaya

      E Offline
      E Offline
      Eduard Keilholz
      wrote on last edited by
      #2

      Erhm, ppfff.... this is interesting... What exactly do you want to accomplish?? First, if you want a website visitor to open a word document, you can do so bu linking to the word document. MS Word starts on the visitor's computer and opens the word document. Second, you can choose to start word as a process on your webserver, but you need to have enough permissions to do so. Although it's nice the possibility is there (for merging / parsing documents server side) in this case there's no sence doing that, because the process running on the server is not available for your website visitor. Word will start and then... do nothing ;-) I hope that helps you out, is not, tell us what you exactly want because your question is too abstract to give you a satisfiying answer...

      .: I love it when a plan comes together :. http://www.zonderpunt.nl

      J 1 Reply Last reply
      0
      • E Eduard Keilholz

        Erhm, ppfff.... this is interesting... What exactly do you want to accomplish?? First, if you want a website visitor to open a word document, you can do so bu linking to the word document. MS Word starts on the visitor's computer and opens the word document. Second, you can choose to start word as a process on your webserver, but you need to have enough permissions to do so. Although it's nice the possibility is there (for merging / parsing documents server side) in this case there's no sence doing that, because the process running on the server is not available for your website visitor. Word will start and then... do nothing ;-) I hope that helps you out, is not, tell us what you exactly want because your question is too abstract to give you a satisfiying answer...

        .: I love it when a plan comes together :. http://www.zonderpunt.nl

        J Offline
        J Offline
        JayaDurai
        wrote on last edited by
        #3

        Hi, Thanks for your reply. Exactly what I want is .... I have to give a web page that will allow the user to write code (in any language) and can be able to compile it and run the code. Simply... I have to integrate an IDE within a web page. That IDE should open within the IE frame Is this possible. Reply ASAp Thanks Alot, Jaya

        E 1 Reply Last reply
        0
        • J JayaDurai

          Hi, Thanks for your reply. Exactly what I want is .... I have to give a web page that will allow the user to write code (in any language) and can be able to compile it and run the code. Simply... I have to integrate an IDE within a web page. That IDE should open within the IE frame Is this possible. Reply ASAp Thanks Alot, Jaya

          E Offline
          E Offline
          Eduard Keilholz
          wrote on last edited by
          #4

          I think you should change your message type to Joke/Game... In fact you want to create a not-yet-existing development environment on your website. How will you ever determine which programming language was used (and thus which compiler to use if required)? If you want to support 'any' programming language, you need to integrate all existing languages in one single environment which looks like a impossible to me. I think it's possible though to let a user for example choose a language (C# for example) and try to compile that, but supporting multiple languages will be a hell of a job. Good luck!

          .: I love it when a plan comes together :. http://www.zonderpunt.nl

          J 1 Reply Last reply
          0
          • E Eduard Keilholz

            I think you should change your message type to Joke/Game... In fact you want to create a not-yet-existing development environment on your website. How will you ever determine which programming language was used (and thus which compiler to use if required)? If you want to support 'any' programming language, you need to integrate all existing languages in one single environment which looks like a impossible to me. I think it's possible though to let a user for example choose a language (C# for example) and try to compile that, but supporting multiple languages will be a hell of a job. Good luck!

            .: I love it when a plan comes together :. http://www.zonderpunt.nl

            J Offline
            J Offline
            JayaDurai
            wrote on last edited by
            #5

            hi, I am agreeing with your answer... but it is possible to have a combo box or radio buttons to allow the user to choose the language first and then we can call the type of IDE accordingly. this is not a pblm for me. Let us assume only .net languages are possible...will u agree that calling the dot net IDE will compile and run the code? ok. let me know if this is possible... integrate an open source IDE within the web page frame.... hope i cleared u my situation.. thanks, Jaya

            E 1 Reply Last reply
            0
            • J JayaDurai

              hi, I am agreeing with your answer... but it is possible to have a combo box or radio buttons to allow the user to choose the language first and then we can call the type of IDE accordingly. this is not a pblm for me. Let us assume only .net languages are possible...will u agree that calling the dot net IDE will compile and run the code? ok. let me know if this is possible... integrate an open source IDE within the web page frame.... hope i cleared u my situation.. thanks, Jaya

              E Offline
              E Offline
              Eduard Keilholz
              wrote on last edited by
              #6

              I don't think there's need to call the .NET developement environment, you only need to run the compiler behind the .NET env.

              .: I love it when a plan comes together :. http://www.zonderpunt.nl

              J 1 Reply Last reply
              0
              • E Eduard Keilholz

                I don't think there's need to call the .NET developement environment, you only need to run the compiler behind the .NET env.

                .: I love it when a plan comes together :. http://www.zonderpunt.nl

                J Offline
                J Offline
                JayaDurai
                wrote on last edited by
                #7

                Hi, Yes I tried compiling C# code. I can be able to compile a console application within the asp.net web page. but if I run the EXE file using Process.Start() the exe is opening but it is not visible for me. while i check with the task manager it is opened by the ASPNET user not the owner of the machine. how can I solve this problem Thanks, Jaya

                E P 2 Replies Last reply
                0
                • J JayaDurai

                  Hi, Yes I tried compiling C# code. I can be able to compile a console application within the asp.net web page. but if I run the EXE file using Process.Start() the exe is opening but it is not visible for me. while i check with the task manager it is opened by the ASPNET user not the owner of the machine. how can I solve this problem Thanks, Jaya

                  E Offline
                  E Offline
                  Eduard Keilholz
                  wrote on last edited by
                  #8

                  This is pretty complicated to explain. Permissions in IIS can be difficult to understand. First, you must run the website impersonate, which requires you to log on to the website using a windows user account. You can also skip this, but then you must run the website using a diffrent user account which has way too many rights to run a website :~ For more detailed information about running a website using diffrent user accounts I recommend reading this article[^]

                  .: I love it when a plan comes together :. http://www.zonderpunt.nl

                  1 Reply Last reply
                  0
                  • J JayaDurai

                    Hi, Yes I tried compiling C# code. I can be able to compile a console application within the asp.net web page. but if I run the EXE file using Process.Start() the exe is opening but it is not visible for me. while i check with the task manager it is opened by the ASPNET user not the owner of the machine. how can I solve this problem Thanks, Jaya

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

                    Do you really think it's a good idea to let a user type in a program which then runs on the server? I don't think you've fully thought this through.

                    Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world." Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that." Deja View - the feeling that you've seen this post before.

                    J 1 Reply Last reply
                    0
                    • P Pete OHanlon

                      Do you really think it's a good idea to let a user type in a program which then runs on the server? I don't think you've fully thought this through.

                      Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world." Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that." Deja View - the feeling that you've seen this post before.

                      J Offline
                      J Offline
                      JayaDurai
                      wrote on last edited by
                      #10

                      Hi, This is not a problem for me. this will be limited to 10 users only. so its better to give me any suggestion to execute an EXE from the web page. I have done this through Process.Start method. EXE is running but not visible to the user. Please help me Thanks, J

                      P 1 Reply Last reply
                      0
                      • J JayaDurai

                        Hi, This is not a problem for me. this will be limited to 10 users only. so its better to give me any suggestion to execute an EXE from the web page. I have done this through Process.Start method. EXE is running but not visible to the user. Please help me Thanks, J

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

                        Why would the EXE be visible to the user. If you are compiling it up, then you are compiling it on the web server, and it will run there as well. So, they will not see it.

                        Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world." Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that." Deja View - the feeling that you've seen this post before.

                        J 1 Reply Last reply
                        0
                        • P Pete OHanlon

                          Why would the EXE be visible to the user. If you are compiling it up, then you are compiling it on the web server, and it will run there as well. So, they will not see it.

                          Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world." Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that." Deja View - the feeling that you've seen this post before.

                          J Offline
                          J Offline
                          JayaDurai
                          wrote on last edited by
                          #12

                          Hi, Try to understand my concept I have to provide a web page where the user can write a program, compile it and then run it. so while he running his program he should see the answer. I tried to provide an IDE itself into the web page - I found difficult in this. I tried to give a rich text box to write a CSharp program there - In this I can able to build the program but while executing the created exe... it is not visible to the user. Thanks, J

                          P 1 Reply Last reply
                          0
                          • J JayaDurai

                            Hi, Try to understand my concept I have to provide a web page where the user can write a program, compile it and then run it. so while he running his program he should see the answer. I tried to provide an IDE itself into the web page - I found difficult in this. I tried to give a rich text box to write a CSharp program there - In this I can able to build the program but while executing the created exe... it is not visible to the user. Thanks, J

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

                            Hi - it's not the concept that I have a problem with. I get it. Your architecture is this: Web Browser with input box. On some form of submission, the code is compiled up on the server and runs. It runs as an executable (i.e. out of process) under the ASP.NET network client account on the server. Of course it's not visible. It's an exe running on the server. What would you expect the user to see? If I am missing something clever that you have done, please feel free to correct me, and to vote me down, but I fail to see what you think the user will see.

                            Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world." Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that." Deja View - the feeling that you've seen this post before.

                            J 1 Reply Last reply
                            0
                            • P Pete OHanlon

                              Hi - it's not the concept that I have a problem with. I get it. Your architecture is this: Web Browser with input box. On some form of submission, the code is compiled up on the server and runs. It runs as an executable (i.e. out of process) under the ASP.NET network client account on the server. Of course it's not visible. It's an exe running on the server. What would you expect the user to see? If I am missing something clever that you have done, please feel free to correct me, and to vote me down, but I fail to see what you think the user will see.

                              Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world." Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that." Deja View - the feeling that you've seen this post before.

                              J Offline
                              J Offline
                              JayaDurai
                              wrote on last edited by
                              #14

                              Hi, You are comming to the appropriate point. thats the problem for me. I have to put the EXE file (which is compiled in the server) in the client machine and execute the file from there.. is this possible?

                              P 1 Reply Last reply
                              0
                              • J JayaDurai

                                Hi, You are comming to the appropriate point. thats the problem for me. I have to put the EXE file (which is compiled in the server) in the client machine and execute the file from there.. is this possible?

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

                                Good news there. You can. Here's the big hint. You can send lots of different things back to the web browser by setting the appropriate content type (application/octet-stream in this case I think).

                                Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world." Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that." Deja View - the feeling that you've seen this post before.

                                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