getting "invalid quoted string" while updating calendar event - c#

I am using Google calendar API with my ASP.NET application, and it was working fine till morning but suddenly I was getting lots of exception from Google calender
“The specified value is not a valid quoted string”
I am not sure if Google has changed any service from their end. Please help in this regards, it is really creating problem on server. Currently I am using the Google calendar V3 having DLL version as 1.6.0.67 and I want to update my code for their new DLL and not getting proper documentation for this. Please hep if any both knows about the documentation.

It should work now. There was a problem in the Calendar API and how it set the etag property. I'm working on a change (https://codereview.appspot.com/96320045/) to make the library more robust and avoid throwing errors in this case.

Related

C# Google Pay for Passes transit ticket loading error

We're trying to integrate with Google Pay for Passes to add transit tickets to Google Pay, using C# and the "skinny" flow as described here:
"Skinny" JWT variation
We're also using the C# example as provided here: google-pay/passes-rest-samples
The REST calls for transit all succeed and the JWT token is generated, however when trying to add the ticket to Google Pay by using the link "https://pay.google.com/gp/v/save/{jwt_generated}" it just fails with a generic error saying "Something went wrong. Please try again later.". We've tried by just using the link directly, by adding a JS button on a website and even tried loading from a native android application, they all come back with the same error. When using JS button, the error callback returns "SERVICE_ERROR" with no further details. On google console we can see the transit class status as APPROVED.
Any details on what we might be missing would be helpful as it's not clear where the problem is originating from.
There isn't enough information to help you out here. But the best course of action is to request support with the following URL: https://support.google.com/pay/merchants/contact/instore_merchants
The team should be able to look into your specific issues.
I had same issue using passes-rest-samples.
I've missed changing SERVICE_ACCOUNT_EMAIL_ADDRESS in Config.cs, so resolved it by changing it to right service account.
this.SERVICE_ACCOUNT_EMAIL_ADDRESS = "ServiceAccountEmail#developer.gserviceaccount.com"; // CHANGEME

Is there a naming standard for REDIRECT URIS OAuth 2.0?

I just want to know if there is a naming standard on REDIRECT URIS for :
Twitter, LinkedIn, Microsoft, Facebook and Google when using OAuth 2.0?
Because, if I write my domain like that : http://domain.com/account/external-signin.aspx every external login stop working except Twitter and Facebook. The name account/external-signin.aspx is the real URL I'm working with and that I'm supposed to give to every external login.
So, Microsoft give this error:
We're unable to complete your request
Microsoft account is experiencing technical problems. Please try again later.
LinkedIn:
Invalid redirect_uri. This value must match a URL registered with the API Key.
And Google
400. That’s an error. Error: redirect_uri_mismatch
If I remove the page extension .aspx it seems to work although I deliberately write a wrong url like http://domain.com/sign-google, http://domain.com/sign-microsoft etc...
I'm working with MVC5 and C#.
I think I missed a few things ...
Thanks for your help
So finally, here is the correct answer:
It's not you that choose the redirect URL. You must write your domain.com/signin-{suppliername} in your app management.
Example:
Microsoft : https://domain.com/signin-microsoft
LinkedIn : https://domain.com/signin-linkedin
Google : https://domain.com/signin-google
Facebook and Twitter can work with your own redirect URL. Once successfully registered, the effect is immediate. Hope this can help somebody.
Karine
This error is denoting that you're having a miss match with the URL you're returning, and the return URL registered at the API Server. When you register your application, at the server, (for Google: https://code.google.com/apis/console) you have to make sure that the URLs being used would be matching.
After this, you will not get this error, I think on the server you've set this property to, http://domain.com/account/external-signin (without aspx; as you've said that this works without the extension but not with it). So try to change it on the server too.
For Linkedin append your url with "signin-linkedin".e.g. if your url is http://localhost:{portnumber}, make sure its is register in linked in as "http://localhost:{portnumber}/signin-linkedin" and this will do the trick.
Happy Codding :)

Xamarin Google Play Map Services Error 400 Bad Request

I've attempted to follow tutorials for both Xamarin (http://docs.xamarin.com/guides/android/platform_features/maps_and_location/maps/part_2_-_maps_api/), and Google Play (it is in the Google Play Services getting started page on Xamarin Studio) to get a working maps example.
Back in December, a friend of mine used my phone to develop a map app using his own laptop. However when I tried compiling his code on my computer, I was getting the same error below. I don't have another android phone to test with, but I can't figure out why it isn't working. I imagine the error lies within my target sdk, which is 19. The API key I'm using is provided from Google and pasted it in like the tutorials say, so I don't think that's the issue. So the issue must lay within the SDK I have, or my computer. I'm just not sure how to test it or further debug it.
The error being spit out over and over again until I leave the page is this:
[AndroidHttpClient$2] executeRequestSending() director.getClass()=class org.apache.http.impl.client.DefaultRequestDirector [AndroidHttpClient$2] executeRequestSending()#finished <<<<< nafResponseWrapper=NafResponseWrapper [httpResponse=HTTP/1.1 400 Bad Request, usedCipherSuiteAndroidName=TLS_ECDHE_RSA_WITH_RC4_128_SHA] [AndroidHttpClient$2] execute() finalHttpResponse.getStatusLine()=HTTP/1.1 400 Bad Request [AndroidHttpClient$2] execute()#finished
Turns out the package name was wrong when signing up for the API key. The hidden in the flood of messages about the 400 bad request.
Silly mistakes and such. I feel silly for making this post honestly.

I'M having hard time while integrating live ID with my MVC Website

I started to search 3 days ago and I already reached a good point by authenticating the user's and getting back the login session which contains the following data :
access_token: "xxxx"
authentication_token: "xxxx"
expires: "1339934686"
expires_in: 3600
I want to get the user data and, if you have a previous knowledge, you will know that I need to Decode the authentication_token value to get a JSON object containing some properties including the UserID to get the user data.
When I try to include the JsonWebToken.cs class, which was supplied by Microsoft example, in my MVC site it couldn't
resolve some references such as :
System.Runtime.Serialization.Json;
DataContractJsonSerializer;
When i searched i found that i must add reference to
System.Runtime.Serialization.Json,
System.ServiceModel,
System.ServiceModel.Web.
When I did that no thing happened new.
Finally, I apologize for the long post, but my intent was to explain the problem and the steps I gone through.
I hope any body could give me a simple MVC example URL or help me with the token decoding by any why.
Maybe this will not cover your question fully, but here is a nice post where ASP.NET MVC app uses LiveID but doesn't use an ASP.NET Membership provider:
http://blog.smarx.com/posts/actually-i-m-a-cia-agent
1) Reference for documentation is here: Windows Live ID Web Authentication SDK
2) and Live Connect Developer Center

I have problems for consuming web service in Silverlight

my problem is as follows:
When I use my web service, it displays the following error in Silverlight:
"System.Collections.Generic.KeyNotFoundException was unhandled by user code
Message="The given key was not present in the dictionary."
I'm new to c # and Silverlight, and don't really know what to do. I can not find a solution on Google.
Thank you very much in advance.
Friends found the problem was not using the namespace "System.ServiceModel"
link where I explained some of this here link text

Categories

Resources