Monday, March 26, 2012

shelling from .aspx

Im trying to shell a simple console application from an ASP.NET web form.
I use the vb command:
Shell(sShellPath, AppWinStyle.NormalFocus, True)

It executes the line of code without any errors but nothing happens. The
console application is not executed. I had a review of my security settings
and there doesn't seem to be any problem there.

Any ideas would be greatly appreciated.

SamWhere are you trying to run this program? On the server?
You can run command line apps on the server.
However apps with real windows UI require a desktop under which to run, and
the ASPNET account does not have one.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com

"sam" <sam@.a.com> wrote in message
news:eqJEpN5tDHA.2360@.TK2MSFTNGP10.phx.gbl...
> Im trying to shell a simple console application from an ASP.NET web form.
> I use the vb command:
> Shell(sShellPath, AppWinStyle.NormalFocus, True)
> It executes the line of code without any errors but nothing happens. The
> console application is not executed. I had a review of my security
settings
> and there doesn't seem to be any problem there.
> Any ideas would be greatly appreciated.
> Sam
Hi Steve,
Yes Im trying to run this on the server, so the specified
path is local to the IIS server. The console application
does not have an interface. Everything works in
development but it doesn't work on the target deployment
server. Odd.

Thanks
Sam

>--Original Message--
>Where are you trying to run this program? On the server?
>You can run command line apps on the server.
>However apps with real windows UI require a desktop
under which to run, and
>the ASPNET account does not have one.
>--
>I hope this helps,
>Steve C. Orr, MCSD, MVP
>http://Steve.Orr.net
>Hire top-notch developers at http://www.able-
consulting.com
>
>"sam" <sam@.a.com> wrote in message
>news:eqJEpN5tDHA.2360@.TK2MSFTNGP10.phx.gbl...
>> Im trying to shell a simple console application from
an ASP.NET web form.
>> I use the vb command:
>> Shell(sShellPath, AppWinStyle.NormalFocus, True)
>>
>> It executes the line of code without any errors but
nothing happens. The
>> console application is not executed. I had a review of
my security
>settings
>> and there doesn't seem to be any problem there.
>>
>> Any ideas would be greatly appreciated.
>>
>> Sam
>>
>>
>
>.
If you're trying to access a file across the network then that requires a
user account the has permissions to it.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com

"sam" <anonymous@.discussions.microsoft.com> wrote in message
news:008501c3b7c6$3d5eb390$a001280a@.phx.gbl...
> Hi Steve,
> Yes Im trying to run this on the server, so the specified
> path is local to the IIS server. The console application
> does not have an interface. Everything works in
> development but it doesn't work on the target deployment
> server. Odd.
> Thanks
> Sam
> >--Original Message--
> >Where are you trying to run this program? On the server?
> >You can run command line apps on the server.
> >However apps with real windows UI require a desktop
> under which to run, and
> >the ASPNET account does not have one.
> >--
> >I hope this helps,
> >Steve C. Orr, MCSD, MVP
> >http://Steve.Orr.net
> >Hire top-notch developers at http://www.able-
> consulting.com
> >"sam" <sam@.a.com> wrote in message
> >news:eqJEpN5tDHA.2360@.TK2MSFTNGP10.phx.gbl...
> >> Im trying to shell a simple console application from
> an ASP.NET web form.
> >> I use the vb command:
> >> Shell(sShellPath, AppWinStyle.NormalFocus, True)
> >>
> >> It executes the line of code without any errors but
> nothing happens. The
> >> console application is not executed. I had a review of
> my security
> >settings
> >> and there doesn't seem to be any problem there.
> >>
> >> Any ideas would be greatly appreciated.
> >>
> >> Sam
> >>
> >>
> >.

0 comments:

Post a Comment