Automated Error Reporting to Bugtracker
kimpenhaus
Posts: 14 Bronze 1
Hi there,
are there any further samples or Docs regarding AER SDK?
What I am trying is to integrate AER into an ASP.NET MVC app. On that point where an exception is thrown it should be reported to a custom WCF service which does sort of consolidation (lookup if same ticket is already existent and if so - maybe it is already fixed in a later version). If a new ticket has to be created the service will do so. (containing stacktrace and logs as attachments on the ticket).
Is this a scenario which can be performed with SmartAssembly SDK?
Any help would be appreciated :-)
Greetings,
Marcus
are there any further samples or Docs regarding AER SDK?
What I am trying is to integrate AER into an ASP.NET MVC app. On that point where an exception is thrown it should be reported to a custom WCF service which does sort of consolidation (lookup if same ticket is already existent and if so - maybe it is already fixed in a later version). If a new ticket has to be created the service will do so. (containing stacktrace and logs as attachments on the ticket).
Is this a scenario which can be performed with SmartAssembly SDK?
Any help would be appreciated :-)
Greetings,
Marcus
Comments
I'm afraid I don't have any specific examples for SmartAssembly SDK that would be useful to you, but what you want to do is entirely possible. You can build a webservice that downloads error reports and examines the database to work out what information is needed to autolog a bug.
There is an SA SDK wiki that has some more information that may be helpful. This is pretty much in its' infancy and is a stopgap until the documentation can be improved, but there is a class reference doc and a few examples there.
thanks for your feedback - will checkout the wiki
I' m not sure what you mean with "that downloads error reports" - I thought that the AER sends active to an web-service.
My first thought was to use SaveReport instead of SendReport and send it to a custom non-sa webservice - which will query the bugtracker and in case of inserting a new ticket it stores the report in a shared folder from which sa could receive it (probably to deobfuscate the stack-trace e.g.)
Or am I able to customize the custom sa webservice more that just self-host it? That's what I understood in download the complete custom web-service from sa-site.
Thanks for your patience.
Greetings,
Marcus
Cheers,
Developer,
Red Gate .NET Tools
To get reports so that you can do something useful with them, you use the Database class. There is a detailed example of this in the SDK samples, but I have stripped the basic functionality down so you can see how to connect to the database and get a report as an XmlDocument.
thanks for the code - especially Alex for the existing code as JIRA adapter. Guess that will help me much out
I will let you know!
Kind regards,
Marcus.