Using a message type from signed assembly #1191
Replies: 1 comment
-
@TimoCzotscher Good to hear you figured it out! 🙂 |
Beta Was this translation helpful? Give feedback.
0 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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am currently trying to integrate Rebus and I'm having the following problem:
With my own message type I can't get Rebus to work because I get 'Could not find .NET type' error.
The project I work in uses signed assemblies. So the SimpleAssemblyQualifiedName Rebus creates to identify the message type does not work for me because System.Type.GetType() needs the PublicKeyToken for signed assemblies.
This causes the 'Could not find .NET type' error, because SimpleAssemblyQualifiedMessageTypeNameConvention (link) tries to resolve the type using the type of the rbs2-msg-type which consists of Rebus's SimpleAssemblyQualifiedName (link) as far as I understand it.
Is there a possibility so I can still use Rebus in a project using signed assemblies?
Any help or suggestions would be appreciated!
Edit 20.01.2025
I took a look at Serialization Configuration and CustomTypeNameConventionBuilder and found
to fix my problem with the SimpleAssemblyQualifiedName and the signed assemblies. If anyone will ever have a similar issue, maybe this can help.
Problem solved! :)
Beta Was this translation helpful? Give feedback.
All reactions