Click here to Skip to main content
15,351,471 members
Home / Discussions / C#
   

C#

 
Questionprocess being called by C# app Pin
rachel_m3-Oct-12 18:28
Memberrachel_m3-Oct-12 18:28 
AnswerRe: process being called by C# app Pin
Smart Arab3-Oct-12 20:54
MemberSmart Arab3-Oct-12 20:54 
QuestionFail Read Int64 value from binary file created by C++ Pin
kisetsu3-Oct-12 14:49
Memberkisetsu3-Oct-12 14:49 
QuestionThere is an error in XML document calling a PHP Webservice Pin
RalphGielkens3-Oct-12 10:54
MemberRalphGielkens3-Oct-12 10:54 
QuestionPassing object[] Elements as Parameters to Invoke() Pin
ezazazel3-Oct-12 7:04
Memberezazazel3-Oct-12 7:04 
AnswerRe: Passing object[] Elements as Parameters to Invoke() Pin
Matt T Heffron3-Oct-12 9:08
professionalMatt T Heffron3-Oct-12 9:08 
GeneralRe: Passing object[] Elements as Parameters to Invoke() Pin
ezazazel3-Oct-12 19:26
Memberezazazel3-Oct-12 19:26 
QuestionC# calling executable Pin
dcof3-Oct-12 3:57
Memberdcof3-Oct-12 3:57 
I have a C# 2010 console application that calls a web service where I am having a problem. The line of code that is commented out for the strConsoleAppLocation string field works correctly when I run the application from my workstation. However when the application is deployed the line of code that refers to strConsoleAppLocation path is changed, I get an error on the line of code, " Process1.StartInfo.Arguments = Process_Arguments;".

When the application is deployed, I make certain the executable is located in the directory path: \\server1\\DEV\\Ftest\\Esample.exe.

Here is the code I am referring to;
protected void add_to  Web_service()
   {  
  
  String  strConsoleAppLocation = "\\server1\\DEV\\Ftest\\Esample.exe";
    //String strConsoleAppLocation = "C:\\Users\\me\\Documents\\Visual Studio  2010\\Projects\\bin\\Debug\\Esample.exe";";
   String strEncryptedValue =  "encrypted";
   String strWebServiceurl =  "https://test/test1/TWebService";
   Process Process1 = new  Process();
   String Process_Arguments = null;
    Process1.StartInfo.UseShellExecute = false;
    Process1.StartInfo.FileName = strConsoleAppLocation;
    Process1_Arguments = strEncryptedValue + " " + strWebServiceurl + " 798  ";
   Process1.StartInfo.Arguments = Process_Arguments;
    Process1.Start();
   
  }

Due to what I mentioned above, I have the following questions:
1. Can you tell me what to do to resolve this issue for now?
2. When this application goes to production, can you tell me and/or point me to a reference to display the preferred method
of how the Esample.exe executable should be called?
AnswerRe: C# calling executable Pin
Pete O'Hanlon3-Oct-12 4:16
mvaPete O'Hanlon3-Oct-12 4:16 
AnswerRe: C# calling executable Pin
Shameel3-Oct-12 4:51
professionalShameel3-Oct-12 4:51 
AnswerRe: C# calling executable Pin
Dave Kreskowiak3-Oct-12 5:35
mveDave Kreskowiak3-Oct-12 5:35 
GeneralRe: C# calling executable Pin
dcof3-Oct-12 8:07
Memberdcof3-Oct-12 8:07 
GeneralRe: C# calling executable Pin
Pete O'Hanlon3-Oct-12 8:38
mvaPete O'Hanlon3-Oct-12 8:38 
GeneralRe: C# calling executable Pin
Dave Kreskowiak3-Oct-12 13:45
mveDave Kreskowiak3-Oct-12 13:45 
QuestionC# Windows application not responding after 30 minutes Pin
sujithkumarsl2-Oct-12 10:13
Membersujithkumarsl2-Oct-12 10:13 
AnswerRe: C# Windows application not responding after 30 minutes Pin
Smart Arab2-Oct-12 10:58
MemberSmart Arab2-Oct-12 10:58 
AnswerRe: C# Windows application not responding after 30 minutes Pin
Dave Kreskowiak2-Oct-12 12:35
mveDave Kreskowiak2-Oct-12 12:35 
GeneralOT Pin
Peter_in_27802-Oct-12 22:08
professionalPeter_in_27802-Oct-12 22:08 
GeneralRe: OT Pin
Dave Kreskowiak3-Oct-12 2:22
mveDave Kreskowiak3-Oct-12 2:22 
GeneralRe: OT Pin
Peter_in_27803-Oct-12 2:29
professionalPeter_in_27803-Oct-12 2:29 
GeneralRe: OT Pin
Dave Kreskowiak3-Oct-12 5:24
mveDave Kreskowiak3-Oct-12 5:24 
GeneralRe: C# Windows application not responding after 30 minutes Pin
sujithkumarsl3-Oct-12 4:36
Membersujithkumarsl3-Oct-12 4:36 
GeneralRe: C# Windows application not responding after 30 minutes Pin
sujithkumarsl3-Oct-12 4:51
Membersujithkumarsl3-Oct-12 4:51 
AnswerRe: C# Windows application not responding after 30 minutes Pin
DaveyM693-Oct-12 4:21
professionalDaveyM693-Oct-12 4:21 
GeneralRe: C# Windows application not responding after 30 minutes Pin
sujithkumarsl3-Oct-12 4:41
Membersujithkumarsl3-Oct-12 4:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.