Microsoft.aspnet.signalr.js 2.2.2'到'microsoft.aspnet.signalr.js 1.0.0-rc1'失败 [英] Microsoft.aspnet.signalr.js 2.2.2' to 'microsoft.aspnet.signalr.js 1.0.0-rc1' failed

查看:109
本文介绍了Microsoft.aspnet.signalr.js 2.2.2'到'microsoft.aspnet.signalr.js 1.0.0-rc1'失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Visual Studio 2010中的asp.net Web应用程序进行signalR聊天框。



当我安装Install-Package Microsoft.AspNet.SignalR时。使用Nuget图库的SystemWeb -Version 2.2.2显示以下错误



Microsoft.AspNet.SignalR.JS 2.2.2'到'Microsoft.AspNet.SignalR.JS 1.0。 0-rc1'失败了。无法找到与'Microsoft.AspNet.SignalR.JS 1.0.0-rc1'兼容的'Microsoft.AspNet.SignalR'版本。





如何解决请做必要的



我的代码如下



Global.asax代码如下



void Application_Start(object sender,EventArgs e)

{

RouteTable.Routes.MapHubs();

}





LetChat.cs页面代码如下



[HubName(myChatHub)]

公共类LetsChat:Microsoft.AspNet.SignalR.Hub

{

public void send(string message)

{

Clients.All.addMessage(message);

}

}





Chat.aspx代码如下















