JunXiu

          Flex RPC錯誤整理(轉載)

          最近不少網友反映使用Fluorine實現Flex與.NET通信老是出錯,原因肯定不一樣,為節約時間,我想有必要整理一下Flex RPC常見錯誤。此處先整理一下Flash Remoting方面的,后續會加上HTTP Service和Web Service的。

          一、Flex Remoting

          1. Channel definition, mx.messaging.channels.RTMPChannel, can not be found...:最新版的Fluorined在services-config.xml中新增了RTMP Channel,主要是用來配 置Flex Messaging,編譯時需要FDS.swc支持,當然如果不需要此功能可以注釋掉channel-definition這個節點。
          2. RPC Fault faultString="The requested type... is not accessible":Flash Remoting服務名不對。詳見Flash Remoting支持的遠程服務
          3. RPC Fault faultString="Could not find a suitable method with name ..." :找不到對應的方法。首選看方法名對不對,再看方法的參數個數, 參數類型,還要檢查返回數據的類型。關于數據的類型詳見Flex AS3數據類型轉換成Fluorine數據類型Fluorine .NET數據類型轉換成Flex AS3數據類型
          4. NetConnection.Call.Failed: HTTP: Status 404: url...: '虛擬主機的域名/子目錄/Gateway.aspx'":沒將Root URL設置為虛擬主機的域名。詳見Flex Bulider 2與Flash cs3的發布文件
          5. RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed errorNetConnection.Call.Failed: HTTP: Status 404: url: 'http://localhost/Gateway.aspx...'": Root URL中包含的Context與Context root中設置的不一致。
          6. [RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Security.Error error Error #2048...: 安全沙箱沖突
          7. RPC Fault faultString="MessagingError message='Destination 'fluorine' either does not exist or the destination has no channels defined (and the application does not define any default channels.)'" faultCode="InvokeFailed" faultDetail="Couldn't establish a connection to 'fluorine'"...:FluorineFX沒配置或destination 沒有定義channels(默認是fluorine),詳見配置支持Fluorine Remoting的Web應用
          8. ReferenceError: Error #1056: 無法為 ...創建屬性...:當使用[RemoteClass(alias="XXX")],客戶端與服務器端Value Object映射時屬性名不一 致。

          二、Http Service

          1. faultCode:Server.Proxy.Request.Failed faultString:'HTTP/1.1 404 Not Found' faultDetail:'HTTP/1.1 404 Not Found':url錯誤。
          2. faultCode:Channel.Security.Error faultString:'Security error accessing url' faultDetail:'Destination: DefaultHTTP':不使用代理時遇到 安全沙箱沖突。
          3. The URL specified XXX is not allowed by the selected destination 'DefaultHTTP:使用默認終端代理時遇到安全沙箱沖突。
          4. No destination with id XXX is registered with any service/MessagingError message='Destination 'students' either does not exist or the destination has no channels defined (and the application does not define any default channels.)':.使用命名終端代理時,destination不一致。

          posted on 2010-08-11 08:35 junlin 閱讀(368) 評論(0)  編輯  收藏


          只有注冊用戶登錄后才能發表評論。


          網站導航:
           

          導航

          <2010年8月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          2930311234

          統計

          常用鏈接

          留言簿

          隨筆分類

          隨筆檔案

          文章檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 定南县| 安福县| 惠安县| 岗巴县| 佳木斯市| 莱西市| 渭南市| 兴安盟| 缙云县| 聂荣县| 丰城市| 尤溪县| 庆云县| 霞浦县| 息烽县| 泸西县| 汝城县| 海口市| 仁怀市| 华容县| 从化市| 双峰县| 蒙城县| 富裕县| 白沙| 永城市| 石棉县| 克山县| 清水县| 石阡县| 武义县| 江孜县| 临沂市| 华亭县| 兴国县| 天门市| 曲周县| 东台市| 临桂县| 临夏市| 迭部县|