weloytty / msmq.messaging Goto Github PK
View Code? Open in Web Editor NEWA drop in replacement for System.Messaging for use with .NET Core (on Windows only)
License: MIT License
A drop in replacement for System.Messaging for use with .NET Core (on Windows only)
License: MIT License
Could the assembly be strong named in order to be used through a strong named netstandard2.0 assembly?
I have run into the following exceptiond when calling MessageQueue.Send
. Still trying to dive into the details of exactly what is going on. I'll add more details to this issue as I find them.
System.InvalidCastException: Unable to cast object of type 'System.Runtime.InteropServices.GCHandle' to type 'System.UInt32'.
at MQPROPS MSMQ.Messaging.Interop.MessagePropertyVariants.Lock()
at void MSMQ.Messaging.MessageQueue.SendInternal(object obj, MessageQueueTransaction internalTransaction, MessageQueueTransactionType transactionType)
System.NullReferenceException: Object reference not set to an instance of an object.
at void MSMQ.Messaging.Interop.MessagePropertyVariants.Unlock()
at void MSMQ.Messaging.MessageQueue.SendInternal(object obj, MessageQueueTransaction internalTransaction, MessageQueueTransactionType transactionType)
We are running this on .NET 5.0.3
Cannot access the Dead letter queue and the Transactional Dead letter queue
// .\system$;DeadXact
// .\system$;DeadLetter.
string deadLetterQueuePath = @".\System$;Deadletter";
// falls with Invalid queue path name
if (!MessageQueue.Exists(sourceQueuePath)) { ... }
the error with stack trace
Invalid queue path name.
MessageQueueErrorCode: IllegalQueuePathName
at MSMQ.Messaging.MessageQueue.ResolveFormatNameFromQueuePath(String queuePath, Boolean throwException)
at MSMQ.Messaging.MessageQueue.Exists(String path)
found the source code check
private static string ResolveFormatNameFromQueuePath(string queuePath, bool throwException)
{
string machine = queuePath.Substring(0, queuePath.IndexOf('\\'));
//The name includes the \\
string name = queuePath.Substring(queuePath.IndexOf('\\'));
//Check for machine DeadLetter or Journal
if (String.Compare(name, SUFIX_DEADLETTER, true, CultureInfo.InvariantCulture) == 0 ||
String.Compare(name, SUFIX_DEADXACT, true, CultureInfo.InvariantCulture) == 0 ||
String.Compare(name, SUFIX_JOURNAL, true, CultureInfo.InvariantCulture) == 0)
{
so it expects the path contains SUFIX_XXX
if I changed string queuePath = ".\\Deadletter$";
in my code to satisfy the checks then got
UnsupportedOperation
A workgroup installation computer does not support the operation.
at MSMQ.Messaging.MessageQueue.GetMachineId(String machineName)
at MSMQ.Messaging.MessageQueue.ResolveFormatNameFromQueuePath(String queuePath, Boolean throwException)
at MSMQ.Messaging.MessageQueue.Exists(String path)
Does this library support .net 6 on Linux containers? I think it works on .net 6. Could you confirm?
Moved project from .NET 4.8 to .net 7.0 using MSMQ.Messaging
And I've got "System.PlatformNotSupportedException: 'Compiling JScript/CSharp scripts is not supported'" exception while accessing to Body:
MSMQ.Messaging used in .net standart 2.0 library project which executes in .net 7.0 service.
I've tried to change Target OS, but it doesn't help.
Used XmlMessageFormatter
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.