首页 新闻 赞助 找找看

c# 动态连接 web service问题

0
悬赏园豆:30 [已解决问题] 解决于 2009-05-18 14:38

        ///<summary>
        ///调用指定的方法
        ///</summary>
        ///<param name="methodName">方法名,大小写敏感</param>
        ///<param name="args">参数,按照参数顺序赋值</param>
        ///<returns>Web服务的返回值</returns>
        public object Invoke(string methodName, params object[] args)
        {
            System.Reflection.MethodInfo mi = agentType.GetMethod(methodName);
            return mi.Invoke(agent, args);
        }

说明:agent=System.Activator.CreateInstance(agentType);

断点运行到 return mi.Invoke(agent, args);总会有下边的提示框,English学的不是很好,大意是说debugging监视器不能监视远程服务器的运行?当把web service放到本地的时候,就会断点到web service代码中的(没有下边的错误提示了),我想问这个错误提示能避免么?要怎样设置web service才会远程调用的时候断点到return mi.Invoke(agent, args)没有错误提示?
我已近在baidu搜过了,所以不了解的朋友不要在百度搜点没用的解决方法过来忽悠。

unable to automatically step into the server.connecting to the server machine 'sh-sfap-01',.the microsoft visual studio remote debugging monitor(MSVSMON.EXE) does not appear to be running on the remote computer.please see help for assistance

驢騎士的主页 驢騎士 | 初学一级 | 园豆:0
提问于:2009-05-15 09:32
< >
分享
最佳答案
0

远程服务器不允许调试,断点是调试不进去的,本机的服务当然可以咯。至于怎么远程调试没用过。

探花客客 | 初学一级 |园豆:65 | 2009-05-15 16:48
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册