DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Tue, 31 Jul 2007 21:31:20 +0300,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    Tamer Ibrahim
          2    Mark Rae [MVP]
                 3    Tamer Ibrahim
                 4    Mark Rae [MVP]
                 5    Tamer Ibrahim
                 6    Mark Rae [MVP]
          7    Juan T. Llibre
                 8    Tamer Ibrahim
                 9    Juan T. Llibre
                        10    Mark Rae [MVP]
                               11    Tamer Ibrahim
                               12    Juan T. Llibre
                        13    Mark Rae [MVP]
                               14    Tamer Ibrahim
                                      15    Mark Rae [MVP]
                        16    Mark Rae [MVP]


Calling a windows application from inside the browser   
Hello,
Can I call, run, a windows application from my web application when the user 
fires a certain event ?
Thank You.
Date:Tue, 31 Jul 2007 21:31:20 +0300   Author:  

Re: Calling a windows application from inside the browser   
"Tamer Ibrahim"  wrote in message 
news:%23xUBFE60HHA.4916@TK2MSFTNGP03.phx.gbl...


> Can I call, run, a windows application from my web application when the 
> user fires a certain event ?


Not natively -  imagine if you could run format c: from behind a button... 
:-) OK, that's a bit of an extreme example, but you get the idea... :-)

You could use something like WSH (or a bespoke ActiveX control) for this, 
but you would also reduce your browser security settings... Obviously this 
would limit you to IE, so no use at all for a public website...


-- 
Mark Rae
ASP.NET MVP
http://www.markrae.net
Date:Tue, 31 Jul 2007 19:38:16 +0100   Author:  

Re: Calling a windows application from inside the browser   
re:
!> Can I call, run, a windows application from my web application when the user fires a certain event ?

Yes.



Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
======================================
"Tamer Ibrahim"  wrote in message news:%23xUBFE60HHA.4916@TK2MSFTNGP03.phx.gbl...

> Hello,
> Can I call, run, a windows application from my web application when the user fires a certain event ?
> Thank You.
> 
Date:Tue, 31 Jul 2007 14:41:39 -0400   Author:  

Re: Calling a windows application from inside the browser   
Thank you for your reply but I have no idea what WSH is.

"Mark Rae [MVP]"  wrote in message 
news:OXjWpH60HHA.5884@TK2MSFTNGP02.phx.gbl...

> "Tamer Ibrahim"  wrote in message 
> news:%23xUBFE60HHA.4916@TK2MSFTNGP03.phx.gbl...
>
>> Can I call, run, a windows application from my web application when the 
>> user fires a certain event ?
>
> Not natively -  imagine if you could run format c: from behind a button... 
> :-) OK, that's a bit of an extreme example, but you get the idea... :-)
>
> You could use something like WSH (or a bespoke ActiveX control) for this, 
> but you would also reduce your browser security settings... Obviously this 
> would limit you to IE, so no use at all for a public website...
>
>
> -- 
> Mark Rae
> ASP.NET MVP
> http://www.markrae.net 
Date:Wed, 1 Aug 2007 11:42:23 +0300   Author:  

Re: Calling a windows application from inside the browser   
How ?
"Juan T. Llibre"  wrote in message 
news:udAQzJ60HHA.5152@TK2MSFTNGP02.phx.gbl...

> re:
> !> Can I call, run, a windows application from my web application when the 
> user fires a certain event ?
>
> Yes.
>
>
>
> Juan T. Llibre, asp.net MVP
> asp.net faq : http://asp.net.do/faq/
> foros de asp.net, en espaol : http://asp.net.do/foros/
> ======================================
> "Tamer Ibrahim"  wrote in message 
> news:%23xUBFE60HHA.4916@TK2MSFTNGP03.phx.gbl...
>> Hello,
>> Can I call, run, a windows application from my web application when the 
>> user fires a certain event ?
>> Thank You.
>>
>
> 
Date:Wed, 1 Aug 2007 11:44:31 +0300   Author:  

Re: Calling a windows application from inside the browser   
"Tamer Ibrahim"  wrote in message 
news:elYfkfB1HHA.464@TK2MSFTNGP02.phx.gbl...


> Thank you for your reply but I have no idea what WSH is.


Windows Scripting Host.

However, I'd strongly advise you not to even try to do this - one of the 
main security features of all modern Internet browsers is geared 
specifically to preventing this sort of activity...


-- 
Mark Rae
ASP.NET MVP
http://www.markrae.net
Date:Wed, 1 Aug 2007 10:09:21 +0100   Author:  

