Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Visual Basic (https://www.askmehelpdesk.com/forumdisplay.php?f=469)
-   -   How to send a COM object to a Web service (https://www.askmehelpdesk.com/showthread.php?t=368755)

  • Jun 24, 2009, 10:17 PM
    omairkhan
    How to send a COM object to a Web service
    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:
  • Jun 25, 2009, 04:23 AM
    Perito

    Is the subroutine that calls this declared as Private? Change its access to Public.

  • All times are GMT -7. The time now is 11:24 AM.