You need to sign in to do that
Don't have an account?
Sneha Kavinkar
Authentication failure - API access through .NET
Hello,
I am trying to access API through .NET by following the steps mentioned in following link https://github.com/developerforce/Force.com-Toolkit-for-NET/blob/master/samples/SimpleConsole/Program.cs . For some reason i get error stating "One or more errors occurred,authentication failure"
I have double checked my credentials to ensure they are proper.
Can anyone tell me what can be possible reson for this error or if there's any other way to access API using .NET
I am trying to access API through .NET by following the steps mentioned in following link https://github.com/developerforce/Force.com-Toolkit-for-NET/blob/master/samples/SimpleConsole/Program.cs . For some reason i get error stating "One or more errors occurred,authentication failure"
I have double checked my credentials to ensure they are proper.
Can anyone tell me what can be possible reson for this error or if there's any other way to access API using .NET
Below is the stack trace
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait()
at SalesForce.Program.Main(String[] args) in d:\Study Material\SalesForce\SalesForce\SalesForce\Program.cs:line 35
I have tried resetting the security token,still it didn't work.
Also could you please guide on how to check whether account is "single sign-on provider" enabled.
You can check if you are using delegated authentication by going to security controls -> Single Sign on Settings (it is either empty or will define some SAML provider). I suspect though that if you're using a username/password in the code then you have already logged in using that user through the website?
I have logged out from all the sessions on website.
My account has been created by thirs person and has assigned me System administrator privileges.Under permission set I can see two options.One of them is Edit enable and API enabled option is selected for it.However the other one doesn't give me edit option and the API Enabled section is also not checked for it. Do you think that will make any difference?
Finally I've found that in Setup -> Manage Connected Apps -> Click "MyAppName" -> Click "Edit Policies".
In the 'Permitted Users' field value "All users may self-authorize" should be set.