Since when the
SecureString
build on the user name string makes the password?! Use debugger and test
ss
. Before calling
p.Start
is should be your password, one-to-one, without any "security" :-).
You probably totally misunderstood the purpose of
SecureString
. Read properly:
http://msdn.microsoft.com/en-us/library/system.security.securestring.aspx[
^]. There is a sample with the password on this page.
[EDIT]
I think I know the problem: this is not executable file but data file, a PDF. A user name and password are not applicable to the document. If the document is password-protected, this is different username/password, not those you pass to
Process
.
—SA