In order to make Elmah.MVC package work in VB.NET projects as well, I've create ASP.NET MVC3 VB.NET application added WebActivator Nuget package (v.1.5.1), in App_Start folder inserted simple code, like
[assembly: WebActivator.PreApplicationStartMethod(typeof(Elmah.Mvc.Web.App_Start.ElmahMvc_Start), "Start")]
namespace Elmah.Mvc.Web.App_Start
{
public class ElmahMvc_Start
{
public static void Start()
{
Elmah.Mvc.Bootstrap.Initialize();
}
}
}
The project built fine, but I never hit Elmah.Mvc.Bootstrap.Initialize();
line.
Does WebActivator work with VB.NET? I wounder if not, cause a lot of different projects using WebActivator (Ninject, StructureMap etc.) are they supported in VB.NET?