Need to open Access application from web application
-
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
samerh wrote:
i am trying to open an access application found on a server using System.Diagnostics.Process.Start(path).
So you want to open access application on you Server. Process will start process only on your server, not in the client system.
samerh wrote:
it works fine when i run the project from VS2008 but when i deploy it doesnt work. Any ideas
What does not work? What error are you getting ? Is there is access permission error ?
cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net
-
samerh wrote:
i am trying to open an access application found on a server using System.Diagnostics.Process.Start(path).
So you want to open access application on you Server. Process will start process only on your server, not in the client system.
samerh wrote:
it works fine when i run the project from VS2008 but when i deploy it doesnt work. Any ideas
What does not work? What error are you getting ? Is there is access permission error ?
cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net
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?
-
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?
samerh wrote:
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
As I already told you Process Will Execute file on server side, so you have to give the file path of Server Only.
samerh wrote:
Do u mean i need to use something else that process.start
Can you please put the code block ?
samerh wrote:
It gives no error it only shows me busy cursor i waited it for more than 2 minutes then stopped it.
Did you tried to debug it? Where its taking the time ?
cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net
-
samerh wrote:
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
As I already told you Process Will Execute file on server side, so you have to give the file path of Server Only.
samerh wrote:
Do u mean i need to use something else that process.start
Can you please put the code block ?
samerh wrote:
It gives no error it only shows me busy cursor i waited it for more than 2 minutes then stopped it.
Did you tried to debug it? Where its taking the time ?
cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net
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.
-
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.
I have missed out the last part of your previous post. Please check my last reply.
cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net
-
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?
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
-
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
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.
-
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
-
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.
-
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.
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
-
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.
:) 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
-
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
*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.
-
:) 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
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
-
:) 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
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.