# \#c

**URL:** https://community.solace.com/tag/c/51.md

[Latest](https://community.solace.com/latest.md) · [Categories](https://community.solace.com/categories.md) · [Tags](https://community.solace.com/tags.md)

---

## [Trouble connecting to Solace and no descriptive error is being received? Certificate auth](https://community.solace.com/t/trouble-connecting-to-solace-and-no-descriptive-error-is-being-received-certificate-auth/2033)

<div class="topic-metadata">

**Author:** [@nomassama](https://community.solace.com/u/nomassama)\
**Replies:** 2\
**Last updated:** [October 2, 2024, 3:00am UTC](https://community.solace.com/t/trouble-connecting-to-solace-and-no-descriptive-error-is-being-received-certificate-auth/2033 "2024-10-02T03:00:45Z")

</div>

Hi, I am trying to connect to event-broker. but could not connect. also the exception I am receiving is not very descriptive about what could be wrong. I have double checked: trust store path. certificate path certifi…

---

## [In the .NET API, why isn't the \`CorrelationKey\` set on the \`RejectedMessageError\`?](https://community.solace.com/t/in-the-net-api-why-isnt-the-correlationkey-set-on-the-rejectedmessageerror/1925)

<div class="topic-metadata">

**Author:** [@NasdaqMickelson](https://community.solace.com/u/NasdaqMickelson)\
**Replies:** 6\
**Last updated:** [May 14, 2024, 6:11pm UTC](https://community.solace.com/t/in-the-net-api-why-isnt-the-correlationkey-set-on-the-rejectedmessageerror/1925 "2024-05-14T18:11:24Z")

</div>

I have an application with messages sent to Persistent and a session event handler checking for SessionEvent.RejectedMessageError statuses. I wan to add some special handling logic for the scenario where a persistent …

---

## [C# - Solace Queue Message not reading and missing sometime](https://community.solace.com/t/c-solace-queue-message-not-reading-and-missing-sometime/1662)

<div class="topic-metadata">

**Author:** [@murusolai](https://community.solace.com/u/murusolai)\
**Replies:** 10\
**Last updated:** [April 23, 2024, 7:03am UTC](https://community.solace.com/t/c-solace-queue-message-not-reading-and-missing-sometime/1662 "2024-04-23T07:03:27Z")

</div>

I have referred sample code provided by the Solace team for implemented Pub/Sub Queue message ( GitHub - SolaceSamples/solace-samples-dotnet: Getting Started Samples for the Solace .NET API ) Sample code is implemented …

---

## [Using an ITransactedSession and handling errors with the .net API](https://community.solace.com/t/using-an-itransactedsession-and-handling-errors-with-the-net-api/1883)

<div class="topic-metadata">

**Author:** [@allmhhuran](https://community.solace.com/u/allmhhuran)\
**Replies:** 7\
**Last updated:** [March 15, 2024, 6:32am UTC](https://community.solace.com/t/using-an-itransactedsession-and-handling-errors-with-the-net-api/1883 "2024-03-15T06:32:32Z")

</div>

Suppose I am publishing guaranteed messages to a topic. I want to avoid sending duplicate messages. I am also going to send messages in transactional batches to make it easier to guarantee the broker receives the message…

---

## [Encountered sasl exception when connecting to Solace topic with AMQPLite dotnet library(AMQP 1.0)](https://community.solace.com/t/encountered-sasl-exception-when-connecting-to-solace-topic-with-amqplite-dotnet-library-amqp-1-0/1849)

<div class="topic-metadata">

**Author:** [@grantli](https://community.solace.com/u/grantli)\
**Replies:** 1\
**Last updated:** [February 1, 2024, 5:24pm UTC](https://community.solace.com/t/encountered-sasl-exception-when-connecting-to-solace-topic-with-amqplite-dotnet-library-amqp-1-0/1849 "2024-02-01T17:24:10Z")

</div>

Hello everyone, I am suffering an error when I tried to send/publish the messages with AMQP in my C# code. Below is the error: {error(condition:amqp:not-implemented,description:sasl-mechanisms(sasl-server-mechanisms:\[…

---

## [C# library is allocation heavy on the Send() for message arrays, any chance for improvement?](https://community.solace.com/t/c-library-is-allocation-heavy-on-the-send-for-message-arrays-any-chance-for-improvement/1542)

<div class="topic-metadata">

**Author:** [@Aleksei](https://community.solace.com/u/Aleksei)\
**Replies:** 10\
**Last updated:** [December 12, 2023, 1:54pm UTC](https://community.solace.com/t/c-library-is-allocation-heavy-on-the-send-for-message-arrays-any-chance-for-improvement/1542 "2023-12-12T13:54:13Z")

</div>

I have market data app that uses 3rd party C++ library that I wrapped in native C interface and I’m using it in C# app. I exchange memory between native and managed with zero allocations and copies using all the latest a…

---

## [Receiving Queue Alerts in C#](https://community.solace.com/t/receiving-queue-alerts-in-c/1766)

<div class="topic-metadata">

**Author:** [@dkalten](https://community.solace.com/u/dkalten)\
**Replies:** 2\
**Last updated:** [October 2, 2023, 5:25pm UTC](https://community.solace.com/t/receiving-queue-alerts-in-c/1766 "2023-10-02T17:25:17Z")

</div>

I’m currently running into issues trying to subscribe to alerts from my queue. I currently have my queue set up where I should be getting threshold alerts when I have 2+ msgs in the queue. From Subscribing to Message Bu…

---

## [C#.Net and the connection factory](https://community.solace.com/t/c-net-and-the-connection-factory/1685)

<div class="topic-metadata">

**Author:** [@Marsden](https://community.solace.com/u/Marsden)\
**Replies:** 7\
**Last updated:** [June 28, 2023, 6:14pm UTC](https://community.solace.com/t/c-net-and-the-connection-factory/1685 "2023-06-28T18:14:36Z")

</div>

Good day, I am trying to develop a service that will connect to an entity using the JMS functionality. The setup information provided by the vendor has a connection factory and jndi factory but I can’t seem to find any …

---

## [.net sdk writing directly to solcache](https://community.solace.com/t/net-sdk-writing-directly-to-solcache/1606)

<div class="topic-metadata">

**Author:** [@Devearl](https://community.solace.com/u/Devearl)\
**Replies:** 1\
**Last updated:** [March 11, 2023, 12:59pm UTC](https://community.solace.com/t/net-sdk-writing-directly-to-solcache/1606 "2023-03-11T12:59:53Z")

</div>

Is there a method of writing messages directly to topics stored in solcache without current subscribers receiving the message. Wondering if message filters is the best method of doing this.

---

## [Queue not able to send expiry message to DMQ](https://community.solace.com/t/queue-not-able-to-send-expiry-message-to-dmq/1355)

<div class="topic-metadata">

**Author:** [@bikash](https://community.solace.com/u/bikash)\
**Replies:** 6\
**Last updated:** [October 17, 2022, 2:17pm UTC](https://community.solace.com/t/queue-not-able-to-send-expiry-message-to-dmq/1355 "2022-10-17T14:17:07Z")

</div>

Hi, I created 2 message queue Main\_Queue DEAD\_MSG\_QUEUE The main queue has been configured ‘DEAD\_MSG\_QUEUE’ as DMQ name and ‘Respect TTL enabled’ with Maximum TTL (sec) as 180 sec. A producer is sending a message…

---

## [Set ApplicationMessageType via REST API?](https://community.solace.com/t/set-applicationmessagetype-via-rest-api/1391)

<div class="topic-metadata">

**Author:** [@ofgirichardsonb](https://community.solace.com/u/ofgirichardsonb)\
**Replies:** 2\
**Last updated:** [September 15, 2022, 4:17pm UTC](https://community.solace.com/t/set-applicationmessagetype-via-rest-api/1391 "2022-09-15T16:17:52Z")

</div>

I rely on the ApplicationMessageType property to map received events back to the POCOs that they were generated from. I am publishing events from a Blazor WASM application, and can’t use the SolaceSystems NuGet package s…

---

## [C# consumer flow dispose](https://community.solace.com/t/c-consumer-flow-dispose/1206)

<div class="topic-metadata">

**Author:** [@shaunvdberg](https://community.solace.com/u/shaunvdberg)\
**Replies:** 11\
**Last updated:** [August 11, 2022, 5:42pm UTC](https://community.solace.com/t/c-consumer-flow-dispose/1206 "2022-08-11T17:42:05Z")

</div>

Hi I’m new to Solace + this is my first post, so be gentle :smiley: I’m building a worker (C#) that consumes messages off a Solace Queue using the SolClient messaging API. On application shutdown, I attempt to stop & …

---

## [.Net integration using .pem certificate](https://community.solace.com/t/net-integration-using-pem-certificate/300)

<div class="topic-metadata">

**Author:** [@aalok](https://community.solace.com/u/aalok)\
**Replies:** 6\
**Last updated:** [June 15, 2022, 4:44pm UTC](https://community.solace.com/t/net-integration-using-pem-certificate/300 "2022-06-15T16:44:03Z")

</div>

Hello, I’m looking for some help on how to import .pem certificate and use it .Net code. Any help or sample implementation for reference will be appreciated.

---

## [C# .net integration getting error Failed to create session](https://community.solace.com/t/c-net-integration-getting-error-failed-to-create-session/511)

<div class="topic-metadata">

**Author:** [@dndoanh](https://community.solace.com/u/dndoanh)\
**Replies:** 11\
**Last updated:** [May 16, 2022, 6:19pm UTC](https://community.solace.com/t/c-net-integration-getting-error-failed-to-create-session/511 "2022-05-16T18:19:40Z")

</div>

I follow the instruction in this tutorial: Getting error (SOLCLIENT\_FAIL - Failed to create session) when create session and connect how to reproduce: Create Solace Cloud free plan Pub/Sub using Secured SMF URI with…

---

## [Develop the C# client for sending and receiving messages through Solace Broker](https://community.solace.com/t/develop-the-c-client-for-sending-and-receiving-messages-through-solace-broker/1232)

<div class="topic-metadata">

**Author:** [@sreeramgp](https://community.solace.com/u/sreeramgp)\
**Replies:** 3\
**Last updated:** [April 28, 2022, 7:08pm UTC](https://community.solace.com/t/develop-the-c-client-for-sending-and-receiving-messages-through-solace-broker/1232 "2022-04-28T19:08:20Z")

</div>

Hi Team, I am new to Solace Pubsub broker. This is my first posting. So please apology me, if my query is not clear. I can elaborate it, if it requires. We want to develop the POC to send and receive messages (Pubsub p…

---

## [Generate C# code using Async API](https://community.solace.com/t/generate-c-code-using-async-api/1233)

<div class="topic-metadata">

**Author:** [@sreeramgp](https://community.solace.com/u/sreeramgp)\
**Replies:** 2\
**Last updated:** [April 22, 2022, 7:42am UTC](https://community.solace.com/t/generate-c-code-using-async-api/1233 "2022-04-22T07:42:53Z")

</div>

Hi, As per my understanding, Async API tools generate the basic skeleton code. Could anyone used Async API to generate code for C#. If it is could you please share me the useful links. With Warm Regards, Sreeram Arch…

---

## [Is it applicable to turn on/off Respect TTL settings in queue via API (using C#)](https://community.solace.com/t/is-it-applicable-to-turn-on-off-respect-ttl-settings-in-queue-via-api-using-c/1176)

<div class="topic-metadata">

**Author:** [@alhung](https://community.solace.com/u/alhung)\
**Replies:** 2\
**Last updated:** [March 10, 2022, 6:06am UTC](https://community.solace.com/t/is-it-applicable-to-turn-on-off-respect-ttl-settings-in-queue-via-api-using-c/1176 "2022-03-10T06:06:43Z")

</div>

Hi everyone, as title, I would like to turn on/off the Respect TTL setting using C# due to I have multiple queues with the same topic for different systems, and not all of the queue has consumers. For those queue with…

---

## [Estimation of expected background traffic for a subscriber that is not receiving data?](https://community.solace.com/t/estimation-of-expected-background-traffic-for-a-subscriber-that-is-not-receiving-data/1167)

<div class="topic-metadata">

**Author:** [@allmhhuran](https://community.solace.com/u/allmhhuran)\
**Replies:** 3\
**Last updated:** [February 28, 2022, 1:59pm UTC](https://community.solace.com/t/estimation-of-expected-background-traffic-for-a-subscriber-that-is-not-receiving-data/1167 "2022-02-28T13:59:56Z")

</div>

Suppose I have a c# application which receives guaranteed messages from a solace pubsub+ broker. The application runs as a windows service or daemon. In other words it is always running, but essentially just sitting idl…

---

## [BinaryFormatter exception in .Net 5](https://community.solace.com/t/binaryformatter-exception-in-net-5/531)

<div class="topic-metadata">

**Author:** [@Anton](https://community.solace.com/u/Anton)\
**Replies:** 14\
**Last updated:** [February 9, 2022, 4:06pm UTC](https://community.solace.com/t/binaryformatter-exception-in-net-5/531 "2022-02-09T16:06:06Z")

</div>

Hi, after migrating project to .Net 5 we started to get this error: System.NotSupportedException: BinaryFormatter serialization and deserialization are disabled within this application. See Deserialization risks in use…

---

## [How to integrate Publisher and subscriber code in a same c# file ?](https://community.solace.com/t/how-to-integrate-publisher-and-subscriber-code-in-a-same-c-file/1126)

<div class="topic-metadata">

**Author:** [@shima](https://community.solace.com/u/shima)\
**Replies:** 0\
**Last updated:** [January 25, 2022, 7:18pm UTC](https://community.solace.com/t/how-to-integrate-publisher-and-subscriber-code-in-a-same-c-file/1126 "2022-01-25T19:18:46Z")

</div>

Hi, I want to run publisher and subscriber in a same c# file to use it in unity3d does anyone did before?

---

## [How to use publisher and subscriber codes in a same script in unity3d?](https://community.solace.com/t/how-to-use-publisher-and-subscriber-codes-in-a-same-script-in-unity3d/1122)

<div class="topic-metadata">

**Author:** [@shima](https://community.solace.com/u/shima)\
**Replies:** 5\
**Last updated:** [January 24, 2022, 6:52pm UTC](https://community.solace.com/t/how-to-use-publisher-and-subscriber-codes-in-a-same-script-in-unity3d/1122 "2022-01-24T18:52:15Z")

</div>

Hello , I am working with unity and I am trying to use both of the subscriber and publisher in a same unity file so to do that I did following solutions: I use publisher script and add it to my button and I use subscri…

---

## [How to integrate unity3d and Solace pubsub?](https://community.solace.com/t/how-to-integrate-unity3d-and-solace-pubsub/1044)

<div class="topic-metadata">

**Author:** [@shima](https://community.solace.com/u/shima)\
**Replies:** 14\
**Last updated:** [December 15, 2021, 11:41am UTC](https://community.solace.com/t/how-to-integrate-unity3d-and-solace-pubsub/1044 "2021-12-15T11:41:34Z")

</div>

Hi I am very happy that I can join to your community. Since some months ago I was working with solace pub sub+ and now I want to integrate Solace to unity3d for publishing messages from unity to Solace I didn’t have any…

---

## [C++, Max clients exceeded for queue](https://community.solace.com/t/c-max-clients-exceeded-for-queue/1009)

<div class="topic-metadata">

**Author:** [@martinpelak](https://community.solace.com/u/martinpelak)\
**Replies:** 5\
**Last updated:** [November 2, 2021, 5:40pm UTC](https://community.solace.com/t/c-max-clients-exceeded-for-queue/1009 "2021-11-02T17:40:40Z")

</div>

Hi, I would like to send Guaranteed messages to a queue and then read them back within a C++ project. I have managed to create a session (solClient\_session\_create), then I created a transacted session (solClient\_sessio…

---

## [Solace .net libraries possibly using no-longer-supported binaryformatter (also, .net5)](https://community.solace.com/t/solace-net-libraries-possibly-using-no-longer-supported-binaryformatter-also-net5/964)

<div class="topic-metadata">

**Author:** [@allmhhuran](https://community.solace.com/u/allmhhuran)\
**Replies:** 2\
**Last updated:** [September 29, 2021, 3:56pm UTC](https://community.solace.com/t/solace-net-libraries-possibly-using-no-longer-supported-binaryformatter-also-net5/964 "2021-09-29T15:56:13Z")

</div>

In a question thread created late last year, forum user @Anton was asking about a binary formatter exception in relation to his attempt to use .net5. I have just run into a similar issue. But interestingly, at around th…

---

## [Applying backpressure to a flow by blocking in the MessageEventHandler](https://community.solace.com/t/applying-backpressure-to-a-flow-by-blocking-in-the-messageeventhandler/919)

<div class="topic-metadata">

**Author:** [@allmhhuran](https://community.solace.com/u/allmhhuran)\
**Replies:** 11\
**Last updated:** [September 23, 2021, 5:14pm UTC](https://community.solace.com/t/applying-backpressure-to-a-flow-by-blocking-in-the-messageeventhandler/919 "2021-09-23T17:14:56Z")

</div>

I have a few days of free time and so I am developing a new branch of my Solace subscriber wrapper library. I thought I’d play with exposing the message stream as an IAsyncEnumerable. I decided to use a System.Threading…

---

## [.NET - Context.Init throws exception when used with dependency injecetion](https://community.solace.com/t/net-context-init-throws-exception-when-used-with-dependency-injecetion/530)

<div class="topic-metadata">

**Author:** [@John](https://community.solace.com/u/John)\
**Replies:** 4\
**Last updated:** [December 23, 2020, 3:30pm UTC](https://community.solace.com/t/net-context-init-throws-exception-when-used-with-dependency-injecetion/530 "2020-12-23T15:30:31Z")

</div>

Hi! I am trying to setup a .NET Framework 4.7.2 application for publishing to an Solace Event Broker. I have made a class with the role to configure and contain the SolaceContext and provide it whenever I’d like to cre…

---

## [Is it safe to reuse messages without calling Reset()?](https://community.solace.com/t/is-it-safe-to-reuse-messages-without-calling-reset/368)

<div class="topic-metadata">

**Author:** [@allmhhuran](https://community.solace.com/u/allmhhuran)\
**Replies:** 2\
**Last updated:** [September 11, 2020, 9:11am UTC](https://community.solace.com/t/is-it-safe-to-reuse-messages-without-calling-reset/368 "2020-09-11T09:11:25Z")

</div>

Suppose I have a Publisher class which encapsulates the details of the solace broker. For any given application, it will receive an instance of a Publisher for a given topic to which it wants to send guaranteed messages. …

---

## [Transactions not supported](https://community.solace.com/t/transactions-not-supported/385)

<div class="topic-metadata">

**Author:** [@JerryP](https://community.solace.com/u/JerryP)\
**Replies:** 1\
**Last updated:** [September 4, 2020, 3:57pm UTC](https://community.solace.com/t/transactions-not-supported/385 "2020-09-04T15:57:38Z")

</div>

Hi, I’m actually a newbie to AMQP and Solace. I have questions regarding a issue publishing message using “AMQP 1.0 library for .Net” to Solace. i) I kept getting “Transactions not supported” when I try to publish mes…

---

## [Handling failures of ISession.Connect with .NET API](https://community.solace.com/t/handling-failures-of-isession-connect-with-net-api/371)

<div class="topic-metadata">

**Author:** [@Kiwidude](https://community.solace.com/u/Kiwidude)\
**Replies:** 4\
**Last updated:** [August 27, 2020, 11:38am UTC](https://community.solace.com/t/handling-failures-of-isession-connect-with-net-api/371 "2020-08-27T11:38:28Z")

</div>

There is a comment in the ISession documentation for .NET of “Connect and disconnect on demand” but no more detail on that. Currently our app has: Code at service startup to initialise Solace, create session, call ISe…

---

## [.NET best practices for lifetimes/instancing of context/session?](https://community.solace.com/t/net-best-practices-for-lifetimes-instancing-of-context-session/343)

<div class="topic-metadata">

**Author:** [@Kiwidude](https://community.solace.com/u/Kiwidude)\
**Replies:** 9\
**Last updated:** [August 8, 2020, 9:27pm UTC](https://community.solace.com/t/net-best-practices-for-lifetimes-instancing-of-context-session/343 "2020-08-08T21:27:06Z")

</div>

We are looking to add Solace support for publishing/receiving from Solace Topics & Queues to our existing .NET C# codebase that already handles MSMQ and MQ. One thing that I have not come across in the documentation / ex…

[Next page](https://community.solace.com/tag/c/51.md?match_all_tags=true&page=1&tags%5B%5D=c)
