public AssemblyVersionProvider(HttpContextBase httpContext) { this.version = httpContext .IfExists(ctx => ctx.ApplicationInstance) .IfExists(i => i.GetType().BaseType.Assembly.GetName().Version.ToString()); }