Last post Apr 04, 2013 05:08 PM by Rion Williams
Apr 04, 2013 11:03 AM|kmcnet|LINK
Hello Everyone and thanks for your help in advance. I want to start using Signal R, bu am currently using VS 2010. I am a little confused about how to use install and use with VS 2010. Would someone be able to stepme through the specifics including which
pacakge to download? Any help would be greatly appreciated.
Apr 04, 2013 11:15 AM|Rion Williams|LINK
I'd recommend checking out the
Getting Started with SignalR tutorial found on this very site.
It will cover step-by-step the prerequisites that you need to use SignalR, the appropriate packages to access through NuGet and how to actually get your project up and running using SignalR.
You can find the actual NuGet Package information here. If you want to download the files without using NuGet, you can
visit the SignalR site and click the ZIP folder in the upper-right.
Apr 04, 2013 11:22 AM|kmcnet|LINK
Already did. Not great explaining when its vs 2010. I downloaded Web Tools 2012.2 but the tutorial says the installer won't work with VS 2010. Not sure what do do next.
Apr 04, 2013 11:38 AM|Rion Williams|LINK
You'll just need to either visit the SignalR site and download the appropriate files and add them to your Project. The easiest method would be to use NuGet to download the appropriate package and add it to your solution.
After doing that you should be able to follow the tutorial for the most part from Step 4 (Creating a new ChatHub class) by simply just creating a class that looks exactly like the one mentioned there :
public class ChatHub : Hub
public void Send(string name, string message)
// Call the broadcastMessage method to update clients.
Apr 04, 2013 12:22 PM|kmcnet|LINK
Thanks for the help. I went to
https://github.com/SignalR/SignalR/tree/master/.nuget and downloaded Nuget.core.dll and referenced in my project, however, that isnot working. What file do I need and where do I download it from?
Thanks for your patience and help.
Apr 04, 2013 12:41 PM|Rion Williams|LINK
You don't need to worry about grabbing NuGet from github. NuGet functions as an extension within Visual Studio (walkthrough for installing NuGet available here) to allow you to
more easily reference external libraries and packages within your projects.
You'll need to remove those references that you made and then take the following steps :
Installing the SignalR Package from NuGet
After installing NuGet, simply open your Project and take the following steps to actually add the appropriate SignalR files into your application :
After doing that, it should add the appropriate files within your Project so that you can continue working on the tutorial.
Apr 04, 2013 01:44 PM|kmcnet|LINK
Exactly what I needed. Thanks so much for the help!
Apr 04, 2013 04:39 PM|kmcnet|LINK
Sorry to reopen this, but one more question. When I try to add a SignalR Class, it does not appear in any of the options. Did I miss something on the install or is this because of VS 2010?
Apr 04, 2013 04:47 PM|kmcnet|LINK
Just closed the proect and reopened it. Now receiving error:
File C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft Corporation\NuGet Package Manager\2.2.40116.9051\Modules\NuGet\profile.ps1 cannot be loaded because the execution of scripts is disabled on this system. Please see
"get-help about_signing" for more details.
Apr 04, 2013 04:51 PM|Rion Williams|LINK
I don't believe the specified SignalR class is going to be available (as it is used within the Tutorial) however you should be able to just create a new class (much like you would for any other type of class) and copy the code used within
the tutorial (and posted above) within it.
As long as the base class inheirits from the Hub class, you should be fine.
Apr 04, 2013 04:53 PM|Rion Williams|LINK
I haven't encountered that issue regarding NuGet and scripts being unable to be executed. Although it looks like it was a previous issue that was fixed (Link). Have you tried restarting your
machine since installing NuGet and SignalR?
It looks like that issue had occured within SignalR in an earlier build (Link) but it has since been fixed as well.
Apr 04, 2013 04:57 PM|kmcnet|LINK
Any idea how I fix it?
Apr 04, 2013 05:08 PM|Rion Williams|LINK
I'm not terribly sure. Have you restarted both Visual Studio and your local machine?
If that doesn't fix it, you may want to try un-installing the NuGet Package Manager and reinstalling it.