Re: Calling a windows application from inside the browser   
Use System.Diagnostics.Process.Start()

The executable will run as the ASP.NET account,
so the ASP.NET account will need whichever permissions the process needs.




Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
======================================
"Tamer Ibrahim"  wrote in message news:u3JksgB1HHA.1100@TK2MSFTNGP06.phx.gbl...

> How ?
> "Juan T. Llibre"  wrote in message news:udAQzJ60HHA.5152@TK2MSFTNGP02.phx.gbl...
>> re:
>> !> Can I call, run, a windows application from my web application when the user fires a certain event ?
>>
>> Yes.
>>
>>
>>
>> Juan T. Llibre, asp.net MVP
>> asp.net faq : http://asp.net.do/faq/
>> foros de asp.net, en espaol : http://asp.net.do/foros/
>> ======================================
>> "Tamer Ibrahim"  wrote in message news:%23xUBFE60HHA.4916@TK2MSFTNGP03.phx.gbl...
>>> Hello,
>>> Can I call, run, a windows application from my web application when the user fires a certain event ?
>>> Thank You.
>>>
>>
>>
>
> 
Date:Wed, 1 Aug 2007 07:16:47 -0400   Author:  

Re: Calling a windows application from inside the browser   
It is an intranet application. Browser security issues can be arranged with 
the customer.
So, how can I accomplish the required task with Active X, WSH or any other 
way.

"Mark Rae [MVP]"  wrote in message 
news:eeLdZuB1HHA.5884@TK2MSFTNGP02.phx.gbl...

> "Tamer Ibrahim"  wrote in message 
> news:elYfkfB1HHA.464@TK2MSFTNGP02.phx.gbl...
>
>> Thank you for your reply but I have no idea what WSH is.
>
> Windows Scripting Host.
>
> However, I'd strongly advise you not to even try to do this - one of the 
> main security features of all modern Internet browsers is geared 
> specifically to preventing this sort of activity...
>
>
> -- 
> Mark Rae
> ASP.NET MVP
> http://www.markrae.net 
Date:Wed, 1 Aug 2007 14:54:20 +0300   Author:  

Re: Calling a windows application from inside the browser   
"Tamer Ibrahim"  wrote in message 
news:efnDxKD1HHA.4816@TK2MSFTNGP04.phx.gbl...


> It is an intranet application. Browser security issues can be arranged 
> with the customer.


Again, I would strongly advise you not to do this...


> So, how can I accomplish the required task with Active X, WSH or any other 
> way.


http://www.faqts.com/knowledge_base/view.phtml/aid/31646/fid/124


-- 
Mark Rae
ASP.NET MVP
http://www.markrae.net
Date:Wed, 1 Aug 2007 13:26:03 +0100   Author:  

Re: Calling a windows application from inside the browser   
"Juan T. Llibre"  wrote in message 
news:ui$%2331C1HHA.3768@TK2MSFTNGP06.phx.gbl...


> Use System.Diagnostics.Process.Start()
>
> The executable will run as the ASP.NET account,
> so the ASP.NET account will need whichever permissions the process needs.


I interpreted the OP as wanting to run a Windows app client-side...


-- 
Mark Rae
ASP.NET MVP
http://www.markrae.net
Date:Wed, 1 Aug 2007 13:26:59 +0100   Author:  

Re: Calling a windows application from inside the browser   
Yes, I want  to run a Windows app on client-side...

I have created a test web site consists of one page and here is its code :
protected void Page_Load(object sender, EventArgs e)

{

System.Diagnostics.Process p = new System.Diagnostics.Process();

p = System.Diagnostics.Process.Start("IExplore.exe");


}

It is not working and no exception appears ..!!


"Mark Rae [MVP]"  wrote in message 
news:Odgv0cD1HHA.4652@TK2MSFTNGP05.phx.gbl...

> "Juan T. Llibre"  wrote in message 
> news:ui$%2331C1HHA.3768@TK2MSFTNGP06.phx.gbl...
>
>> Use System.Diagnostics.Process.Start()
>>
>> The executable will run as the ASP.NET account,
>> so the ASP.NET account will need whichever permissions the process needs.
>
> I interpreted the OP as wanting to run a Windows app client-side...
>
>
> -- 
> Mark Rae
> ASP.NET MVP
> http://www.markrae.net 
Date:Wed, 1 Aug 2007 16:50:50 +0300   Author:  

Re: Calling a windows application from inside the browser   
"Tamer Ibrahim"  wrote in message 
news:udDB3LE1HHA.728@TK2MSFTNGP05.phx.gbl...


