.NET Assembly used as COM object Exception

A

Angelo

Hi all,

I have developed a .NET assembly and registered it on my workstation
to be used as a COM object.

I call a new instance of this object from a script using the Windows
Scripting Host and it works great. However, when I throw an Exception
in .NET code, the Windows Scripting Host only shows

Error: Unspecified Error
Code: 80004005
Source: (null)

I want the message that I pass to my Exception( string Message ) to
show up in the 'Error' portion of the Scripting Host Error box.

I have even gone against Microsoft recommendation and thrown a
COMException directly with the same results as above. I have even
tried an inner Exception in my throwing Exception with the same
results as above.

Any suggestions will be appreciated.

Angelo
 
A

Angelo

Thanks Nicholas. I guess I'm back to popping up my own Messageboxes
with Exception details.

Angelo
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top