开发者

Passing a parameter from the Telerik RadToolTipManager to a WCF service fails

开发者 https://www.devze.com 2023-02-08 21:08 出处:网络
When the RadToolTipManager calls the WCF web service it fails when trying to cast to an IDictionary contextDictionary where as when the web service is just a pure webservice the parameter correctly ca

When the RadToolTipManager calls the WCF web service it fails when trying to cast to an IDictionary contextDictionary where as when the web service is just a pure webservice the parameter correctly casts.

Why is this?

The code in questi开发者_StackOverflow中文版om

[WebMethod]
public string WebServiceMethodName(object context)
{
    // works
    IDictionary<string, object> contextDictionary = (IDictionary<string, object>) context;

}

[OperationContract]
public string WebServiceMethodName(object context)
{
    // fails
    IDictionary<string, object> contextDictionary = (IDictionary<string, object>) context;

}


Use Fiddler (http://www.fiddler2.com/fiddler2) to see the exact error message returned.

0

精彩评论

暂无评论...
验证码 换一张
取 消