Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/269.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 在DMP上使用mozilla 1.8.1.18调用dll方法时,参数丢失_C#_Dll_Service_Parameters_Dmp - Fatal编程技术网

C# 在DMP上使用mozilla 1.8.1.18调用dll方法时,参数丢失

C# 在DMP上使用mozilla 1.8.1.18调用dll方法时,参数丢失,c#,dll,service,parameters,dmp,C#,Dll,Service,Parameters,Dmp,这是Cisco 4400 DMP升级到Mozilla 1.8.1.18(固件版本5.3.5)后出现的问题 C#方法使用命令行(QueryString)参数调用DLL中的方法,并将此变量用作参数 以下是代码片段: public string Get_Channel_Orientation(int channelId) { ChannelService channelService = new ChannelService(); return channelService.GetRo

这是Cisco 4400 DMP升级到Mozilla 1.8.1.18(固件版本5.3.5)后出现的问题

C#方法使用命令行(QueryString)参数调用DLL中的方法,并将此变量用作参数

以下是代码片段:

public string Get_Channel_Orientation(int channelId)
{
    ChannelService channelService = new ChannelService();
    return channelService.GetRootOrientation(channelId);        
}    
channelId是一个查询字符串参数。在浏览器升级之前,此功能一直正常运行。 现在,发生的是channelId值始终为null。如果放置文字而不是QueryString参数,例如:

  return channelService.GetRootOrientation(123);  
即使使用升级的浏览器,它也能正常工作

即使在传递给服务方法时为null,如果您将channelId的值打印到控制台,它也是正确的(即,它是在URL中传递的值)


这种情况似乎是不可能的,因为它是服务器端的,不应该受到浏览器版本的影响,但在工作和非工作情况之间,我看不到其他区别。

您是否可以将其作为int-ref-channelId传递,或者将其分配给会话变量。。然后返回channelService.GetRootOrientation(会话[“channelId”]);您能否显示URL当前的传递方式,即调试器中的值。不幸的是,无法使用带有调试器的设备进行调试,因为它是一个封闭的Cisco机箱。调试的唯一方法是将值打印到控制台。我知道代码具有正确的值——由于某种原因,当它是URL参数时,它不会传递给服务。