Report Errors without recompiling my assemblies

.NET obfuscator and automated error reporting

Moderators: Luke Jefferson, melvyn.harbour, dom.smith

Report Errors without recompiling my assemblies

Postby raffaeu » Wed Apr 11, 2012 7: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();
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\" ...
raffaeu
 
Posts: 20
Joined: Mon Dec 12, 2011 9:58 pm
Location: Bermuda

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

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


Return to SmartAssembly 6

Who is online

Users browsing this forum: No registered users and 1 guest