473,756 Members | 6,106 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

shelling from .aspx

sam
Im trying to shell a simple console application from an ASP.NET web form.
I use the vb command:
Shell(sShellPat h, AppWinStyle.Nor malFocus, 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
Nov 18 '05 #1
3 1243
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******** ******@TK2MSFTN GP10.phx.gbl...
Im trying to shell a simple console application from an ASP.NET web form.
I use the vb command:
Shell(sShellPat h, AppWinStyle.Nor malFocus, 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

Nov 18 '05 #2
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******* *******@TK2MSFT NGP10.phx.gbl.. .
Im trying to shell a simple console application from an ASP.NET web form. I use the vb command:
Shell(sShellPat h, AppWinStyle.Nor malFocus, 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

.

Nov 18 '05 #3
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*******@disc ussions.microso ft.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, 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******* *******@TK2MSFT NGP10.phx.gbl.. .
Im trying to shell a simple console application from an ASP.NET web form. I use the vb command:
Shell(sShellPat h, AppWinStyle.Nor malFocus, 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

.

Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1501
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
3
4016
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 IsPostBack=False by now!. The ASPX is opened via client side script (into an iFrame) inside a .HTM file (as ASPX postback causes problems in a modal internet explorer dialog if not in an iFrame!) Anyone know how to get around this - i need to...
1
2813
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 src="employee.aspx.cs". It looks like my bin/employee.dll file is not being used. Instead, my employee.aspx.cs file is being used.
1
1927
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 System.Diagnostics.Process = New System.Diagnostics.Process() With objShell .StartInfo.FileName = "C:\Project\MyApp\MyApp.exe" .StartInfo.Arguments = " 123" .StartInfo.WorkingDirectory = "C:\Project\MyApp\"
3
1847
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 reopen the form again by clicking the button control from the parent - the Page_Load function is not called. parent.aspx <script block> function UpdD(title) { var iParms=new Object(); iParms.DlgTitle=title+"Driver Profile"; iParms.DlgW="320px";...
10
2445
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 load as a 3rd partial class. This would be handy so i can generate standard code into one of the partial classes, while having my custom code untouched
3
1538
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 if they are online or not. code like: shell("ping bob >> ""C:\hello.txt""",windowstate.hidden, false)
24
2755
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 is Microsoft's attempt to "dumb down" web application development to help unskilled developers such as web design agencies achieve some results. For high quality applications IHttpHandlers are the way to go.
6
1314
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 for the command to be available to my program. I know from even very old VB that you can 'shell' out and run programs, one of which could be for example, cmd.exe with specific command but I don't know that you could get the actual command...
0
1229
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 weird problem: When the user presses a button, the web application starts a shell process to decompress a *.gz file with gzip.exe. All ok for now, I get some data and send formatted data to the client browser.
0
10028
Oralloy
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9868
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9836
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9707
tracyyun
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7242
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6533
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5301
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3804
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2664
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.