$(function(){

var IWannachat = $ .connection.hub;

IWannachat.client.addMessage =功能(消息){

}







在上面的代码chat.aspx页面Iwannachat。客户在iwannachat .client intellegence没有显示之后。客户端没有显示我只手动输入





如何解决此错误。



我尝试过:



i我正在使用Visual Studio 2010中的asp.net web应用程序进行signalR聊天框。



当我安装Install-Package时,Microsoft.AspNet.SignalR.SystemWeb -Version 2.2.2使用Nuget图库显示以下错误



Microsoft.AspNet.SignalR.JS 2.2.2'到'Microsoft.AspNet.SignalR.JS 1.0.0-rc1'失败。无法找到与'Microsoft.AspNet.SignalR.JS 1.0.0-rc1'兼容的'Microsoft.AspNet.SignalR'版本。





如何解决请做必要的



我的代码如下



Global.asax代码如下



void Application_Start(object sender,EventArgs e)

{

RouteTable.Routes.MapHubs();

}





LetChat.cs页面代码如下



[HubName(myChatHub)]

公共类LetsChat:Microsoft.AspNet.SignalR.Hub

{

public void send(string message)

{

Clients.All.addMessage(message);

}

}





Chat.aspx代码如下















$(function(){

var IWannachat = $ .connection.hub;

IWannachat.client.addMessage =功能(消息){

}







在上面的代码chat.aspx页面Iwannachat。客户在iwannachat .client intellegence没有显示之后。客户端没有显示我只手动输入





如何解决此错误

解决方案

(function(){

var IWannachat =


.connection.hub;

IWannachat.client.addMessage =功能(消息){

}







以上代码chat.aspx页面Iwannachat。客户端iwannachat .client intellegence没有显示。客户端没有显示我只手动输入





如何解决这个错误。



我尝试过:


$ b $我正在使用Visual Studio 2010中的asp.net web应用程序进行signalR聊天框。



当我安装Install-Package时Microsoft.AspNet.SignalR.SystemWeb -Version 2.2.2使用Nuget图库显示以下错误



Microsoft.AspNet.SignalR.JS 2.2.2'到'Microsoft.AspNet.SignalR.J S 1.0.0-rc1'失败了。无法找到与'Microsoft.AspNet.SignalR.JS 1.0.0-rc1'兼容的'Microsoft.AspNet.SignalR'版本。





如何解决请做必要的



我的代码如下



Global.asax代码如下



void Application_Start(object sender,EventArgs e)

{

RouteTable.Routes.MapHubs();

}





LetChat.cs页面代码如下



[HubName(myChatHub)]

公共类LetsChat:Microsoft.AspNet.SignalR.Hub

{

public void send(string message)

{

Clients.All.addMessage(message);

}

}





Chat.aspx代码如下















(function(){

var IWannachat =

i am doing the signalR chat box using asp.net web application in visual studio 2010.

when i install the Install-Package Microsoft.AspNet.SignalR.SystemWeb -Version 2.2.2 using Nuget gallery shows following error

Microsoft.AspNet.SignalR.JS 2.2.2' to 'Microsoft.AspNet.SignalR.JS 1.0.0-rc1' failed. Unable to find a v
ersion of 'Microsoft.AspNet.SignalR' that is compatible with 'Microsoft.AspNet.SignalR.JS 1.0.0-rc1'.


how to solve please do the needful

My code as follows

Global.asax code as follows

void Application_Start(object sender, EventArgs e)
{
RouteTable.Routes.MapHubs();
}


LetChat.cs page code as follows

[HubName("myChatHub")]
public class LetsChat : Microsoft.AspNet.SignalR.Hub
{
public void send(string message)
{
Clients.All.addMessage(message);
}
}


Chat.aspx code as follows







$(function () {
var IWannachat = $.connection.hub;
IWannachat.client.addMessage = function (message) {
}



in the above code chat.aspx page the Iwannachat. client after iwannachat .client intellegence is not showing. the client is not showing i only typed manually


how to solve this error.

What I have tried:

i am doing the signalR chat box using asp.net web application in visual studio 2010.

when i install the Install-Package Microsoft.AspNet.SignalR.SystemWeb -Version 2.2.2 using Nuget gallery shows following error

Microsoft.AspNet.SignalR.JS 2.2.2' to 'Microsoft.AspNet.SignalR.JS 1.0.0-rc1' failed. Unable to find a v
ersion of 'Microsoft.AspNet.SignalR' that is compatible with 'Microsoft.AspNet.SignalR.JS 1.0.0-rc1'.


how to solve please do the needful

My code as follows

Global.asax code as follows

void Application_Start(object sender, EventArgs e)
{
RouteTable.Routes.MapHubs();
}


LetChat.cs page code as follows

[HubName("myChatHub")]
public class LetsChat : Microsoft.AspNet.SignalR.Hub
{
public void send(string message)
{
Clients.All.addMessage(message);
}
}


Chat.aspx code as follows







$(function () {
var IWannachat = $.connection.hub;
IWannachat.client.addMessage = function (message) {
}



in the above code chat.aspx page the Iwannachat. client after iwannachat .client intellegence is not showing. the client is not showing i only typed manually


how to solve this error

解决方案

(function () {
var IWannachat =


.connection.hub;
IWannachat.client.addMessage = function (message) {
}



in the above code chat.aspx page the Iwannachat. client after iwannachat .client intellegence is not showing. the client is not showing i only typed manually


how to solve this error.

What I have tried:

i am doing the signalR chat box using asp.net web application in visual studio 2010.

when i install the Install-Package Microsoft.AspNet.SignalR.SystemWeb -Version 2.2.2 using Nuget gallery shows following error

Microsoft.AspNet.SignalR.JS 2.2.2' to 'Microsoft.AspNet.SignalR.JS 1.0.0-rc1' failed. Unable to find a v
ersion of 'Microsoft.AspNet.SignalR' that is compatible with 'Microsoft.AspNet.SignalR.JS 1.0.0-rc1'.


how to solve please do the needful

My code as follows

Global.asax code as follows

void Application_Start(object sender, EventArgs e)
{
RouteTable.Routes.MapHubs();
}


LetChat.cs page code as follows

[HubName("myChatHub")]
public class LetsChat : Microsoft.AspNet.SignalR.Hub
{
public void send(string message)
{
Clients.All.addMessage(message);
}
}


Chat.aspx code as follows








(function () {
var IWannachat =


这篇关于Microsoft.aspnet.signalr.js 2.2.2'到'microsoft.aspnet.signalr.js 1.0.0-rc1'失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