> Yes, I want  to run a Windows app on client-side...


That's what I thought, though you didn't specify that in your original 
post...


> It is not working and no exception appears ..!!


It won't work, because it is trying to run Internet Explorer on your 
webserver...

Can you please explain *precisely* what you're trying to do here...


-- 
Mark Rae
ASP.NET MVP
http://www.markrae.net
Date:Wed, 1 Aug 2007 15:03:56 +0100   Author:  

Re: Calling a windows application from inside the browser   
Here is what I'm trying to do. Calling this windows application, 
Archiving.exe, on the client side ....

protected void Page_Load(object sender, EventArgs e)

{

System.Diagnostics.Process p = new System.Diagnostics.Process();

p = System.Diagnostics.Process.Start(@"C:\Program Files\The Pen IT\Archiving 
System\Archiving.exe");


}



"Mark Rae [MVP]"  wrote in message 
news:%23GkFATE1HHA.4816@TK2MSFTNGP04.phx.gbl...

> "Tamer Ibrahim"  wrote in message 
> news:udDB3LE1HHA.728@TK2MSFTNGP05.phx.gbl...
>
>> Yes, I want  to run a Windows app on client-side...
>
> That's what I thought, though you didn't specify that in your original 
> post...
>
>> It is not working and no exception appears ..!!
>
> It won't work, because it is trying to run Internet Explorer on your 
> webserver...
>
> Can you please explain *precisely* what you're trying to do here...
>
>
> -- 
> Mark Rae
> ASP.NET MVP
> http://www.markrae.net 
Date:Wed, 1 Aug 2007 17:24:55 +0300   Author:  

Re: Calling a windows application from inside the browser   
"Tamer Ibrahim"  wrote in message 
news:%23HsJ6eE1HHA.600@TK2MSFTNGP05.phx.gbl...


> Here is what I'm trying to do. Calling this windows application, 
> Archiving.exe, on the client side ....

> System.Diagnostics.Process p = new System.Diagnostics.Process();


I already told you that won't work - that is server-side code, not 
client-side code.

I've already provided you with a link showing you how to do this 
client-side - here it is again:
http://www.faqts.com/knowledge_base/view.phtml/aid/31646/fid/124


-- 
Mark Rae
ASP.NET MVP
http://www.markrae.net
Date:Wed, 1 Aug 2007 15:37:01 +0100   Author:  

Re: Calling a windows application from inside the browser   
re:
!> I interpreted the OP as wanting to run a Windows app client-side...

I wish him good luck with that chore if that what he wants.

An ActiveX object would be the first thing to try but I,
like you, discourage their use given the security issues.

Users have to approve the installation of any ActiveX object
....and that is enough to cause problems.

The whole idea of the .Net Framework is *not* to do client-side processing,
except for UI actions and notifications which use Javascript, for which Ajax
is the ideal vehicle, although it will *not* run executables client-side either.




Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
======================================
"Mark Rae [MVP]"  wrote in message news:Odgv0cD1HHA.4652@TK2MSFTNGP05.phx.gbl...

> "Juan T. Llibre"  wrote in message news:ui$%2331C1HHA.3768@TK2MSFTNGP06.phx.gbl...
>
>> Use System.Diagnostics.Process.Start()
>>
>> The executable will run as the ASP.NET account,
>> so the ASP.NET account will need whichever permissions the process needs.
>
> I interpreted the OP as wanting to run a Windows app client-side...
>
>
> -- 
> Mark Rae
> ASP.NET MVP
> http://www.markrae.net 
Date:Wed, 1 Aug 2007 11:08:56 -0400   Author:  

Re: Calling a windows application from inside the browser   
"Juan T. Llibre"  wrote in message 
news:epvLm3E1HHA.4652@TK2MSFTNGP05.phx.gbl...


> re:
> !> I interpreted the OP as wanting to run a Windows app client-side...
>
> I wish him good luck with that chore if that what he wants.
>
> An ActiveX object would be the first thing to try but I,
> like you, discourage their use given the security issues.
>
> Users have to approve the installation of any ActiveX object
> ...and that is enough to cause problems.
>
> The whole idea of the .Net Framework is *not* to do client-side 
> processing,
> except for UI actions and notifications which use Javascript, for which 
> Ajax
> is the ideal vehicle, although it will *not* run executables client-side 
> either.


Indeed - I've already advised him twice not to do this...


-- 
Mark Rae
ASP.NET MVP
http://www.markrae.net
Date:Wed, 1 Aug 2007 16:18:08 +0100   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us