News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
pubnub
Tags: authentication
Apr 4, 2018 at 6:06am   •   2 replies  •  0 likes
ashikh-p-m

I am integrating ring central c# package to asp.net mvc5 application.Autherization is done and when i try to call subscription it shows an error like


"Could not load file or assembly 'PubNub-Messaging, Version=1.0.6201.20023, Culture=neutral, PublicKeyToken=dc66f52ce6619f44' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)":"PubNub-Messaging, Version=1.0.6201.20023, Culture=neutral, PublicKeyToken=dc66f52ce6619f44"

when i installed ring central client it added pubnub-messaging version 1.0.6151.29001, now i am unable to change the package.


This is my code,


var subscription = rc.Restapi().Subscription().New();


subscription.EventFilters.Add("/restapi/v1.0/account/~/extension/~/message-store");


subscription.EventFilters.Add("/restapi/v1.0/account/~/extension/~/presence");


subscription.ConnectEvent += (sender, args) =>

{



Console.WriteLine("Connected:");


Console.WriteLine(args.Message);


};


subscription.NotificationEvent += (sender, args) =>

{



Console.WriteLine("Notification:");


Console.WriteLine(args.notification);


};


subscription.ErrorEvent += (sender, args) =>

{



Console.WriteLine("Error:");


Console.WriteLine(args.Message);


};


var sub = await subscription.Register();



please reply regarding the issue


2 Answers
answered on Apr 12, 2018 at 8:00pm  
Which version of ringcentral-csharp-client did you install? Could you please try latest version instead?

Can you reproduce the issue with an hello world style sample project?  I cannot reproduce it myself. The code seems fine. It might be an issue of how your IDE install and manage dependencies

 0
answered on Apr 4, 2018 at 11:39am  
@ashikh, Since this is a SDK-specific issue, I've created your post on the GitHub repo here. We'll have our C# experts look into this.

https://github.com/ringcentral/ringcentral-csharp-client/issues/27

 0



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us