asp.net - VB.Net Error object in C# -


i don't think there good way this...

but have vb.net dll has error handling method. good, , want use in c#.net site.

so add vb.net dll c# project.

but wait! vb.net error handler method requires 'microsoft.visualbasic.errobject' !


hmm.. possible create such data type in c#? type of conversion?

or ugly , should forget trying outrageous , restart project in vb.net?

*note not going change required data type in dll

thanks!

you can add reference microsoft.visualbasic dll c# project.

right-click references in solution explorer click add reference,then search microsoft.visualbasic:

enter image description here

how to: add or remove references using add reference dialog box


but in general suggest use .net error handling exceptions inherit or system.exception , support using try-catch-finally.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -