请用过fms和.net for remoting的进来帮帮忙啊,急死了

zclzy520 2007-12-08 04:10:19
fms代码如下:

application.RemotingServerURL = " http://localhost/gamecs/gateway.aspx";
NetServices.setDefaultGatewayUrl(application.RemotingServerURL);
application.RoomRemoting = NetServices.createGatewayConnection();
application.RoomRemotingService = application.RoomRemoting.getService("ddzApp.ddz", application);

application.RoomRemotingService.checkUser(userInfo.strUserName,userInfo.strUserPwd);
application.checkUser_Result=function(str)
{
trace(str);
}

ddz.cs代码如下:
using System;
using System.Data;
using System.Data.OleDb;
using System.Configuration;

namespace gameCS.ddzApp
{
public class ddz
{
public ddz()
{
//
// TODO: 在此处添加构造函数逻辑
//
}
public string checkUser(string userName,string userPwd)
{
string str;
str="abcdef";
return str;
}
}
}


结果在fms里 trace(str);没有返回值,根本就没有运行,请帮忙看看是什么原因啊?
...全文
54 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
i三千 2008-01-16
  • 打赏
  • 举报
回复
http://www.cnblogs.com/yao/archive/2008/01/16/1041131.html
zclzy520 2007-12-10
  • 打赏
  • 举报
回复
能有人帮忙吗?
zclzy520 2007-12-08
  • 打赏
  • 举报
回复
一定要顶到有这方面的高手看到为止
zclzy520 2007-12-08
  • 打赏
  • 举报
回复
怎么没人顶啊?我就不信没人来看
zclzy520 2007-12-08
  • 打赏
  • 举报
回复
没有人顶啊,我自己来顶,请做过fms的兄弟帮帮忙啊
zclzy520 2007-12-08
  • 打赏
  • 举报
回复
application.onConnect=function(newClient,userInfo)
{
var i=new Number;
application.RemotingServerURL = " http://localhost/gamecs/gateway.aspx";
NetServices.setDefaultGatewayUrl(application.RemotingServerURL);
application.RoomRemoting = NetServices.createGatewayConnection();
application.RoomRemotingService = application.RoomRemoting.getService("ddzApp.ddz", application);

application.RoomRemotingService.checkUser(userInfo.strUserName,userInfo.strUserPwd);
application.checkUser_Result=function(str)
{
trace(str);
}
}
}
zclzy520 2007-12-08
  • 打赏
  • 举报
回复
帮帮忙啊,大侠们

62,042

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