Click here to Skip to main content
15,889,462 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
JokeRe: syntax error while updating a record Pin
Pete O'Hanlon18-Dec-13 5:07
mvePete O'Hanlon18-Dec-13 5:07 
GeneralRe: syntax error while updating a record Pin
Member 1038849418-Dec-13 21:22
Member 1038849418-Dec-13 21:22 
AnswerRe: syntax error while updating a record Pin
Chris Quinn18-Dec-13 4:18
Chris Quinn18-Dec-13 4:18 
GeneralRe: syntax error while updating a record Pin
Member 1038849418-Dec-13 4:27
Member 1038849418-Dec-13 4:27 
QuestionVS2010 project referencing my .net 4.5 dll Pin
Bruno Leclerc III13-Dec-13 19:30
Bruno Leclerc III13-Dec-13 19:30 
AnswerRe: VS2010 project referencing my .net 4.5 dll Pin
Pete O'Hanlon13-Dec-13 20:52
mvePete O'Hanlon13-Dec-13 20:52 
AnswerRe: VS2010 project referencing my .net 4.5 dll Pin
Abhinav S13-Dec-13 21:51
Abhinav S13-Dec-13 21:51 
QuestionCould not load type 'Google.Apis.Requests.IErrorResponseHandler' from assembly 'Google.Apis' Pin
zish7912-Dec-13 0:55
zish7912-Dec-13 0:55 
I am using Google Auth api Calendar in .net. i am facing the same error in every Google apis code. And i donot know know ho to remove it. please HELP
My Error is: "Could not load type 'Google.Apis.Requests.IErrorResponseHandler' from assembly 'Google.Apis, Version=1.6.0.16897, Culture=neutral, PublicKeyToken=null'"
C#
public ActionResult EmailSettings(string jsonData, string tokenAuthenticate, string clientID, string APIkey, string ClientSecret)
        {
            HttpContext.Application["EmailAdmin"] = jsonData;
            HttpContext.Application["EmailAccessOken"] = tokenAuthenticate;
            this.clientID = clientID;
            this.APIkey = APIkey;
            this.ClientSecret = ClientSecret;
            //oneTry();
            CreateService(tokenAuthenticate); //Error at this line
            //UseSavedAuthorization();
            return View();
        }
private CalendarService CreateService(string token)
    {
        //KeyValuePair<string, string> credentials = Ninject.Web.Common.Get3LOCredentials();
        var provider = new NativeApplicationClient(GoogleAuthenticationServer.Description, this.clientID, this.ClientSecret);
        //provider.ClientIdentifier = clientID;
        //provider.ClientSecret = clientSecret;
        var auth = new Google.Apis.Authentication.OAuth2.OAuth2Authenticator<NativeApplicationClient>(provider, (p) => GetAuthorization(provider, token));
        CalendarService service = new CalendarService(new BaseClientService.Initializer()
        {
            Authenticator = auth,
            ApiKey = ConfigurationManager.AppSettings[this.APIkey].ToString(),
            GZipEnabled = false
        });
        return service;
    }

    private static IAuthorizationState GetAuthorization(NativeApplicationClient arg, String Refreshtoken)
    {
        IAuthorizationState state = new AuthorizationState(new[] { CalendarService.Scopes.Calendar.GetStringValue() });
        state.Callback = new Uri(NativeApplicationClient.OutOfBandCallbackUrl);
        state.RefreshToken = Refreshtoken;
        return state;
    }


modified 12-Dec-13 10:44am.

AnswerRe: Could not load type 'Google.Apis.Requests.IErrorResponseHandler' from assembly 'Google.Apis' Pin
Pete O'Hanlon12-Dec-13 1:19
mvePete O'Hanlon12-Dec-13 1:19 
SuggestionRe: Could not load type 'Google.Apis.Requests.IErrorResponseHandler' from assembly 'Google.Apis' Pin
thatraja12-Dec-13 3:31
professionalthatraja12-Dec-13 3:31 
QuestionMessage Closed Pin
10-Dec-13 2:42
Member 1045722310-Dec-13 2:42 
AnswerRe: Crystal Reports Pin
thatraja10-Dec-13 2:52
professionalthatraja10-Dec-13 2:52 
QuestionProgramming keyboard and mouse actions Pin
wyjohnson8-Dec-13 8:39
wyjohnson8-Dec-13 8:39 
AnswerRe: Programming keyboard and mouse actions Pin
Pete O'Hanlon8-Dec-13 23:06
mvePete O'Hanlon8-Dec-13 23:06 
QuestionSigned/Unsigned Assembly Load Conflict Pin
Squiggs7-Dec-13 14:56
Squiggs7-Dec-13 14:56 
QuestionI wanna sell two my windows 8 metro applications Pin
comiscience5-Dec-13 23:08
comiscience5-Dec-13 23:08 
AnswerRe: I wanna sell two my windows 8 metro applications Pin
Richard MacCutchan6-Dec-13 0:06
mveRichard MacCutchan6-Dec-13 0:06 
GeneralRe: I wanna sell two my windows 8 metro applications Pin
comiscience6-Dec-13 0:20
comiscience6-Dec-13 0:20 
AnswerRe: I wanna sell two my windows 8 metro applications Pin
creampemutihwajah17-Dec-13 14:51
professionalcreampemutihwajah17-Dec-13 14:51 
QuestionHow to RESTful design or getting two tables in one JSON object Pin
mrhs5-Dec-13 17:06
mrhs5-Dec-13 17:06 
AnswerRe: How to RESTful design or getting two tables in one JSON object Pin
jschell6-Dec-13 12:11
jschell6-Dec-13 12:11 
GeneralRe: How to RESTful design or getting two tables in one JSON object Pin
mrhs6-Dec-13 17:14
mrhs6-Dec-13 17:14 
GeneralRe: How to RESTful design or getting two tables in one JSON object Pin
jschell7-Dec-13 10:29
jschell7-Dec-13 10:29 
GeneralRe: How to RESTful design or getting two tables in one JSON object Pin
mrhs7-Dec-13 20:36
mrhs7-Dec-13 20:36 
GeneralRe: How to RESTful design or getting two tables in one JSON object Pin
jschell9-Dec-13 15:14
jschell9-Dec-13 15:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.