how to call a console application from web application with parameter passing over

I am able to to call a console application from the web application using c#. But it only works for a simple console application. What I am trying to do is to use the console application accessing database, it does not work

below is the code to call a console application within a web application in c#
string file = Server.MapPath(@"consoleapplication1.exe");
ProcessStartInfo info = new ProcessStartInfo(file);
info.RedirectStandardOutput = true;
info.UseShellExecute = false;
Process p = Process.Start(info);
p.Start();
Response.Write(p.StandardOutput.ReadToEnd()+"<br>");
Does anymore have this experience, please help
thank you very much
0
abigdeepshit
10/22/2004 4:32:43 AM
asp.net.free-for-all 9281 articles. 0 followers. Follow

0 Replies
594 Views

Similar Articles

[PageSpeed] 55

Reply:

Similar Artilces:

How to pass parameter from Webs application to Windows application?
I have a project that asks user switch from a web application to a windows application. When a user makes a switch, I need to pass two parameters to a window's exe file. The format will look like http://localhost/test/parameter.exe?token=112345AB&ID=1231". When user click a link or type it as URL, my parameter.exe file is able to get and process the two parameters. Does anyone has any ideas or experences to pass paramter from URL to exe application? Thanks "Object reference not set to an instance of an object" If you are creating a process to run the exe, there...

Can a .NET web based intranet application call a windows based .NET application?
   Is it possibly to have an asp.net 2.0 application call/invoke a windows desktop application written in .NET 2.0? We have a .NET 1.0 windows desktop application that was written in C#. We also have a new .NET intranet web application written in asp.net 2.0. Is it possibly to have a button on the web application that when pressed will invoke the .NET 1.0 windows application? And then if someone closes the application, it will return control back to the ASP.NET 2.0 application?    Are you referring to running a WinForms application on the server or on the client PC? ...

Call one web application forms with in another web application ..
I am having forms named A1,A2,A3,A4,A5 in my web application1. And i am having B1,B2,B3,B4 and B5 in my web application2.I am using Windows authentication for my web application1. And i am using Form Authentication for my web application2.I am planning to host these 2 applications in 2 different servers.Here i am planning to have web application1 as a stand alone application.And Web application2 should interact with web application1.I want to call my web application1 forms in my web application2.But both authentication types are different.........???How to do it....??Any ideas ??Kamran Shahi...

