Hi,

I'm having an issue with client-side streaming in C#. When my client code 
in a VSIX package tries to call a service that returns a stream, I get the 
following exception:

An exception of type 'System.IO.FileNotFoundException' occurred in 
Grpc.Core.dll but was not handled in user code

Additional information: Could not load file or assembly 
'System.Interactive.Async, Version=3.0.1000.0, Culture=neutral, 
PublicKeyToken=94bc3704cddfc263' or one of its dependencies. The system 
cannot find the file specified.


The version number is suspiciously 3.0.1000.0 instead of 3.0.3000.0. I 
noticed that the project references version 3.0.3000.0. This reference got 
added automatically when I used nuget manager to add grpc. On the other 
hand, grpc.core seems to depend on 3.0.1000.0. 

These lines were automatically added in my app.config, and I thought it's 
supposed to prevent the issue I'm having, but sadly that's not the case:

      <dependentAssembly>
        <assemblyIdentity name="System.Interactive.Async" 
publicKeyToken="94bc3704cddfc263" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-3.0.3000.0" 
newVersion="3.0.3000.0" />
      </dependentAssembly>

The same client works fine with simple RPC, only streaming RPC causes a 
problem. (More specifically, I call an endpoint that takes a simple input 
and returns a stream.)

For a sanity check, I created a dummy Class Library project, but there I 
don't get the same issue, streaming RPC works just fine. My real target is 
a VSIX project, net46.

How can I make this work in a VSIX project? Or, is there a way to consume a 
streaming output without using System.Interactive.Async? Although 
ultimately I would like to be able to consume a stream asynchronously, 
synchronous mode could be acceptable in the short term.

Thank you,
Janos

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To post to this group, send email to grpc-io@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/b8163364-47ee-493a-989f-08cf38083447%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to