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. Need to open Access application from web application

Need to open Access application from web application

Scheduled Pinned Locked Moved ASP.NET
sysadmin
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.
  • S samerh

    Abhijit Jana wrote:

    Process Will Execute file on server side, so you have to give the file path of Server Only

    This is what i want and what i did. iam using

    System.Diagnostics.Process.Start(path)

    Abhijit Jana wrote:

    Did you tried to debug it? Where its taking the time ?

    while debugging it works fine, dont know where it is taking this time. issue only appears when i deploy.

    A Offline
    A Offline
    Abhijit Jana
    wrote on last edited by
    #6

    I have missed out the last part of your previous post. Please check my last reply.

    cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net

    1 Reply Last reply
    0
    • S samerh

      Hi and thanks for your reply,

      Abhijit Jana wrote:

      Process will start process only on your server, not in the client system.

      OK fine but i want to open the access application found on the path iam giving. Do u mean i need to use something else that process.start

      Abhijit Jana wrote:

      What does not work? What error are you getting ? Is there is access permission error ?

      It gives no error it only shows me busy cursor i waited it for more than 2 minutes then stopped it. i gave the folder containing the access file full control for everyone, aspnet user and networkservices. The above happened when i put the path as follows: \\192.168.1.167\Bank\App.mdb i have changed it to c:\Bank\App.mdb since the web and access applications are on the same server. When i did that it gave me an error "No application is associated with the specified file for this operation" when i checked the server i found that there is no access installed on it. will installing access solve the issue?

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #7

      samerh wrote:

      When i did that it gave me an error "No application is associated with the specified file for this operation" when i checked the server i found that there is no access installed on it. will installing access solve the issue?

      Ohh Sorry, I was missed this section. If you don't have the access in the deployed system you should have to install it. Please install Access on that system. BTW : Can you please explain me what will you do by opening a access file in server ?

      cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net

      S 1 Reply Last reply
      0
      • S samerh

        Hi all, i am trying to open an access application found on a server using System.Diagnostics.Process.Start(path). it works fine when i run the project from VS2008 but when i deploy it doesnt work. Any ideas

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

        The basic problem is that you are clueless. What possible reason could you have for wanting to run an Access database, on the server ?

        Christian Graus Driven to the arms of OSX by Vista. Please read this[^] if you don't like the answer I gave to your question. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.

        S 1 Reply Last reply
        0
        • A Abhijit Jana

          samerh wrote:

          When i did that it gave me an error "No application is associated with the specified file for this operation" when i checked the server i found that there is no access installed on it. will installing access solve the issue?

          Ohh Sorry, I was missed this section. If you don't have the access in the deployed system you should have to install it. Please install Access on that system. BTW : Can you please explain me what will you do by opening a access file in server ?

          cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net

          S Offline
          S Offline
          samerh
          wrote on last edited by
          #9

          After installation still giving access denied error. I have a customer who have an access application and need to open it by clicking a button from the web application.

          C A 2 Replies Last reply
          0
          • S samerh

            After installation still giving access denied error. I have a customer who have an access application and need to open it by clicking a button from the web application.

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

            So the user is copying the Access application to the server ?

            Christian Graus Driven to the arms of OSX by Vista. Please read this[^] if you don't like the answer I gave to your question. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.

            1 Reply Last reply
            0
            • S samerh

              After installation still giving access denied error. I have a customer who have an access application and need to open it by clicking a button from the web application.

              A Offline
              A Offline
              Abhijit Jana
              wrote on last edited by
              #11

              samerh wrote:

              I have a customer who have an access application and need to open it by clicking a button from the web application.

              Its means customer will open Application by clicking on the web application, but You are opening the Access Application on Server, not on the client system, then how will your customer are going to access the application.:confused:

              cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net

              C 1 Reply Last reply
              0
              • C Christian Graus

                The basic problem is that you are clueless. What possible reason could you have for wanting to run an Access database, on the server ?

                Christian Graus Driven to the arms of OSX by Vista. Please read this[^] if you don't like the answer I gave to your question. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.

                S Offline
                S Offline
                samerh
                wrote on last edited by
                #12

                :) thank you guys. This is what iam trying to tell you, i dont want to open the access application on the server, i want to open it on the client machine and the user can view some reports from this access application. Using Process.Start do the job locally but when publishing the application it dont work. Hope i was clear this time and thanks again

                A C 2 Replies Last reply
                0
                • A Abhijit Jana

                  samerh wrote:

                  I have a customer who have an access application and need to open it by clicking a button from the web application.

                  Its means customer will open Application by clicking on the web application, but You are opening the Access Application on Server, not on the client system, then how will your customer are going to access the application.:confused:

                  cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net

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

                  *grin* I was trying to get him to confirm that. If he could confirm it was on the server, and still didn't work out what was going wrong, then he really doesn't deserve to be allowed to use a computer, let alone a compiler.

                  Christian Graus Driven to the arms of OSX by Vista. Please read this[^] if you don't like the answer I gave to your question. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.

                  1 Reply Last reply
                  0
                  • S samerh

                    :) thank you guys. This is what iam trying to tell you, i dont want to open the access application on the server, i want to open it on the client machine and the user can view some reports from this access application. Using Process.Start do the job locally but when publishing the application it dont work. Hope i was clear this time and thanks again

                    A Offline
                    A Offline
                    Abhijit Jana
                    wrote on last edited by
                    #14

                    samerh wrote:

                    dont want to open the access application on the server, i want to open it on the client machine and the user can view some reports from this access application.

                    That question I have asked you earlier. you can't open application on client using Process. It will run only on server. You can use ActiveX for that. But it will work only on IE.

                    cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net

                    1 Reply Last reply
                    0
                    • S samerh

                      :) thank you guys. This is what iam trying to tell you, i dont want to open the access application on the server, i want to open it on the client machine and the user can view some reports from this access application. Using Process.Start do the job locally but when publishing the application it dont work. Hope i was clear this time and thanks again

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

                      samerh wrote:

                      Using Process.Start do the job locally but when publishing the application it dont work.

                      OK, that's what we expected. You apparently know next to nothing about ASP.NET development. Buy a book and learn some basics before you steal from unsuspecting clients. The server is the ONLY place that Process.Start can operate. That's ASP.NET 101. Therefore, you can't do what you want. You CAN put a link to the database as a local file inside your webpage, and see if that launches it OK. But, you can't, you absolutely cannot, use Process.Start to start a process on the client machine.

                      Christian Graus Driven to the arms of OSX by Vista. Please read this[^] if you don't like the answer I gave to your question. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.

                      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