[ExcelDNA] Hi, How to resove this error in IExcelAddIn AutoOpen?

37 views
Skip to first unread message

Ronghua Shi

unread,
Nov 5, 2017, 7:29:22 AM11/5/17
to Excel-DNA
the error message is in the attachment, Cloud you help me, thanks.
My programing environment is Excel 2016 + Win10 + VS2017 + .Net 4.5.1.
1.png
2.png
3.png
4.png

Caio Proiete

unread,
Nov 5, 2017, 12:57:47 PM11/5/17
to exce...@googlegroups.com
Hi Ronghua,

Start by adding a try...catch to get a reference to the `TargetInvocationException` you're getting, and inspect the `InnerException` to see if it can give you a better clue.

In addition, instead of sending screenshots of code, consider putting a small project that other can reproduce the error, and put it on GitHub.

Thanks,

Caio Proiete


On Sun, Nov 5, 2017 at 8:29 AM, Ronghua Shi <shirh1...@gmail.com> wrote:
the error message is in the attachment, Cloud you help me, thanks.
My programing environment is Excel 2016 + Win10 + VS2017 + .Net 4.5.1.

--
You received this message because you are subscribed to the Google Groups "Excel-DNA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to exceldna+unsubscribe@googlegroups.com.
To post to this group, send email to exce...@googlegroups.com.
Visit this group at https://groups.google.com/group/exceldna.
For more options, visit https://groups.google.com/d/optout.

Ronghua Shi

unread,
Nov 5, 2017, 10:07:45 PM11/5/17
to Excel-DNA
thanks, i had put the code on Github, the link is https://github.com/shirh19910112/DNATools ,Cloud you help me find the Error? thank you very much
best wishes,
Steven

在 2017年11月6日星期一 UTC+8上午1:57:47,Caio Proiete写道:
Hi Ronghua,

Start by adding a try...catch to get a reference to the `TargetInvocationException` you're getting, and inspect the `InnerException` to see if it can give you a better clue.

In addition, instead of sending screenshots of code, consider putting a small project that other can reproduce the error, and put it on GitHub.

Thanks,

Caio Proiete

On Sun, Nov 5, 2017 at 8:29 AM, Ronghua Shi <shirh1...@gmail.com> wrote:
the error message is in the attachment, Cloud you help me, thanks.
My programing environment is Excel 2016 + Win10 + VS2017 + .Net 4.5.1.

--
You received this message because you are subscribed to the Google Groups "Excel-DNA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to exceldna+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages