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 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!
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! :)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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