This project is read-only.

webservice异常:Cannot instantiate Type [SoapHttpClientProxy_6d149d0bd2754c0cbd377e65d6869d61] using ctor [Void .ctor()] : '无法反射方法 SoapHttpClientProxy_6d149d0bd2754c0cbd377e65d6869d61重载方法.

Sep 27, 2011 at 9:42 AM

异常报错信息:

Cannot instantiate Type [SoapHttpClientProxy_6d149d0bd2754c0cbd377e65d6869d61] using ctor [Void .ctor()] : '无法反射方法 SoapHttpClientProxy_6d149d0bd2754c0cbd377e65d6869d61.IsQZMCCEmployee。'

服务端(实现层)

        [WebMethod(Description = "是否为 组织下的员工。<br/>(<font color=\"red\">返回:true 或 false</font>)", MessageName = "IsQZMCCEmployeeByUserID")]
        public bool IsQZMCCEmployee(int userID)
        {
            return true;
        }

         [WebMethod(Description = "是否为 组织下的员工<br/>(<font color=\"red\">返回:true 或 false</font>)", MessageName = "IsQZMCCEmployeeByUserName")]
        public bool IsQZMCCEmployee(string userName)
        {
            return false;
        }

客户端(接口层)

        bool IsQZMCCEmployee(int userID);

       bool IsQZMCCEmployee(string userName);

 

当使用spring.net 1.3.1时,出现如上异常.

升级为spring.net 1.3.2时,异常解决.