Почему мой хост (softsyshosting.com) не поддерживает обработчики событий BeginRequest и EndRequest?

Я слышал хорошие отзывы о Softsys Hosting и решил перенести свое решение ASP.NET MVC на них. Но это не будет работать на них. Я смог определить проблему с помощью моих обработчиков событий BeginRequest. Если бы они были у меня, я бы получил ошибку. Вот мой код

protected void Application_Start()
{
    RegisterRoutes(RouteTable.Routes);
    this.BeginRequest += new EventHandler(MvcApplication_BeginRequest);
    this.EndRequest += new EventHandler(MvcApplication_EndRequest);
} 

void MvcApplication_EndRequest(object sender, EventArgs e) 
{
}

void MvcApplication_BeginRequest(object sender, EventArgs e) 
{
}

Я мог воспроизвести проблему, просто создав приложение ASP.NET MVC по умолчанию и добавив приведенный выше код. Странно то, что этот код отлично работал на моем старом хосте, и он зависал только на моем новом (общем) хосте. Если у меня есть эти обработчики событий в моем коде, я получаю эту ошибку:

Server Error in '/' Application.   Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.] System.Web.PipelineModuleStepContainer.GetStepArray(RequestNotification notification, Boolean isPostEvent) +27 System.Web.PipelineModuleStepContainer.GetEventCount(RequestNotification notification, Boolean isPostEvent) +11 System.Web.PipelineStepManager.ResumeSteps(Exception error) +205 System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb) +91 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +514

Я пытался устранить неполадки с помощью Softsys, но они не очень помогли, в основном они только подтвердили, что я включил «ASP.NET Pipeline (MVC)». функциональность в моей панели управления администратора.

Может кто-то:

Tell me if I've coded something wrong Show me a work-around Explain to me why this error is occuring on one host and not the other.

Ответы на вопрос(2)

Ваш ответ на вопрос