<WebMethod(), TraceExtension(oProcess)> _ Public Function MyMethod() As String ... Return lcXml End FunctionThe Sub() parameter of the TraceExtension attribute code is an object. If I put a "Test", or a value such as 12, instead of oProcess, this will work. But, as soon as I am trying to pass oProcess, I am always getting this error. oProcess exists and can be used inside this method. But, at the WebMethod() line, it is not accepted. So, how are we suppose to pass an object to a soap extension?