How to login with Google Account using C# and VB.Net in ASP.Net

Last Reply one year ago By dharmendr

Posted one year ago

hi Developers ,

i am creating a project now my client want Login the Website Using Google Account in Asp.Net .
i have trying with google but i cant got exact output . so friends anyone know how to done this task please suggest me too.

thanks with
Paul.S
"Man becomes what he thinks about"


Posted one year ago

yes you are Rightam trying Mr.Dharmendr but it gives the error like below . so please give me the soluion for that 

also my client id and secretid

GoogleConnect.ClientId = "826948671391-cmc9at570hjreq16mmtiblllomqe2erj.apps.googleusercontent.com";
GoogleConnect.ClientSecret = "HpI1CuPL0EIzeMKAGjnx1uny";

string json ==> GoogleConnect.Fetch("me", code);

erroemessage:  Compiler Error Message: CS1501: No overload for method 'Fetch' takes '2' arguments

how can i resolve this error.

Paul.S


Posted one year ago

thanks mr.Dharmendr i have trying this code , but that query gives error like below 

erorline : string json = GoogleConnect.Fetch("me", code);

error message:   Compiler Error Message: CS1501: No overload for method 'Fetch' takes '2' arguments . 

also my ClientId , ClientSecret .

GoogleConnect.ClientId = "826948671391-cmc9at570hjreq16mmtiblllomqe2erj.apps.googleusercontent.com";

GoogleConnect.ClientSecret = "HpI1CuPL0EIzeMKAGjnx1uny";

could you please give me the solution for this error . what can i do for resolve this error . 

 

Paul.S


Posted one year ago

Hi paulrajmca,

It depends on GoogleAPI dll version. I think you have downloaded the latest. Please download the sample from the downloaded link provided in the article and use the dll present inside the sample.