COM object in webservice

Discussion in 'ASP .Net Web Services' started by Cheung, Jeffrey Jing-Yen, May 27, 2004.

  1. Is there some sort of restriction for instantiating a COM object in a
    ..NET webservice? I have a method inside my webservice that instantiates
    a COM object, and returns a custom class, but if I return the custom
    class after I instantiate the COM object, I always get a garbled mess.
    I only assume there is an error thrown because I have procedures that
    write to a file on the server for error trapping purposes. When I look
    in the text file, it is empty. How can I safely error trap exceptions
    and ensure that have the right parameters to instantiate my COM?

    Regards,

    Jeff Cheung
     
    Cheung, Jeffrey Jing-Yen, May 27, 2004
    #1
    1. Advertising

  2. Cheung, Jeffrey Jing-Yen

    Joe H Guest

    if the web service is being called with anonymous credentials, then you
    probably wouldn't have the rights to write to a log file on the server's
    disk.

    "Cheung, Jeffrey Jing-Yen" <> wrote in message
    news:...
    > Is there some sort of restriction for instantiating a COM object in a
    > .NET webservice? I have a method inside my webservice that instantiates
    > a COM object, and returns a custom class, but if I return the custom
    > class after I instantiate the COM object, I always get a garbled mess.
    > I only assume there is an error thrown because I have procedures that
    > write to a file on the server for error trapping purposes. When I look
    > in the text file, it is empty. How can I safely error trap exceptions
    > and ensure that have the right parameters to instantiate my COM?
    >
    > Regards,
    >
    > Jeff Cheung
     
    Joe H, May 29, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. batista
    Replies:
    1
    Views:
    960
    Laurent Bugnion
    Jan 26, 2006
  2. batista
    Replies:
    0
    Views:
    585
    batista
    Jan 26, 2006
  3. Mark
    Replies:
    3
    Views:
    4,035
    Steven Cheng[MSFT]
    Jul 18, 2006
  4. Replies:
    0
    Views:
    158
  5. heinrich.elsigan
    Replies:
    2
    Views:
    186
    Willy Van den Driessche
    May 21, 2006
Loading...

Share This Page