Click here to Skip to main content
15,889,200 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello,

I had declared some custom methods in hub class like as given below;

C#
[HubMethodName("hubconnect")]
       public void Get_Connect(String username,String userid,String connectionid)
       {
           ....
       }


When run on localhost server, it runs fine. The auto generated signalr/hub script shows all methods.

But, when i deploy it to IIS server (professional web server), it failed to run successfully. The auto generated signalr/hub script didn't show any custom methods.

I tested successfully earlier version of an application without custom methods on server. But now, after addition of custom methods, only the previous methods(non-custom) are working fine and not the modified custom methods.

Any suggestions?

What I have tried:

I try to write signalr/hubs script as per generated localhost script and deploy to server. But, it didn't work.
Also try multiple solutions found on surfing, but no one solve problem.

Also try camel script names and calls, but didn't work. As per my knowledge, in camel script, Get_Connect gets interpreted at get_Connect. I cross check it in signalr/hubs script.

Problem Solved.
What the issue i comes to know is that, the application deployed to server is never get updated by the changes made in particular files. To solve this issue, i would delete entire project from server and re-upload it. This solves my problem.
Posted
Updated 13-May-16 21:11pm
v4

1 solution

Quote:
Problem Solved.
What the issue i comes to know is that, the application deployed to server is never get updated by the changes made in particular files. To solve this issue, i would delete entire project from server and re-upload it. This solves my problem.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900