Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xamarin Forms and Grpc.Net #1097

Closed
speed2048 opened this issue Oct 28, 2020 · 5 comments
Closed

Xamarin Forms and Grpc.Net #1097

speed2048 opened this issue Oct 28, 2020 · 5 comments
Labels
bug Something isn't working

Comments

@speed2048
Copy link

I am developing a project that uses xamarin.forms with grpc on a Mac ( getting ready for .net Maui ) and I am getting exception errors (DebugException="System.MissingMethodException: Method not found: System.Buffers.IBufferWriter`1 Grpc.Core.SerializationContext.GetBufferWriter()).

So I did some digging and found out that Xamarin.Forms does not work with grpc.net at this time.

https://docs.microsoft.com/en-us/aspnet/core/grpc/client?view=aspnetcore-3.1

My question is. When will xf support grpc.net? I do not see this on the roadmap I admit I could be looking in the wrong place.

Also is Xamarin.Forms going to support the .net core Framework?

Also wondering if I should provide more details with this issue?

@speed2048 speed2048 added the bug Something isn't working label Oct 28, 2020
@JunTaoLuo
Copy link
Contributor

This would be a question best left for the owners of Xamarin Forms.

Curious if this is a new error you are seeing and it worked at one point for you? The bufferwriter error looks like it could be a new issue that was introduced after we defaulted to using span based serialization/deserialization in protocolbuffers/protobuf#7351. If that is the case, you could try setting GOOGLE_PROTOBUF_COMPATIBILITY_MODE as described in protocolbuffers/protobuf#7490 to revert to the previous behaviour and see if that helps with your scenario.

@speed2048
Copy link
Author

I did ask the Xamarin forms people and suggested posting here..

dotnet/core#5376 (comment)

I am hopting the .net 5/6 fixes this mess with .netstandard x.x and .net core. As I cannot seem to find a way to implement grpc.net unless its dotnet 3 app or web app..

@JoacimWall
Copy link

JoacimWall commented Nov 6, 2020

Hi @speed2048
i have used the grpc.web nuget and got i working under xamarin.forms this was some months ago.

//Regards Joacim

@BrennanConroy
Copy link
Contributor

you could try setting GOOGLE_PROTOBUF_COMPATIBILITY_MODE as described in protocolbuffers/protobuf#7490 to revert to the previous behaviour and see if that helps with your scenario.

Have you tried this?

@JunTaoLuo
Copy link
Contributor

There hasn't been any response in the past 7 days so we are closing this issue. Please reopen or open a new issue if you you would like to discuss further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants