OpenSleigh 2.0.1 sample 3 #81
yaroslavbr-tr
started this conversation in
General
Replies: 2 comments 6 replies
-
|
hi @yaroslavbr-tr , can you please check if the OpenSleigh.Abstractions package is included in your project? It should come with OpenSleigh.Core, but for some reason seems that it's not happening. Let me know. |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
Unfortunately I've some trouble with code pushing. You can easily reproduce it after downloading your sample 3 and changing the direct reference in .csproj file to the nuget package . |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment



Uh oh!
There was an error while loading. Please reload this page.
-
I trying to exanimate sample 3 . My project configuration is
<PackageReference Include="OpenSleigh.Core" Version="2.0.1" /> <PackageReference Include="OpenSleigh.Persistence.SQLServer" Version="2.0.0" /> <PackageReference Include="OpenSleigh.Transport.RabbitMQ" Version="2.0.1" />and i am getting following exception in Startup.cs in row
services.AddOpenSleigh(cfg => {}System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types.
Could not load type 'OpenSleigh.Core.Persistence.IOutboxRepository' from assembly 'OpenSleigh.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Could not load type 'OpenSleigh.Core.Persistence.ISagaStateRepository' from assembly 'OpenSleigh.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Could not load type 'OpenSleigh.Core.Persistence.ITransaction' from assembly 'OpenSleigh.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Could not load type 'OpenSleigh.Core.Persistence.ITransactionManager' from assembly 'OpenSleigh.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Could not load type 'OpenSleigh.Core.Persistence.ITransaction' from assembly 'OpenSleigh.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Could not load type 'OpenSleigh.Core.Persistence.ITransaction' from assembly 'OpenSleigh.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Could not load type 'OpenSleigh.Core.Persistence.ITransaction' from assembly 'OpenSleigh.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Could not load type 'OpenSleigh.Core.Messaging.IMessage' from assembly 'OpenSleigh.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Could not load type 'OpenSleigh.Core.Persistence.ITransaction' from assembly 'OpenSleigh.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Could not load type 'OpenSleigh.Core.SagaState' from assembly 'OpenSleigh.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Could not load type 'OpenSleigh.Core.SagaState' from assembly 'OpenSleigh.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Could not load type 'OpenSleigh.Core.Persistence.ITransaction' from assembly 'OpenSleigh.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Could not load type 'OpenSleigh.Core.SagaState' from assembly 'OpenSleigh.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Could not load type 'OpenSleigh.Core.Persistence.ITransaction' from assembly 'OpenSleigh.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.Assembly.GetTypes()
at OpenSleigh.Core.DependencyInjection.ServiceCollectionExtensions.RegisterAllMessages(ITypeResolver typeResolver)
at OpenSleigh.Core.DependencyInjection.ServiceCollectionExtensions.AddOpenSleigh(IServiceCollection services, Action
1 configure) at OpenSleighApp1.Startup.ConfigureServices(IServiceCollection services) in C:\Projects\TestProjects\OpenSleigh\OpenSleighApp1\OpenSleighApp1\Startup.cs:line 36 at System.RuntimeMethodHandle.InvokeMethod(Object target, Span1& arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services)
at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass9_0.g__Startup|0(IServiceCollection serviceCollection)
at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.Invoke(Object instance, IServiceCollection services)
at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass8_0.b__0(IServiceCollection services)
at Microsoft.AspNetCore.Hosting.GenericWebHostBuilder.UseStartup(Type startupType, HostBuilderContext context, IServiceCollection services, Object instance)
at Microsoft.AspNetCore.Hosting.GenericWebHostBuilder.<>c__DisplayClass13_0.b__0(HostBuilderContext context, IServiceCollection services)
at Microsoft.Extensions.Hosting.HostBuilder.CreateServiceProvider()
at Microsoft.Extensions.Hosting.HostBuilder.Build()
at OpenSleighApp1.Program.Main(String[] args) in C:\Projects\TestProjects\OpenSleigh\OpenSleighApp1\OpenSleighApp1\Program.cs:line 47
System.TypeLoadException: Could not load type 'OpenSleigh.Core.Persistence.IOutboxRepository' from assembly 'OpenSleigh.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
System.TypeLoadException: Could not load type 'OpenSleigh.Core.Persistence.ISagaStateRepository' from assembly 'OpenSleigh.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
System.TypeLoadException: Could not load type 'OpenSleigh.Core.Persistence.ITransaction' from assembly 'OpenSleigh.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
System.TypeLoadException: Could not load type 'OpenSleigh.Core.Persistence.ITransactionManager' from assembly 'OpenSleigh.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
System.TypeLoadException: Could not load type 'OpenSleigh.Core.Persistence.ITransaction' from assembly 'OpenSleigh.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
System.TypeLoadException: Could not load type 'OpenSleigh.Core.Persistence.ITransaction' from assembly 'OpenSleigh.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
System.TypeLoadException: Could not load type 'OpenSleigh.Core.Persistence.ITransaction' from assembly 'OpenSleigh.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
System.TypeLoadException: Could not load type 'OpenSleigh.Core.Messaging.IMessage' from assembly 'OpenSleigh.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
System.TypeLoadException: Could not load type 'OpenSleigh.Core.Persistence.ITransaction' from assembly 'OpenSleigh.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
System.TypeLoadException: Could not load type 'OpenSleigh.Core.SagaState' from assembly 'OpenSleigh.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
System.TypeLoadException: Could not load type 'OpenSleigh.Core.SagaState' from assembly 'OpenSleigh.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
System.TypeLoadException: Could not load type 'OpenSleigh.Core.Persistence.ITransaction' from assembly 'OpenSleigh.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
System.TypeLoadException: Could not load type 'OpenSleigh.Core.SagaState' from assembly 'OpenSleigh.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
System.TypeLoadException: Could not load type 'OpenSleigh.Core.Persistence.ITransaction' from assembly 'OpenSleigh.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Beta Was this translation helpful? Give feedback.
All reactions