The remote server returned an error: (401) Unauthorized When Connecting from C# application

with ARAS 12,

I am Getting (401) while connecting through a c# application,

it works perfectly fine when login from browser for the same user, what is wrong,

does anybody have a idea?

Regards

Barkat Khan