Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Commented Issue: asp.net mvc facebooktemplate causes “'Newtonsoft.Json.Linq.JObject' does not contain a definition for 'user_id'” when run in a facebook app [1180]

$
0
0
Been following the tutorial for the new facebook mvc template from http://go.microsoft.com/fwlink/?LinkId=269921

However even with the basic app template I'm unable to get it to run as it just flags the following error:

Server Error in '/' Application.

'Newtonsoft.Json.Linq.JObject' does not contain a definition for 'user_id'

With the following stack trace: Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[RuntimeBinderException: 'Newtonsoft.Json.Linq.JObject' does not contain a definition for 'user_id'] CallSite.Target(Closure , CallSite , Object ) +152 System.Dynamic.UpdateDelegates.UpdateAndExecute1(CallSite site, T0 arg0) +1519 Microsoft.AspNet.Mvc.Facebook.FacebookAuthenticationModule.b__5(Object sender, EventArgs e) +1595 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +466 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +576

I am completely at a loss here as I can find no "user_id" reference in the sdk, or the default app template, no idea where it is even coming from (unless fb has updated)

Tried existing apps, new apps and even a blank app using the NuGet package, all end in the same error.
Comments: I've found that the issue occurs in my dev environment and in some .NET hosting services through the Facebook MVC template due to the dynamic keyword. When I publish to Azure however, it does indeed work, just means I cannot test / debug locally The issue is the same no matter what combination I use: * Using the VS2012 template as is * Using VS2012 mvc template and the Facebook mvc nuget package * Using Facebook mvc template and the Nuget Package * Using the Vs2013 template as is * Using VS2013 mvc template and the Facebook mvc nuget package * Using Facebook mvc template and the Nuget Package Once I implemented my workaround in my local source of the mvc template I could use it in my dev environment also. I've noted similar issues when using the dynamic keyword in Windows Phone projects. Using dynamic for the first read always seems to result in a RuntimeBinderException I've found

Viewing all articles
Browse latest Browse all 7215

Trending Articles