Log in

View Full Version : How to send a COM object to a Web service


omairkhan
Jun 24, 2009, 10:17 PM
Can you please tell me how to send a COM object to a Web service...
As it give error that unable to generate XML code.
And in inner exception, it says:
"Unable to generate a temporary class (result=1).
error CS0122: 'System.__ComObject' is inaccessible due to its protection level
error CS0122: 'System.__ComObject' is inaccessible due to its protection level"

Please help me... :confused:

Perito
Jun 25, 2009, 04:23 AM
Is the subroutine that calls this declared as Private? Change its access to Public.