none
Exception has been thrown by the target of an invocation. RRS feed

  • Question

  • Hi,

     I am getting this error “Exception has been thrown by the target of an invocation.”, while executing ExecuteXmlReader().  The stored procedure is returning an XML using FOR XML RAW. I am getting the correct output when I execute through the SQL Server 2005 Query analyser. But when I execute through command objects ExecuteXmlReader(), I am getting Exception has been thrown by the target of an invocation error.

     

    Any idea how can I solve this problem.

    Thursday, December 14, 2006 8:54 PM

All replies