Code Monkey home page Code Monkey logo

msmq.messaging's People

Contributors

mus65 avatar psiservices-dbrink avatar weloytty avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

msmq.messaging's Issues

Strong naming the assembly

Could the assembly be strong named in order to be used through a strong named netstandard2.0 assembly?

Unhandled exceptions when trying to enqueue a message

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

winver details:
image

Cannot access the Dead letter queues

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)

System.PlatformNotSupportedException: 'Compiling JScript/CSharp scripts is not supported'

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:
image

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.