Report Errors without recompiling my assemblies

.NET obfuscator and automated error reporting

Report Errors without recompiling my assemblies

Postby raffaeu » Wed Apr 11, 2012 6:33 pm

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:
Code: Select all
Exception exc = Server.GetLastError().GetBaseException();

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" ...
Posts: 20
Joined: Mon Dec 12, 2011 8:58 pm
Location: Bermuda

Postby DanielRose » Thu Apr 12, 2012 10:40 am

You could reference an assembly that has been processed by smartassembly and let that assembly report the error for you.
Posts: 20
Joined: Fri Oct 30, 2009 8:29 am
Location: Aachen, Germany

Return to SmartAssembly 6

Who is online

Users browsing this forum: No registered users and 0 guests