Plugin: Add SignalR to Project

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
9 yıl önce
Hey,

I want to use signalR in my plugin and got everything form nuget. But now I was wondering where i should register the startup code? This is not working.

GET http://www.domain.be.local/signalr/hubs 404 (Not Found)


[assembly: OwinStartup(typeof (Plugin.Marketing.Newsletters.NewsletterStartup))]
namespace Plugin.Marketing.Newsletters
{
    public class NewsletterStartup
    {
        public void Configuration(IAppBuilder app)
        {
            // Any connection or hub wire up and configuration should go here
            app.MapSignalR();
        }
    }
}
9 yıl önce
Has no one tried to enable signalR into a plugin?
9 yıl önce
Nesse wrote:
Hey,

I want to use signalR in my plugin and got everything form nuget. But now I was wondering where i should register the startup code? This is not working.

GET http://www.domain.be.local/signalr/hubs 404 (Not Found)


[assembly: OwinStartup(typeof (Plugin.Marketing.Newsletters.NewsletterStartup))]
namespace Plugin.Marketing.Newsletters
{
    public class NewsletterStartup
    {
        public void Configuration(IAppBuilder app)
        {
            // Any connection or hub wire up and configuration should go here
            app.MapSignalR();
        }
    }
}



I have the same problem , Can I use Owin on my plugin for SignalR ?, can Any one help?
9 yıl önce
Hi,
You could try some suggests from this link:
http://stackoverflow.com/questions/8053229/signalr-hub-not-loading-in-iis-7-but-working-correctly-in-visual-studio
9 yıl önce
You need to make sure that Microsoft.Owin.Host.SystemWeb.dll exists in bin folder of NopCommerce application. This DLL contains the class to detect and execute the OwinStartup class.

So you should install this package for the Nop.Web project from Nuget as per following URL: https://www.nuget.org/packages/Microsoft.Owin.Host.SystemWeb/ or manually copy it to bin folder.
6 yıl önce
You just have to set owin:AutomaticAppStartup key value to true of appSettings in web.config of Nop.Web.

Also, I would like to know if you had successfully implemented SignalR in nopcommerce.
6 yıl önce
danger wrote:
You just have to set owin:AutomaticAppStartup key value to true of appSettings in web.config of Nop.Web.

Also, I would like to know if you had successfully implemented SignalR in nopcommerce.



I implement SignalR at nopcommerce plugin. You can take a look of this https://www.nopcommerce.com/p/2296/live-announcement-free.aspx plugin source code or you can take a look of https://www.nopcommerce.com/boards/t/40882/implement-signala-at-plugin-of-37-with-some-simple-steps.aspx post. It is same at 3.9.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.