| Author |
Message |
raffaeu
Joined: 12 Dec 2011 Posts: 20 Location: Bermuda
|
Posted: Wed Apr 11, 2012 7:33 pm Post subject: Report Errors without recompiling my assemblies |
|
|
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: |
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:
| Quote: |
| "An exception has been passed to SmartAssembly, however this assembly has not been processed yet by SmartAssembly" ... |
|
|
| Back to top |
|
 |
DanielRose
Joined: 30 Oct 2009 Posts: 12 Location: Aachen, Germany
|
Posted: Thu Apr 12, 2012 11:40 am Post subject: |
|
|
| You could reference an assembly that has been processed by smartassembly and let that assembly report the error for you. |
|
| Back to top |
|
 |
|
|
All times are GMT + 1 Hour
|
| Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group