Client gRPC won't work anymore after updating to 3.23.1 (works in 3.23.0)
See original GitHub issueWhat version of gRPC and what language are you using?
c#, Google.Protobuf 3.23.1
What operating system (Linux, Windows,…) and version?
Edition Windows 11 Pro Version 22H2 Installed on 28/09/2022 OS build 22621.1702 Experience Windows Feature Experience Pack 1000.22641.1000.0
What runtime / compiler are you using (e.g. .NET Core SDK version dotnet --info
)
.Net 7.0
What did you do?
If possible, provide a recipe for reproducing the error. Try being specific and include code snippets if helpful.
This morning I updated my WPF project from: Google.Protobuf 3.23.0 to Google.Protobuf 3.23.1 This is the only change I made. I published my project using my usual settings:
Configuration Release
Platform Any CPU
PublishProtocol FileSystem
_TargetId Folder
TargetFramework net7.0-windows
RuntimeIdentifier win-x64
SelfContained false
PublishSingleFile true
PublishReadyToRun true
If I try to launch my WPF client it stops as soon as trying to connect to my gRPC server. I tried catching an error and logging it with Serilog, but I was not able to find it.
It does not happen if I run the project from Visual Studio in debug or if I launch the exe from the release folder after building (the difference here is that the libraries are not merged in one huge exe, as in publishing (I use PublishSingleFile = true). I rolled back to 3.23.0 and I can publish my WPF project successfully and connect as usual to my gRPC Server app.
What did you expect to see?
Being able to connect to my gRPC Server App from my gRPC Client App.
What did you see instead?
The published (single file) client app is unable to connect to the gRPC Server. Make sure you include information that can help us debug (full error message, exception listing, stack trace, logs).
See TROUBLESHOOTING.md for how to diagnose problems better.
Anything else we should know about your project / environment?
The gRPC Server App has been updated to 3.23.1 as well, and it works perfectly. I’m able as well to connect from my client gRPC app if I run it from Visual Studio, or if I launch the exe after building it in release. Any chance it might be related to the latest changes or should I look somewhere else? Regards Roberto
Issue Analytics
- State:
- Created 4 months ago
- Comments:12 (5 by maintainers)
Top GitHub Comments
from Google.Protobuf 3.23.0 to 3.23.2
Hi James, just to let you know that today I upgraded from Google.Protobuf 3.23.4 to 3.24.0 and my app fails to start (after publishing). So I restored 3.23.4 and everything works again. I guess I’ll skip this update Regards Roberto