Take the 2-minute tour ×

I created a wcf Rest service using net framework 4 and IIS 6. I use route table in global asa . It's working fine in my computer . When I Install it in Qa the service is not working.

When requesting the service I receive 404 error.

The problem is that ISAPI filter of IIS cannot map between the request and the code.

Created separate pool for IIS application. Please advice.

Web config

    <modules runAllManagedModulesForAllRequests="true">
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>


 void Application_Start(object sender, EventArgs e)


        private void RegisterRoutes()
            WebServiceHostFactory factory = new WebServiceHostFactory();
            RouteTable.Routes.Add(new ServiceRoute("Data", factory, typeof(DataHandler)));
            RouteTable.Routes.Add(new ServiceRoute("UserData", factory, typeof(UserData)));
            RouteTable.Routes.Add(new ServiceRoute("SetupData", factory, typeof(SetupData)));

share|improve this question
I do not have svc file . Therefore I set route table it's not a code problem. It's working in my compuer but not working in Qa –  Gregory Nozik Sep 15 '11 at 20:40
Then show us the global.asa file as well! –  marc_s Sep 15 '11 at 20:41
Can you please let us know what URLs you are using to access the site (in development and on your server), and whether you have installed under "Default Web Site" or an alias in IIS? –  vdoogs Sep 15 '11 at 20:55

1 Answer 1

up vote 1 down vote accepted

If you're going to use routing with IIS 6, there's some special considerations that need to be made for routing. Here is an article that walks through them. If you haven't taken care of these things, you're going to get 404s when you try to use your routes.

share|improve this answer
I already read the article . Choose firts option and it does not help. Furthermore I did not do anything in my computer with IIS 6 and it's worked. –  Gregory Nozik Sep 15 '11 at 21:14

Your Answer


