Problem with compiling csdl


#1

I get two error when I try to compile csdl:

The code is:
var client = new DataSiftClient(“ImNotTelling”, “NietherAmI”);
var compiled = client.Pylon.Compile(filter.Csdl);
var hash = compiled.Data.hash;
3r line seems to be the problem.

Errors are:
1.) One or more types required to compile a dynamic expression cabnnot be found. Are you missing a reference. (I’m not as far as I can tell)

2.) Predefined type 'Microsoft.CSharp.RuntimeBinder.Binder is not defined or imported. (???)


#2

It looks like these may be issues with your environment, rather than issues with the client. A quick Google search reveals similar problems caused by dependency issues:

  1. http://stackoverflow.com/questions/11725514/one-or-more-types-required-to-compile-a-dynamic-expression-cannot-be-found-are
  2. http://stackoverflow.com/questions/13566887/dynamic-in-the-immediate-window-causes-microsoft-csharp-runtimebinder-binder-i

#3

That’s great. I can’t help but wonder why this happened. I’ve never had an app choke on the lack of Microsoft.CSharp before. In fact other implementations of the Pylon Compile method has never thrown that error.


#4

I’m not sure I can give you any more advice here I’m afraid. The fact that other implementations of the same method succeeded, and this last one failed suggests that there are some differences in how you’ve implemented the method this time round.
Have you managed to get the compile method to work from the examples included within the library?