I have several web applications that use packages using WebActivator. On my local machine with IIS 7.5 Express, everything works fine, whether I test in Release or Debug versions. However, on my production machine with IIS 7.5, WebActivator does not actually start, so all the modules do not load, and I have to add the code back to the Global.asax.cs file.
Iβm stumped about where to even start looking - Googled and searched StackOverflow, but havenβt run into anyone who has similar problems. Is there something explicit that needs to be configured to run it?
Edit - added a quick activator sample, which is registered in Windows. The content of the function added to the Global.asax.cs file works fine on the production server, but never registers from the activator.
using System.Web.Mvc; using System; [assembly: WebActivator.PreApplicationStartMethod(typeof(Admin.App_Start.WebActivatorTestStart), "Start")] namespace Admin.App_Start { public static class WebActivatorTestStart { public static void Start() { System.Diagnostics.EventLog log = new System.Diagnostics.EventLog(); log.Source = ".NET Runtime"; log.WriteEntry("WebActivator Start", System.Diagnostics.EventLogEntryType.Information); } } }
source share