部署到服务器时找不到信号器自定义方法 [英] Signalr custom methods are not found when deploy to server

查看:91
本文介绍了部署到服务器时找不到信号器自定义方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



我在集线器类中声明了一些自定义方法,如下所示;



Hello,

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

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





在localhost服务器上运行时,运行正常。自动生成的信号器/集线器脚本显示所有方法。



但是,当我将其部署到IIS服务器(专业Web服务器)时,它无法成功运行。自动生成的信号器/集线器脚本没有显示任何自定义方法。



我在服务器上没有自定义方法成功测试了早期版本的应用程序。但是现在,在添加自定义方法之后,只有以前的方法(非自定义)工作正常而不是修改后的自定义方法。



有什么建议吗?



我尝试过:



我尝试将signalr / hubs脚本写为每个生成的localhost脚本并部署到服务器。但是,它没有用。

也尝试在冲浪时找到多个解决方案,但没有人解决问题。



也尝试驼色脚本姓名和电话,但没有奏效。据我所知,在camel脚本中,Get_Connect被解释为get_Connect。我在信号器/集线器脚本中交叉检查。



问题已解决。

我所知道的问题是,部署的应用程序服务器永远不会被特定文件中的更改更新。要解决此问题,我将从服务器中删除整个项目并重新上传。这解决了我的问题。



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.

推荐答案

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.


这篇关于部署到服务器时找不到信号器自定义方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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