[assembly: WebActivator.PreApplicationStartMethod(typeof(MyApp.App_Start.StructureMapMvc), \"Start\")]
namespace MyApp.App_Start
{
public static class Structur
If your code is in a Web Site Project (ie, under the App_Code folder) you cannot use PreApplicationStartupMethod! You can use PostApplicationStartupMethod instead. The "Pre" method executes before global.asax *Application_Start* runs, while "Post" executes after.
I wasted a good hour or two before I figured this out, so hopefully this will help someone else avoid that!