# Differences between JS and .NET sdk's?

**URL:** <https://community.solace.com/t/differences-between-js-and-net-sdks/209>\
**Category:** Solace Event Broker\
**Tags:** net, javascript\
**Created:** [March 10, 2020, 11:21pm UTC](https://community.solace.com/t/differences-between-js-and-net-sdks/209 "2020-03-10T23:21:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TD\_asilva](https://avatars.discourse-cdn.com/v4/letter/t/dec6dc/32.png) [@TD\_asilva](https://community.solace.com/u/TD_asilva)\
**Post date:** [March 10, 2020, 11:21pm UTC](https://community.solace.com/t/differences-between-js-and-net-sdks/209/1 "2020-03-10T23:21:41Z")

</div>

Hello!  
I am currently using the JS and .NET sdk’s to connect to and publish messages to a pub/sub+ instance. Initially, I was using the JS sdk and have had no problems publishing persistent messages to a topic and having a durable queue subscribed to that topic. The messages are getting properly sent and picked up by the queue and consumed on the other side. Now, I am trying to setup a .NET app to publish persistent messages to the same topic. However, upon trying to publish my message, I get the attached exception/error, which suggests that I am not allowed to publish “assured” messages.

 ![image.png](https://canada1.discourse-cdn.com/solace/original/2X/4/4577f78a6e3292eabf1b39ff51d0161525dfa679.png)

It’s possible that the scaffolding code around the TopicPublisher and associated bootstrap code I am using in the 2 apps is slightly different, but I am using the same session creation info (i.e. host, user, vpn, password) in both apps so I would think the session info should be identical. Also, if I make the tiny change of setting message.DeliveryMode in the .NET app from MessageDeliveryMode.Persistent to MessageDeliveryMode.Direct, the message publishes to the topic/queue as expected, it is just not persistent - so this seems to suggest that I have things setup correctly, otherwise. Is there different processing under the hood in the sdk’s in terms of permissions and what a user is allowed to do in a given session? I tried giving that user the read and write permission to see if that would help, but it did not seem to have an effect.  
Please let me know what I might be missing - I can use direct mode for the time being, but would really prefer the reliability of persistent mode in the longrun.  
Thank you!  
-Anthony

---

<div class="post-metadata">

**Author:** ![amackenzie](https://yyz1.discourse-cdn.com/solace/user_avatar/community.solace.com/amackenzie/32/1168_2.png) [@amackenzie](https://community.solace.com/u/amackenzie)\
**Post date:** [March 11, 2020, 2:58pm UTC](https://community.solace.com/t/differences-between-js-and-net-sdks/209/2 "2020-03-11T14:58:36Z")

</div>

Hi, you don’t specify in your post above, but I surmise that since you started in JS you may be using Web Sockets to connect to your broker. Is this the case?  
We do not currently support Guaranteed/Assured messaging over Web Sockets (in our C/C#/Java RTO apis). It is a feature which is coming but won’t be available until summer 2020 (estimated).  
[SessionProperties.Host Property](https://docs.solace.com/API-Developer-Online-Ref-Documentation/net/html/3d8e6034-0f60-467b-340b-aa63a4555f3a.htm) is a list of supported protocols.
