Bonjour.
Mon application marchait jusqu'à ce que je fasse une mise à jour de la Web Api
J'ai une application console qui marche parfaitement. Elle est compilée en exe
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14 static void Main(string[] args) { //RunCallSign("e-sign@artci.ci", "michaelyassi93@gmail.com", "C:/DISQUE DE TRAVAIL/MesApplis/LEHI/Documentation.pdf", "0"); RunCallSign(args[0], args[1], args[2], args[3], args[4]); } static void RunCallSign(string EmailExpediteur, string EmailDestinataire, string UrlDocument, string NomDocument, string ClefPrimaire) { //GET CREATOR //EmailExpediteur = "e-sign@artci.ci"; //EmailDestinataire = "e-sign@artci.ci"; //UrlDocument = "C:/DISQUE DE TRAVAIL/MesApplis/LEHI/Documentation.pdf"; //NomDocument = "MemoEssai"; //ClefPrimaire = "0"; var client = new RestClient(ARTCI_SIGN_API_URI + "/users?items.email=" + EmailExpediteur);
le code d'exécution de cet exe se présente comme suit:
Code VB.NET : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 Try Dim Exp As String = "e-sign@yopmail.com" Dim Dest As String = "e-sign@yopmail.com" Dim UrlDoc As String = "C:\Mes Documents\Document.pdf" Dim NomDoc As String = "Document de test" Dim Cp As String = "1" Dim psi As New ProcessStartInfo() psi.FileName ="C:\MonApplication\test.exe" psi.Arguments = Exp & " " & Dest & " " & UrlDoc & " " & NomDoc & " " & Cp Dim p As Process = Process.Start(psi) p.WaitForExit() p.Close() Catch ex As Exception MsgBox(ex.Message) End Try
Je veux juste comprendre pourquoi il ne s'exécute pas alors qu'avant, tout roulait bient
Partager