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
:
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
Post a Comment