Red Gate forums :: View topic - Report Errors without recompiling my assemblies
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SmartAssembly 6
SmartAssembly 6 forum

Report Errors without recompiling my assemblies

Search in SmartAssembly 6 forum
Post new topic   Reply to topic
Jump to:  
Author Message
raffaeu



Joined: 12 Dec 2011
Posts: 20
Location: Bermuda

PostPosted: Wed Apr 11, 2012 7:33 pm    Post subject: Report Errors without recompiling my assemblies Reply with quote

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
View user's profile Send private message
DanielRose



Joined: 30 Oct 2009
Posts: 14
Location: Aachen, Germany

PostPosted: Thu Apr 12, 2012 11:40 am    Post subject: Reply with quote

You could reference an assembly that has been processed by smartassembly and let that assembly report the error for you.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic 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