Hi ,

I have a c# window application.

I am trying to open a Test.jpg file which is on another computer shared
folder.The shared folder has full control to everyone.

However it is giving me error.

*Win32 Exception was caught.*
*Logon failure: unknown user name or bad password*



  private void CheckPath()
        {
            try
            {


                string spath = @"\\10.205.48.125\sysvol\Test.jpg";
                SecureString s = getpassword();

System.Diagnostics.Process.Start(spath,"Administrator",s,"Validation");

                this.Opacity = 0;
            }



//Used to secure password.
  protected SecureString getpassword()
        {
            SecureString secureString = new SecureString();
            string myPassword = "ongc@123";

            foreach (char c in myPassword)
                secureString.AppendChar(c);

            secureString.MakeReadOnly();
            return secureString;
        }


Please can someone help me.

Thanks
Pratiksha
(M) 9999774442

-- 
You received this message because you are subscribed to the Google
Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
Web Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
or visit the group website at http://megasolutions.net

Reply via email to