locked
IDictionary error in web service. RRS feed

  • Question

  • User1996548659 posted

    Dear All,

    I have created simple web service for store the log into database.

    I have created one following method but when I running the web service I am getting following error.

    If i am removeing parameter (Exception ex) from method then it work. But I need this in function.

    Method: 

    [WebMethod]
    public string LogActivity(String ActivityLevel, String MethodName, String Description, Exception ex, String ModuleName)
    {}

    Error: "Cannot serialize member System.Exception.Data of type System.Collections.IDictionary, because it implements IDictionary".

    Can anyone please help me hor to resolve this issue ?

    Thanks,

    Harish

    Wednesday, February 27, 2013 1:39 AM

Answers