AutoMapper / AutoMapper.Extensions.Microsoft.DependencyInjection

MIT License
258 stars 79 forks source link

Unknown collection. Consider a custom type converter #167

Closed robertodalmonte closed 1 year ago

robertodalmonte commented 1 year ago

Hi there, when upgrading from:

to

I get: System.AggregateException HResult=0x80131500 Message=One or more errors occurred. (Status(StatusCode="Unknown", Detail="Exception was thrown by handler. NotSupportedException: Unknown collection. Consider a custom type converter from System.Byte[] to Google.Protobuf.ByteString.")) Source=System.Private.CoreLib StackTrace: at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification) at System.Threading.Tasks.Task1.get_Result() at OneClick.Comuni.CitiesManager.get_CityList() in D:\Github\OneClick\OneClick.Comuni\CitiesManager.cs:line 30 at OneClick.Dental.App..ctor() in D:\Github\OneClick\OneClick.Dental\App.xaml.cs:line 25 at OneClick.Dental.App.Main()

This exception was originally thrown at this call stack: [External Code] OneClick.Dental.Proxy.ClientChannel.GetComuneList(OneClick.Service.ComuneListRequest) in ClientChannel.cs OneClick.Comuni.CitiesManager.GetCityListFromServerAsync() in CitiesManager.cs

Inner Exception 1: RpcException: Status(StatusCode="Unknown", Detail="Exception was thrown by handler. NotSupportedException: Unknown collection. Consider a custom type converter from System.Byte[] to Google.Protobuf.ByteString.")

If I roll back to version 11.0.0 everything's back to normal Regards Roberto

robertodalmonte commented 1 year ago
lbargaoanu commented 1 year ago

You're going to have to do what the message says.

github-actions[bot] commented 1 year ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.