0

I have an Asp.net (c#, not Asp.net MVC) web site.

Recently I added webform using angular.
Angular Routing script:

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: '/'
    })
});

Web Form content:

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
  <link rel="stylesheet" href="..." />
  <script src="..."></script>
  <!--Relevante css and js links-->
</asp:Content>
<asp:Content ClientIDMode="Static" ID="content2" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
  <div ng-app="ClientsApp">
      <ng-view></ng-view>
  </div>
</asp:Content>

In root folder I have "views" folder contains the html view files.
In development enviroment everything works fine.
But when I uploaded the version to server, I get something strange: in place of getting wanted view, I get default error page.
both development and production enviroment work on iis 8.5.

I googled my problem by found nothing, most of similar issues are in Asp.net MVC, and answers seem unrelated.

What can be the problem?

Rachel Fishbein
  • 818
  • 2
  • 12
  • 29

0 Answers0