用vs创建一个工程把flashgateway.dll引入

Flash Remoting+ Visual Studio .NET学习总结


把窗体文件所有HTML代码删除,再加2行代码


Flash Remoting+ Visual Studio .NET学习总结

此时页面显示
Flash Remoting+ Visual Studio .NET学习总结


然后就能编写代码了


Flash Remoting+ Visual Studio .NET学习总结





然后是最重要的一步,我刚才已经简单的分析过,MM提供的这个网关是以HttpModle的形式实现,所以我们要在web.config中配置对其的调用.

在<system.web>节中加入

<httpModules>
  <add name="GatewayController" type="FlashGateway.Controller.GatewayController,flashgateway" />
    </httpModules>

网上的教程一般都忽略了这一点,如果是借用安装的时候那个web.config是没有问题的,如果是自己建立工程时候,不自行修改,是无法呼叫远程的方法的.请大家一定注意.



相关文章:

  • 2022-02-04
  • 2021-06-11
  • 2022-01-10
  • 2021-09-24
  • 2022-12-23
  • 2021-11-27
  • 2021-07-15
猜你喜欢
  • 2022-01-19
  • 2021-09-20
  • 2021-11-19
  • 2022-12-23
  • 2022-12-23
  • 2022-01-12
  • 2022-12-23
相关资源
相似解决方案