c# - Cannot define class or member that utilizes dynamic because the compiler required type -
i'm using facebook sdk c# library in asp.net 3.5 application. when i'm trying compile code below give me errors. know dynamic type using in 4.0 framework. anyway rewrite in order make work? have reference system.core 3.5 it's still not compiling
protected void page_load(object sender, eventargs e) { if (request.params.allkeys.contains("signed_request")) { var result = facebooksignedrequest.parse(facebookcontext.current.appsecret, request.params["signed_request"]); dynamic signedrequestvalue = result.data; this.registrationdata = signedrequestvalue.registration; } else { response.redirect("~/"); } } protected dynamic registrationdata { get; set; } error 1 cannot define class or member utilizes 'dynamic' because compiler required type 'system.runtime.compilerservices.dynamicattribute' cannot found. missing reference system.core.dll? error 2 cannot define class or member utilizes 'dynamic' because compiler required type 'system.runtime.compilerservices.dynamicattribute' cannot found. missing reference system.core.dll?
dynamic available in c# 4.0.
you have convert application 4.0 version change referenced assemblies(system.core) 4.0 version.
Comments
Post a Comment