function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sid_devsid_dev 

Spawn a new browser and login to Salesforce using c#

Hi,

 

I am trying to open a new browser using Process.Start with the default browser path but I get Login failure using c#

 

I have converted the password to a SecureString object as required by the Start method below

 

 

using System.Diagnostics;

 

Process.Start(defaultBrowserPath, "https://na5.salesforce.com/home/home.jsp",username,password,null);

 

  

Error -> Login failure:unknown username and password

 

Can anyone help me to understand what am I doing wrong?

 

Thanks,

Sid

sid_devsid_dev

Hi,

 

Can anyone help me with the problem?

 

Thanks,

Sid