'TProtocol' does not contain a definition for 'IncrementRecursionDepth'

Viewed 1342

I've installed thrift for both my library and server; using NuGet.

I have a very simple thrift file that I've compiled it using the following command:

thrift.exe -r --gen csharp node.thrift

the node.thrift has three lines:

service Server {
    string ping()
}

I get the errors from the Server.cs generated by the thrift compiler.

'TProtocol' does not contain a definition for 'IncrementRecursionDepth'

sample line throwing the error:

public void Read (TProtocol iprot)
    {
      iprot.IncrementRecursionDepth(); //this line has the error

I've googled for it, but didn't find any results.

update: If I delete the lines throwing the error, the library compiles and the server works as expected, I don't know if I'll face errors in the future or not, whats up with the recursion?!

important point: I compile the thrift file using the executable I've downloaded from http://www.apache.org/dyn/closer.cgi?path=/thrift/0.9.3/thrift-0.9.3.exe. the version is 0.9.3 but the thrift library installed by NuGet is 0.9.1.3

2 Answers
Related