Click here to Skip to main content
15,886,258 members
Home / Discussions / Web Development
   

Web Development

 
AnswerMessage Removed Pin
22-Aug-19 2:27
gitgit622-Aug-19 2:27 
QuestionBackgroungWork Pin
KGr2820-Aug-19 6:08
KGr2820-Aug-19 6:08 
Rant[REPOST] BackgroungWork Pin
Richard Deeming20-Aug-19 6:18
mveRichard Deeming20-Aug-19 6:18 
GeneralRe: [REPOST] BackgroungWork Pin
KGr2820-Aug-19 7:17
KGr2820-Aug-19 7:17 
QuestionRest API vs wpdb to connect to a separate database on one server Pin
Martin Kaspar13-Aug-19 7:28
Martin Kaspar13-Aug-19 7:28 
QuestionUnity source version control experiences? Pin
Member 1455222313-Aug-19 5:07
Member 1455222313-Aug-19 5:07 
AnswerRe: Unity source version control experiences? Pin
ZurdoDev16-Sep-19 3:58
professionalZurdoDev16-Sep-19 3:58 
QuestionSignalR Connection Problem - Version Mismatch Pin
Kevin Marois8-Aug-19 7:58
professionalKevin Marois8-Aug-19 7:58 
I following this article. Everything works great - from a browser.

What we're really after is to use SignalR in a WPF app, so during development I had been hosting in a Console app. Now, I want to host it in IIS.

For testing, I took this sample app and hosted it in IIS on our server. Like I said already, I can chat using from browser to browser.

Now, I'm trying to create a Console app that calls the Send method on the server from my PC:
class Program
 {
     private const string HUB_NAME = "ChatHub";

     private static IHubProxy HubProxy;

     static void Main(string[] args)
     {
         try
         {
             string url = "<a href="http://192.168.50.83:8062">http://192.168.50.83:8062</a>";

             var connection = new HubConnection(url);

             HubProxy = connection.CreateHubProxy(HUB_NAME);
             HubProxy.On<string, string>("send", HandleSendResponse);

             connection.StateChanged += Connection_StateChanged;
             connection.Error += Connection_Error;

             Console.WriteLine($"Connecting to hub named '{HUB_NAME}' at {url}");
             connection.Start().ContinueWith(task =>
             {
                 if (task.IsFaulted)
                 {
                     Console.WriteLine("Connection failed");
                     foreach (var ex in task.Exception.InnerExceptions)
                     {
                         Console.WriteLine(ex.Message);  // <================== EXCEPTION HERE
                     }
                 }
                 else
                 {
                     Console.WriteLine("Connection succeeded");
                 }
             });

         }
         catch (Exception e)
         {
             Console.WriteLine("EXCEPTION OCCURED" + Environment.NewLine + e.ToString());
         }

         Console.WriteLine("Press any key to quit");
         Console.ReadLine();
     }

     private static void Connection_Error(Exception obj)
     {
         Console.WriteLine($"Connection attempt threw '{obj.ToString()}'");
     }

     private static void Connection_StateChanged(StateChange obj)
     {
         Console.WriteLine($"Connection state is '{obj.NewState}'");

         if (obj.NewState == ConnectionState.Connected)
         {
             string[] args = new string[2];
             args[0] = "John Doe";
             args[1] = "Hello there!";

             HubProxy.Invoke("Send", args).ContinueWith(task =>
             {
                 if (task.IsFaulted)
                 {
                     Console.WriteLine("There was an error calling Send: {0}", task.Exception.GetBaseException());
                     Console.WriteLine(task.Status.ToString());
                 }
                 else
                 {
                     Console.WriteLine("Send Complete.");
                 }
             }).Wait();
         }
     }

     private static void HandleSendResponse(string name, string message)
     {
         Console.WriteLine($"Server returned: '{message}' from '{name}'");
     }
 }
I'm getting the exception "You are using a version of the client that isn't compatible with the server. Client version 2.0, server version 1.3."

This looks pretty straightforward, but I've checked twice - both the server and client console app are using SignalR 2.0.0.

In the case of the browser, the jquery versions also look up to date, but my console app should care about that.

I've Googled this and everyone seems ot say the same thing as the message. But from what I can see the versions are correct.

Anyone have any ideas?
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.

AnswerRe: SignalR Connection Problem - Version Mismatch Pin
Member 1291556124-Sep-20 13:19
Member 1291556124-Sep-20 13:19 
QuestionAsp.Net Web API Installer Pin
Kevin Marois5-Aug-19 5:52
professionalKevin Marois5-Aug-19 5:52 
QuestionCan someone help me understand this error? - HTTP Error 403.14 - Forbidden Pin
GungaDin161-Aug-19 6:45
GungaDin161-Aug-19 6:45 
AnswerRe: Can someone help me understand this error? - HTTP Error 403.14 - Forbidden Pin
ZurdoDev1-Aug-19 8:07
professionalZurdoDev1-Aug-19 8:07 
AnswerRe: Can someone help me understand this error? - HTTP Error 403.14 - Forbidden Pin
Regina Hawk13-Aug-19 4:31
Regina Hawk13-Aug-19 4:31 
QuestionI keep getting error $(...).fileupload is not a function. Pin
KGr2830-Jul-19 4:38
KGr2830-Jul-19 4:38 
AnswerRe: I keep getting error $(...).fileupload is not a function. Pin
Afzaal Ahmad Zeeshan30-Jul-19 5:41
professionalAfzaal Ahmad Zeeshan30-Jul-19 5:41 
GeneralRe: I keep getting error $(...).fileupload is not a function. Pin
KGr2830-Jul-19 7:35
KGr2830-Jul-19 7:35 
GeneralRe: I keep getting error $(...).fileupload is not a function. Pin
Afzaal Ahmad Zeeshan30-Jul-19 8:55
professionalAfzaal Ahmad Zeeshan30-Jul-19 8:55 
GeneralRe: I keep getting error $(...).fileupload is not a function. Pin
KGr2830-Jul-19 9:12
KGr2830-Jul-19 9:12 
GeneralRe: I keep getting error $(...).fileupload is not a function. Pin
Afzaal Ahmad Zeeshan30-Jul-19 12:28
professionalAfzaal Ahmad Zeeshan30-Jul-19 12:28 
GeneralRe: I keep getting error $(...).fileupload is not a function. Pin
KGr2831-Jul-19 3:38
KGr2831-Jul-19 3:38 
GeneralRe: I keep getting error $(...).fileupload is not a function. Pin
Afzaal Ahmad Zeeshan31-Jul-19 8:17
professionalAfzaal Ahmad Zeeshan31-Jul-19 8:17 
GeneralRe: I keep getting error $(...).fileupload is not a function. Pin
KGr2831-Jul-19 8:19
KGr2831-Jul-19 8:19 
QuestionHow to generate complex Multi-Color-Gradients with PHP? Pin
Member 1453705321-Jul-19 8:23
Member 1453705321-Jul-19 8:23 
AnswerRe: How to generate complex Multi-Color-Gradients with PHP? Pin
Richard MacCutchan21-Jul-19 21:13
mveRichard MacCutchan21-Jul-19 21:13 
QuestionWhen trying to reload DataTable I get error:Uncaught TypeError: Cannot set property 'data' of null Pin
KGr289-Jul-19 4:49
KGr289-Jul-19 4:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.