Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7618521
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T03:25:31+00:00 2026-05-31T03:25:31+00:00

I am using AJAX-enable web services in my ASP.NET MVC3 application and I want

  • 0

I am using AJAX-enable web services in my ASP.NET MVC3 application and I want to inject some classes in to them. So I installed NInject.Wcf, set factory to Ninject.Extensions.Wcf.NinjectServiceHostFactory and next step is derive application class(MVCApplication in Global.asax) from NinjectWcfApplication, but when I have done this, IIS stopped to run my application, it tries to use StaticFile module rather than route request to controller.

How to fix this or how to implement NInject with WCF in other way?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T03:25:32+00:00Added an answer on May 31, 2026 at 3:25 am

    I finally figured out it, the reason why routes has not been setup correctly is because of default Global.asax template for ASP.NET MVC application, by default it defines

    void Application_Start() { ... }
    

    and since HttpApplication don’t have this method defined IIS call this method on start up. So when deriving from NinjectWcfApplication which have defined Application_Start method, we need to change default method to:

    protected override void Application_Start(object sender, EventArgs e)
    {
        .....
        base.Application_Start(sender, e);
    }
    

    if we don’t do this IIS will call NinjectWcfApplication.Application_Start instead of our Application_Start method.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing web based application using asp.net and ajax . Today I am
Our web application started out as a big, honkin' ASP.NET AJAX 'page' with oodles
Has anyone successfully used the AJAX-enabled ASP.NET Web Application wizard in Delphi 2007 to
I am developing a web application using asp.net framework 4.0. I am using so
HI folks, I have a .net application (vb.net) and I'm using the ajax control
We've been working with ASP.Net MVC2 based web app. We're using DataAnnotations for model
In vs2010, I start a new project > asp.net web application and get presented
I am building out an ajax enabled UI using webforms in asp.net. I really
I have been using web parts on my site since ASP.NET 2.0 came out.
We have a few sections of our application that are using AJAX.NET 5.7.25.1. Our

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.