Catch exception on expired license
When using the RESTful Engine with an expired license the application throws a 500 with an unhandled exception. I would suggest you improve your application by catching your exceptions and throwing meaningful error codes and messages to the client.
I get the exception when calling the version endpoint with an expired license. I tried uploading the Postman response but that doesn't work either. Below is the stack trace.
[LicenseException: Expired license key ]
net.windward.xmlreport.ProcessReport._init(Boolean ) +6115
net.windward.xmlreport.ProcessReport.init() +26
net.windward.api.csharp.Report.Init() +24
RESTfulEngine.WebApiApplication.InitLicenseAndEngine() in C:\agent_work\1\s\restfulengine\RESTfulEngine\Global.asax.cs:87
[HttpException (0x80004005): Expired license key ]
System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +520
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +176
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +165
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +267
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +341
[HttpException (0x80004005): Expired license key ]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +523
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +107
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +688
![](https://secure.gravatar.com/avatar/0fd726f263696c2b07a41794a7085e0f?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)