Report Errors without recompiling my assemblies

raffaeuraffaeu Posts: 28
edited April 12, 2012 6:40AM in SmartAssembly
Hello everybody, we are heavily using SA error reporting feature in our projects and so far we were able to accomplish this task just by recompiling the assembly (.exe or .dll) using the SA MsBuild task.
Right now I am facing a different issue because I am working on an assembly that can't be recompiled by SA for a lot of different reasons so I am wondering if there is any way that I can use SA error reporting feature without recompiling my assembly.
I saw with reflector that this is the code used to report an error:
Exception exc = Server.GetLastError().GetBaseException();
SmartAssembly.ReportException.ExceptionReporting.Report(exc);
So I replicated this code but when the debugger hit the second line I receive the following exception:
"An exception has been passed to SmartAssembly, however this assembly has not been processed yet by SmartAssembly" ...

Comments

Sign In or Register to comment.