You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was using services very successfully in Wpf app, now when i need to use the same client in my console app i got exception :
The type initializer for 'MagicOnion.Client.DynamicClient.DynamicClientBuilder`1' threw an exception.'
PlatformNotSupportedException: Dynamic code generation is not supported on this platform.
Here is the same code i used in WPF APP:
var channel = GrpcChannel.ForAddress("myAddress");
var proxy = MagicOnionClient.Create(channel)!;
The text was updated successfully, but these errors were encountered:
System.PlatformNotSupportedException: Dynamic code generation is not supported on this platform.
at System.Reflection.Emit.AssemblyBuilder.ThrowDynamicCodeNotSupported()
at System.Reflection.Emit.AssemblyBuilder.EnsureDynamicCodeSupported()
at System.Reflection.Emit.AssemblyBuilder.DefineDynamicAssembly(AssemblyName name, AssemblyBuilderAccess access, IEnumerable`1 assemblyAttributes, Assembly callingAssembly)
at MagicOnion.Server.Glue.MagicOnionGlueService.CreateType()
at Microsoft.Extensions.DependencyInjection.MagicOnionServicesExtensions.AddMagicOnionCore(IServiceCollection services, Action`1 configureOptions)
at Microsoft.Extensions.DependencyInjection.MagicOnionServicesExtensions.AddMagicOnion(IServiceCollection services, Action`1 configureOptions)
at Program.<Main>$(String[] args) in E:\Projects\Company_Projects\TeraSync\TeraSync.Service\Program.cs:line 10
I was using services very successfully in Wpf app, now when i need to use the same client in my console app i got exception :
The type initializer for 'MagicOnion.Client.DynamicClient.DynamicClientBuilder`1' threw an exception.'
PlatformNotSupportedException: Dynamic code generation is not supported on this platform.
Here is the same code i used in WPF APP:
var channel = GrpcChannel.ForAddress("myAddress");
var proxy = MagicOnionClient.Create(channel)!;
The text was updated successfully, but these errors were encountered: