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 3 1234
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" <sa*@a.com> wrote in message
news:eq**************@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, andthe 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" <sa*@a.com> wrote in message news:eq**************@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 securitysettings 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" <an*******@discussions.microsoft.com> wrote in message
news:00****************************@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, andthe 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" <sa*@a.com> wrote in message news:eq**************@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 securitysettings and there doesn't seem to be any problem there.
Any ideas would be greatly appreciated.
Sam
. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: A |
last post by:
Does anyone have any code for shelling out a command to start up an
executable with command line arguments?
I am simply trying to start a MSDE install by calling its Setup.exe.
Thanks
|
by: Stevie_mac |
last post by:
It might be me but...
I dont seem to get a Page_Load event when a opening an ASPX in an iFrame. I
do geta Page_Load event when an item on the ASPX (inside the iFrame) is
clicked but then...
|
by: Jerry Tovar |
last post by:
I am using .Net 2003 on a XPPro running IIS.
I am unable to view any of my ASPX webforms in a browser
unless I modify the .ASPX file
and replace Codebehind="employee.aspx.cs" with...
|
by: Stephen Miller |
last post by:
On my development machine (where the group 'Everyone' has full access
to every directory), the following code successfully shells to a
console application:
Dim objShell As...
|
by: DavidS |
last post by:
Have parent.aspx from which I open Driver.aspx form via button on parent.aspx. When I first open the modal dialog, the driver.aspx Page_Load function is called. After I close the dialog, then...
|
by: ptass |
last post by:
Hi
In asp.net 2.0 an aspx files .cs file is a partial class and all works fine,
however,
I thought I’d be able to create another class file, call it a partial class
and have
that compile and...
|
by: _IS_ - |
last post by:
I have the problem that shelling in vb.net is not working for me at this
point.
I am trying to make a graphical application to netsend (multiple) PCs on
the network(notwork) and to ping to check...
|
by: John Rivers |
last post by:
ASPX which means ASPX pages, the code-behind concept, User Controls,
Web Controls etc. is very poorly designed and makes it extremely hard
to develop professional quality web applications.
ASPX...
|
by: djc |
last post by:
I'm wondering what options are available, if any, for being able to run 'any
command line command' from a .net compiled program. I would want the output
that would normally go to the command line...
|
by: MirkoGeest |
last post by:
(Webmaster: sorry, I posted this first at the General Software
Engineering category, but I think this goes here)
I'm using Visual Basic with Web Forms on .NET 2003 and I'm experiencing
a very...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |