Since when the
build on the user name string makes the password?! Use debugger and test
. Before calling
is should be your password, one-to-one, without any "security" :-).
You probably totally misunderstood the purpose of
. Read properly: http://msdn.microsoft.com/en-us/library/system.security.securestring.aspx
]. There is a sample with the password on this page.
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