Bon, voil=E0 j'ai trouv=E9 une deuxieme m=E9thode pour identifier plus ou
moins les process du serveur... mais qui ne marche pas non plus ;
voici mon code :
string arguments=3Dparametres.Text;
System.Diagnostics.Process proc =3D new System.Diagnostics.Process();
proc.StartInfo.UserName =3D Session["usernameValue"].ToString();
Pour r=E9sumer : je mets les username et mot de passe dans une variable
de session, et je veux les r=E9utiliser pour lancer mon process; Je
pense qu'en th=E9orie tout est OK, mais en pratique, il me renvoit
l'erreur suivante :
Source Error:
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 21:
Microsoft (R) Visual C# .NET Compiler version 7.10.6001.4
for Microsoft (R) .NET Framework version 1.1.4322
Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.
C:\Users\powershell\webfindprinterqueue.aspx(19,3): error CS0117:
'System.Diagnostics.ProcessStartInfo' does not contain a definition
for 'UserName'
C:\Users\powershell\webfindprinterqueue.aspx(24,19): error CS0234: The
type or namespace name 'SecureString' does not exist in the class or
namespace 'System.Security' (are you missing an assembly reference?)
C:\Users\powershell\webfindprinterqueue.aspx(27,4): error CS0246: The
type or namespace name 'ChaineSecurisee' could not be found (are you
missing a using directive or an assembly reference?)
C:\Users\powershell\webfindprinterqueue.aspx(29,3): error CS0117:
'System.Diagnostics.ProcessStartInfo' does not contain a definition
for 'Password'
Cette action est irreversible, confirmez la suppression du commentaire ?
Signaler le commentaire
Veuillez sélectionner un problème
Nudité
Violence
Harcèlement
Fraude
Vente illégale
Discours haineux
Terrorisme
Autre
Patrice
Bonjour,
Cette propriété n'existe pas en version 1.1 (ce qui est indiqué dans la documentation) : http://msdn2.microsoft.com/fr-fr/library/system.diagnostics.processstartinfo.username(VS.80).aspx
-- Patrice
"" a écrit dans le message de news:
Bon, voilà j'ai trouvé une deuxieme méthode pour identifier plus ou moins les process du serveur... mais qui ne marche pas non plus ; voici mon code :
string arguments=parametres.Text; System.Diagnostics.Process proc = new System.Diagnostics.Process(); proc.StartInfo.UserName = Session["usernameValue"].ToString();
Pour résumer : je mets les username et mot de passe dans une variable de session, et je veux les réutiliser pour lancer mon process; Je pense qu'en théorie tout est OK, mais en pratique, il me renvoit l'erreur suivante :
Source Error: 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 21:
Microsoft (R) Visual C# .NET Compiler version 7.10.6001.4 for Microsoft (R) .NET Framework version 1.1.4322 Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.
C:Userspowershellwebfindprinterqueue.aspx(19,3): error CS0117: 'System.Diagnostics.ProcessStartInfo' does not contain a definition for 'UserName' C:Userspowershellwebfindprinterqueue.aspx(24,19): error CS0234: The type or namespace name 'SecureString' does not exist in the class or namespace 'System.Security' (are you missing an assembly reference?) C:Userspowershellwebfindprinterqueue.aspx(27,4): error CS0246: The type or namespace name 'ChaineSecurisee' could not be found (are you missing a using directive or an assembly reference?) C:Userspowershellwebfindprinterqueue.aspx(29,3): error CS0117: 'System.Diagnostics.ProcessStartInfo' does not contain a definition for 'Password'
svp aidez moi !!! bye Nico
Bonjour,
Cette propriété n'existe pas en version 1.1 (ce qui est indiqué dans la
documentation) :
http://msdn2.microsoft.com/fr-fr/library/system.diagnostics.processstartinfo.username(VS.80).aspx
--
Patrice
"Nicopil@mi" <n.chaussard@gmail.com> a écrit dans le message de news:
1193059015.967210.256130@y27g2000pre.googlegroups.com...
Bon, voilà j'ai trouvé une deuxieme méthode pour identifier plus ou
moins les process du serveur... mais qui ne marche pas non plus ;
voici mon code :
string arguments=parametres.Text;
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.StartInfo.UserName = Session["usernameValue"].ToString();
Pour résumer : je mets les username et mot de passe dans une variable
de session, et je veux les réutiliser pour lancer mon process; Je
pense qu'en théorie tout est OK, mais en pratique, il me renvoit
l'erreur suivante :
Source Error:
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 21:
Microsoft (R) Visual C# .NET Compiler version 7.10.6001.4
for Microsoft (R) .NET Framework version 1.1.4322
Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.
C:Userspowershellwebfindprinterqueue.aspx(19,3): error CS0117:
'System.Diagnostics.ProcessStartInfo' does not contain a definition
for 'UserName'
C:Userspowershellwebfindprinterqueue.aspx(24,19): error CS0234: The
type or namespace name 'SecureString' does not exist in the class or
namespace 'System.Security' (are you missing an assembly reference?)
C:Userspowershellwebfindprinterqueue.aspx(27,4): error CS0246: The
type or namespace name 'ChaineSecurisee' could not be found (are you
missing a using directive or an assembly reference?)
C:Userspowershellwebfindprinterqueue.aspx(29,3): error CS0117:
'System.Diagnostics.ProcessStartInfo' does not contain a definition
for 'Password'
Cette propriété n'existe pas en version 1.1 (ce qui est indiqué dans la documentation) : http://msdn2.microsoft.com/fr-fr/library/system.diagnostics.processstartinfo.username(VS.80).aspx
-- Patrice
"" a écrit dans le message de news:
Bon, voilà j'ai trouvé une deuxieme méthode pour identifier plus ou moins les process du serveur... mais qui ne marche pas non plus ; voici mon code :
string arguments=parametres.Text; System.Diagnostics.Process proc = new System.Diagnostics.Process(); proc.StartInfo.UserName = Session["usernameValue"].ToString();
Pour résumer : je mets les username et mot de passe dans une variable de session, et je veux les réutiliser pour lancer mon process; Je pense qu'en théorie tout est OK, mais en pratique, il me renvoit l'erreur suivante :
Source Error: 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 21:
Microsoft (R) Visual C# .NET Compiler version 7.10.6001.4 for Microsoft (R) .NET Framework version 1.1.4322 Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.
C:Userspowershellwebfindprinterqueue.aspx(19,3): error CS0117: 'System.Diagnostics.ProcessStartInfo' does not contain a definition for 'UserName' C:Userspowershellwebfindprinterqueue.aspx(24,19): error CS0234: The type or namespace name 'SecureString' does not exist in the class or namespace 'System.Security' (are you missing an assembly reference?) C:Userspowershellwebfindprinterqueue.aspx(27,4): error CS0246: The type or namespace name 'ChaineSecurisee' could not be found (are you missing a using directive or an assembly reference?) C:Userspowershellwebfindprinterqueue.aspx(29,3): error CS0117: 'System.Diagnostics.ProcessStartInfo' does not contain a definition for 'Password'
svp aidez moi !!! bye Nico
Nicopil
On 22 oct, 15:45, "Patrice" <http://www.chez.com/scribe/> wrote:
Bonjour,
Cette propriété n'existe pas en version 1.1 (ce qui est indiqué dan s la documentation) :http://msdn2.microsoft.com/fr-fr/library/system.diagnosti cs.processst...
-- Patrice
"" a écrit dans le message de news:
Bon, voilà j'ai trouvé une deuxieme méthode pour identifier plus ou moins les process du serveur... mais qui ne marche pas non plus ; voici mon code :
string arguments=parametres.Text; System.Diagnostics.Process proc = new System.Diagnostics.Process(); proc.StartInfo.UserName = Session["usernameValue"].ToString();
Pour résumer : je mets les username et mot de passe dans une variable de session, et je veux les réutiliser pour lancer mon process; Je pense qu'en théorie tout est OK, mais en pratique, il me renvoit l'erreur suivante :
Source Error: 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 21:
Microsoft (R) Visual C# .NET Compiler version 7.10.6001.4 for Microsoft (R) .NET Framework version 1.1.4322 Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.
C:Userspowershellwebfindprinterqueue.aspx(19,3): error CS0117: 'System.Diagnostics.ProcessStartInfo' does not contain a definition for 'UserName' C:Userspowershellwebfindprinterqueue.aspx(24,19): error CS0234: The type or namespace name 'SecureString' does not exist in the class or namespace 'System.Security' (are you missing an assembly reference?) C:Userspowershellwebfindprinterqueue.aspx(27,4): error CS0246: The type or namespace name 'ChaineSecurisee' could not be found (are you missing a using directive or an assembly reference?) C:Userspowershellwebfindprinterqueue.aspx(29,3): error CS0117: 'System.Diagnostics.ProcessStartInfo' does not contain a definition for 'Password'
svp aidez moi !!! bye Nico
argh... ok, merci pour l'information
Nico
On 22 oct, 15:45, "Patrice" <http://www.chez.com/scribe/> wrote:
Bonjour,
Cette propriété n'existe pas en version 1.1 (ce qui est indiqué dan s la
documentation) :http://msdn2.microsoft.com/fr-fr/library/system.diagnosti cs.processst...
--
Patrice
"Nicopil@mi" <n.chauss...@gmail.com> a écrit dans le message de news:
1193059015.967210.256...@y27g2000pre.googlegroups.com...
Bon, voilà j'ai trouvé une deuxieme méthode pour identifier plus ou
moins les process du serveur... mais qui ne marche pas non plus ;
voici mon code :
string arguments=parametres.Text;
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.StartInfo.UserName = Session["usernameValue"].ToString();
Pour résumer : je mets les username et mot de passe dans une variable
de session, et je veux les réutiliser pour lancer mon process; Je
pense qu'en théorie tout est OK, mais en pratique, il me renvoit
l'erreur suivante :
Source Error:
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 21:
Microsoft (R) Visual C# .NET Compiler version 7.10.6001.4
for Microsoft (R) .NET Framework version 1.1.4322
Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.
C:Userspowershellwebfindprinterqueue.aspx(19,3): error CS0117:
'System.Diagnostics.ProcessStartInfo' does not contain a definition
for 'UserName'
C:Userspowershellwebfindprinterqueue.aspx(24,19): error CS0234: The
type or namespace name 'SecureString' does not exist in the class or
namespace 'System.Security' (are you missing an assembly reference?)
C:Userspowershellwebfindprinterqueue.aspx(27,4): error CS0246: The
type or namespace name 'ChaineSecurisee' could not be found (are you
missing a using directive or an assembly reference?)
C:Userspowershellwebfindprinterqueue.aspx(29,3): error CS0117:
'System.Diagnostics.ProcessStartInfo' does not contain a definition
for 'Password'
On 22 oct, 15:45, "Patrice" <http://www.chez.com/scribe/> wrote:
Bonjour,
Cette propriété n'existe pas en version 1.1 (ce qui est indiqué dan s la documentation) :http://msdn2.microsoft.com/fr-fr/library/system.diagnosti cs.processst...
-- Patrice
"" a écrit dans le message de news:
Bon, voilà j'ai trouvé une deuxieme méthode pour identifier plus ou moins les process du serveur... mais qui ne marche pas non plus ; voici mon code :
string arguments=parametres.Text; System.Diagnostics.Process proc = new System.Diagnostics.Process(); proc.StartInfo.UserName = Session["usernameValue"].ToString();
Pour résumer : je mets les username et mot de passe dans une variable de session, et je veux les réutiliser pour lancer mon process; Je pense qu'en théorie tout est OK, mais en pratique, il me renvoit l'erreur suivante :
Source Error: 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 21:
Microsoft (R) Visual C# .NET Compiler version 7.10.6001.4 for Microsoft (R) .NET Framework version 1.1.4322 Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.
C:Userspowershellwebfindprinterqueue.aspx(19,3): error CS0117: 'System.Diagnostics.ProcessStartInfo' does not contain a definition for 'UserName' C:Userspowershellwebfindprinterqueue.aspx(24,19): error CS0234: The type or namespace name 'SecureString' does not exist in the class or namespace 'System.Security' (are you missing an assembly reference?) C:Userspowershellwebfindprinterqueue.aspx(27,4): error CS0246: The type or namespace name 'ChaineSecurisee' could not be found (are you missing a using directive or an assembly reference?) C:Userspowershellwebfindprinterqueue.aspx(29,3): error CS0117: 'System.Diagnostics.ProcessStartInfo' does not contain a definition for 'Password'