Bonjour
Quand j'éxécute mon Process pour lancer une application console que j'ai développé j'ai une popup avec ce message d'erreur
Application Failed to initialize properly 0xc0000142. Click on OK to terminate the application.
Je galère depuis deux jours la dessus, j'ai bouffé MSDN, j'ai fouillé partout mais en vain....Si une personne a une idée...? Merci d'avance
Code : Sélectionner tout - Visualiser dans une fenêtre à part 
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26ProcessStartInfo myStartInfo = new ProcessStartInfo(); myStartInfo.FileName = (string)Settings["ExecPhysicalPath"]; myStartInfo.UserName = "Raoul.Bittenbois"; myStartInfo.Domain = "worldCompany"; SecureString password = new SecureString(); foreach (char c in "1664".ToCharArray()) { password.AppendChar(c); } try { myStartInfo.Password = password; myStartInfo.RedirectStandardOutput = false; myStartInfo.Arguments = "source: c:\\setup.xml mode: hour"; myStartInfo.CreateNoWindow = true; myStartInfo.UseShellExecute = false; Process p = Process.Start(myStartInfo); p.WaitForExit(); SqlDataSource1.DataBind(); gridV.DataBind(); } catch (Exception ex) { string strErreur = ex.Message; }

 

 
		
		 
         
 

 
			
			


 
			 
   



 
				 Process.Start génère une erreur
 Process.Start génère une erreur
				 Répondre avec citation
  Répondre avec citation


 
   
 
 
						
 
			
Partager