title: Asp.net website loads error page in place of wanted ng-view
body: <p>I have an Asp.net (c#, <strong>not Asp.net MVC</strong>) web site.  </p>
  
  <p>Recently I added webform using angular.<br>
  Angular Routing script:  </p>
  
  <pre><code>app.config(function ($routeProvider) {
  $routeProvider
      .when("/Obligations", {
          templateUrl: "views/Obligation.html"
      })
      .when("/:Id", {
          templateUrl: "views/clients.html"
      })
      .when("/Edit/:Id/:Type", {
          templateUrl: "views/EditClient.html"
      })
      .otherwise({
          redirectTo: '/'
      })
  });
  </code></pre>
  
  <p>Web Form content:</p>
  
  <pre><code>&lt;asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"&gt;
    &lt;link rel="stylesheet" href="..." /&gt;
    &lt;script src="..."&gt;&lt;/script&gt;
    &lt;!--Relevante css and js links--&gt;
  &lt;/asp:Content&gt;
  &lt;asp:Content ClientIDMode="Static" ID="content2" runat="server" ContentPlaceHolderID="ContentPlaceHolder1"&gt;
    &lt;div ng-app="ClientsApp"&gt;
        &lt;ng-view&gt;&lt;/ng-view&gt;
    &lt;/div&gt;
  &lt;/asp:Content&gt;
  </code></pre>
  
  <p>In root folder I have "views" folder contains the html view files.<br>
  In development enviroment everything works fine.<br>
  But when I uploaded the version to server, I get something strange: in place of getting wanted view, I get default error page.<br>
  both development and production enviroment work on iis 8.5.</p>
  
  <p>I googled my problem by found nothing, most of similar issues are in Asp.net MVC, and answers seem unrelated.</p>
  
  <p>What can be the problem?</p>