AngularJS routage ne fonctionne pas après le site hébergé sur IIS

Nous créons SPA technique utilisant AngularJS dans ASP.NET framework MVC,AngularJS routage entre les pages fonctionnent très bien lorsqu'il est exécuté à partir de VS2013,mais après avoir accueilli la demande dans IIS7.5 de routage ne fonctionne pas,

Script De Routage:

   var appRoot = angular.module('main', ['ngRoute', 'ngGrid', 'ngResource']);     //Define the main module

    appRoot
        .config(['$routeProvider', function ($routeProvider) {
            //Setup routes to load partial templates from server. TemplateUrl is the location for the server view (Razor .cshtml view)
            $routeProvider
                .when('/home', { templateUrl: '/home/main', controller: 'HomeController' }) .otherwise({ redirectTo: '/home' });
        }])
        .controller('RootController', ['$scope', '$route', '$routeParams', '$location', function ($scope, $route, $routeParams, $location) {
            $scope.$on('$routeChangeSuccess', function (e, current, previous) {
                $scope.activeViewPath = $location.path();
            });
        }]);

Index.html:

 <li class="mt" data-ng-class="{active : activeViewPath==='/home'}">
                    <a href='#/home'>
                        <i class="fa fa-dashboard"></i>
                        <span>Dashboard Home</span>
                    </a>
                </li>


  <div class="col-lg-9 main-chart" ng-view="">
                </div>

Structure De Projet:

AngularJS routage ne fonctionne pas après le site hébergé sur IIS

OriginalL'auteur Ravuthasamy | 2015-02-23