mon erreur :
-----------------
Line 17: string arguments=3Dparametres.Text;
Line 18: System.Diagnostics.Process proc =3D new
System.Diagnostics.Process();
Line 19: proc.StartInfo.UserName =3D
Session["usernameValue"].ToString(); <<-- ERREUR
Line 20:
Line 21: string passwordEnClair=3DSession["passwordValue"].ToString();
mon erreur : ----------------- Line 17: string arguments=parametres.Text; Line 18: System.Diagnostics.Process proc = new System.Diagnostics.Process(); Line 19: proc.StartInfo.UserName > Session["usernameValue"].ToString(); <<-- ERREUR Line 20: Line 21: string passwordEnClair=Session["passwordValue"].ToString();
aidez moi svp !
Certainement que Session["usernameValue"] doit renvoyer null...
Déboguer votre code pour voir d'où vient l'erreur...
Cordialement
-- Gilles TOURREAU
S.A.R.L. P.O.S Le spécialiste en motoculture depuis + de 30 ans ! http://www.pos.fr
Le Mon, 22 Oct 2007 15:39:50 +0200, Nicopil@mi <n.chaussard@gmail.com> a
écrit:
Salut, j'essaie de démarrer un process sous le nom d'un autre
utilisateur, le systeme me répond :
Compiler Error Message: CS0117: 'System.Diagnostics.ProcessStartInfo'
does not contain a definition for 'UserName'
Pourquoi ? Est ce que la propriété UserName du ProcessStartInfo'
n'existe vraiment pas ?
mon erreur :
-----------------
Line 17: string arguments=parametres.Text;
Line 18: System.Diagnostics.Process proc = new
System.Diagnostics.Process();
Line 19: proc.StartInfo.UserName > Session["usernameValue"].ToString(); <<-- ERREUR
Line 20:
Line 21: string passwordEnClair=Session["passwordValue"].ToString();
aidez moi svp !
Certainement que Session["usernameValue"] doit renvoyer null...
Déboguer votre code pour voir d'où vient l'erreur...
Cordialement
--
Gilles TOURREAU
gilles.tourreau@pos.fr
S.A.R.L. P.O.S
Le spécialiste en motoculture depuis + de 30 ans !
http://www.pos.fr
mon erreur : ----------------- Line 17: string arguments=parametres.Text; Line 18: System.Diagnostics.Process proc = new System.Diagnostics.Process(); Line 19: proc.StartInfo.UserName > Session["usernameValue"].ToString(); <<-- ERREUR Line 20: Line 21: string passwordEnClair=Session["passwordValue"].ToString();
aidez moi svp !
Certainement que Session["usernameValue"] doit renvoyer null...
Déboguer votre code pour voir d'où vient l'erreur...
Cordialement
-- Gilles TOURREAU
S.A.R.L. P.O.S Le spécialiste en motoculture depuis + de 30 ans ! http://www.pos.fr