How i call windows application in web application without using dll of windows application
i want to call Windows application in web Application Without using dll of Windows application in ASP.net 2.0  hi!try this: ProcessStartInfo pi = new ProcessStartInfo("app.exe"); pi.CreateNoWindow = true;  Process p = Process.Start(pi); p.WaitForExit(); if (p.ExitCode != 0){//report error } orzeh  code less, think more!...

Using .net AJAX enabled application in non .net Web Application
Hi,Does anyone have similar experience in development?  I want to check if it's possible to run .net ajax object (from one standalone .net framework platform in company) with non .net application (i.e. J2EE web application)?  It is because we want to add certain feature (i.e. office communicator chat) to our exist application (oracle J2ee). Please give me some advice :) Thanks! Hi, .Net AJAX is based on .Net Framework architecture. Thus .Net Framework currently lacks support for other platforms, such as Java. Please check this link: http://www.csharphelp.com/arch...

Call a web application from a windows application
HiI have 2 seperate projects: A web application in ASP.NET and a windows application in C#.I want to be able to open the web app from the windows app. What is the most elegant way to do it? Look into the System.Net.WebRequest and System.Net.WebResponse classes. I believe that there are even samples in VS Help on doing what you want.NC... i do it once a long a go time you can use this code as an exampleSystem.Diagnostics.Process.Start("C:\\Program Files\\Internet Explorer\\IExplore.exe","www.microsoft.com");also you read a bout process class from the msdn or microsoft onlin msdnthere is ...

How to Call a Window Application from Web Application
 How to call a windows application from a web application. For Example,In orkut.com, when we click on the green button (Online), GTalk application got invoked. Can anyone please let me know how to do that? Also, i need to know the technical name of this scenario.Please refer some good articles!  Thanks in Advance!!!Srinivasan I don't remember the name of the technology doing this, but basically what you have to do, is the desktop application, during its install (with a Windows Installer or something), has to associate a protocol with itself... for example, you have stuff lik...

Calling PB application from other web application
Friends, I have a situation here. I have a powerbuilder 7.0 application with windows, datawindows and database access. NOw, the management needs this powerbuilder application to be called by another web application. I would appreciate if you could give me the possible solutions. Thanks in advance, Saravanan I responded to this in another section. Please don't cross-post. On Thu, 14 Sep 2000 12:31:28 -0700, in powersoft.public.powerbuilder.pfc Saravanan Gurusamy <sarav_g@hotmail.com> wrote: >Friends, > I have a situation here. I have a power...

Calling PB application from other web application
Friends, I have a situation here. I have a powerbuilder 7.0 application with windows, datawindows and database access. NOw, the management needs this powerbuilder application to be called by another web application. I would appreciate if you could give me the possible solutions. Thanks, Saravanan What does the application need to return? If you just want to launch the original PB application from a web page, you should look at the web deployment kit. If you need to return data to the other web app, you might look at deploying PB objects into Jaguar and then calling t...

Converting a VS 2005 Web Application to a VS .NET 2003 Web Application
Well it seems that I am going against the stream here, but one of our clients wants the web application I wrote in Visual Studio 2005 to be deployed using Visual Studio .NET 2003. What's the best way to go about this without rewriting the whole dang thing? I would probably create a new 2003 project, copy all of your aspx and other files into it, attempt a build and see what happens.  If you didn't use a lot of the new controls (like membership, personalization, masterpages etc, then you will probably be ok with just minor changes.  If you did rely on a lot of the newer c...

How to call .net web service from Java web application?
Hi all,  I have a vb .net web service.How do i call .net web service from Java web application?What all resources I need?Can you please provide a sample application where a java application is invoking methods of .net web service? Thank you Hi, First I am not familiar with java language, but web services are universal operating system and language independent. It doesn't matter where the services is or in what language is written you just invoke it  and it gives you "replay".  Probably you must reffer to java consuming web services.   Regard...

Unable to open existing Web application or create web application from Visual Studio.Net
I reinstalled MS office this morning. All of sudden, I can neither open existing web application nor create new Web application. The symptom is the same as described in thread: http://www.asp.net/Forums/ShowPost.aspx?tabindex=1&PostID=417541 or http://www.dotnetcoders.com/web/Articles/ShowArticle.aspx?article=57 Tried every suggestion. Still can't do anything. When I tried to check server extention, I got following error message: can't open file "fontpg.lck" for writing Do anyone has any suggestion? Could anyone tell me what permission should I set? I added A...

question abt console application and web application
 i am writing a web page which allow user to control the device through internet. User can control the on/off of device through internet..server side will receive this signals and pass these signals to its serial port(server side).. Since i have no idea about this ...I have just written sending signal to serial port using console application... i just wonder can i store the status that user have chosen in database and retreive later..? Could anyone suggest solutions to me how to connect the console application with the web applications? Thanks!!! Check out this blog post:How do y...

Deploying powerbuilder application as .NET web application
Hi when I deploy Client/Server PowerBuilder application as .NET Web application I get below output. Not even getting any bug messages. Checking IIS Server... Generating .NET assembly file... Deploy failed. Have deployed provided Tutorial application as Web application. It has successfully created and deployed. Any information is appreciated. If this question has to do with PB 11 WebForm deploys, you want to post it in the sybase.public.powerbuilder.net.webform section. This section is for DataWindow.Net, a different product. On 29 Jul 2008 05:32:55 -0700, Raju Gol...

Web resources about - how to call a console application from web application with parameter passing over - asp.net.free-for-all

Application - Wikipedia, the free encyclopedia
Text is available under the Creative Commons Attribution-ShareAlike License ;additional terms may apply. By using this site, you agree to the ...

Pre-Christmas job application rush hits Australian public service
Speed required for pre-Christmas job window opening for public servants. Check out who is hiring.

Second visa application 'likely' to be approved
The family of a terminally ill Pakistani student can 'hopefully come to Australia sooner rather than later' says Immigration Minister Peter Dutton. ...

Cloud application adoption increases 71 percent in 2015
The adoption of cloud applications is soaring, up by 71 percent in the last year according to the results of a new survey. The latest Cloud ...

Tashfeen Malik's visa application under scrutiny - Business Insider Deutschland
The US government has released the visa application for Tashfeen Malik, who along with her husband killed 14 people in an attack in San Bernardino, ...

MBA: Mortgage Applications Increase in Latest MBA Weekly Survey, Purchase Applications up 37% YoY
From the MBA: Refinance, Purchase Applications Both Up in Latest MBA Weekly Survey Mortgage applications increased 7.3 percent from one week ...

Lawmaker: Immigration Officials Didn’t Fully Vet Tashfeen Malik’s Visa Application
"It’s unacceptable that U.S. Citizenship and Immigration Services did not fully vet Malik’s application and instead sloppily approved her visa," ...

German-Based Spirea Promotes Decentralized PV Applications In Uruguay
... Its technical operations specialist, Laurie Lawrence, pointed out that Uruguay [&hellip German-Based Spirea Promotes Decentralized PV Applications ...

Visa application of San Bernardino shooter released
CNN Visa application of San Bernardino shooter released CNN (CNN) The visa application of one of the San Bernardino shooters was released ...

NTU research team discovers optoelectronic application for molybdenum disulfide
A research team under the National Taiwan University (NTU) has discovered an optoelectronic application for molybdenum disulfide (MoS2), a 2-dimensional ...

Resources last updated: 12/29/2015 10:42:33 AM