Non-angular deployment with IIS server

1

Hello, I posted an angled application on an IIS server, and when I try to access the URL defined on the server I get the following error:

Error Displayed: "Can not match any routes. URL Segment: 'TestDrive'"

I do not know what to do, I searched the internet and saw something about routes. Here below I left the codes of my routes ..

Route Codes

import { Routes } from '@angular/router'
import { Personal, Dealers, Agendamento, Finalizados } from '../2 - WebSite/1 - Formulario';
import { BaseNumerica } from '../1 - Shared';

export const routes: Routes = [
    {path: '', component: BaseNumerica, children: 
        [
            {path: '', pathMatch: 'full', redirectTo: 'dados-pessoais'},
            {path: 'dados-pessoais', component: Personal, },
            {path: 'dealers', component: Dealers},
            {path: 'agendamento', component: Agendamento}
        ]
    },
    {path: 'finalizado', component: Finalizados}
];

Calling routes in the module

imports: [
    BrowserModule,
    FormsModule,
    ReactiveFormsModule,
    HttpModule,
    RouterModule.forRoot(routes),
    NgxMaskModule.forRoot()
  ],

Thank you in advance ...

The first screen to be called is 'personal data' and does not need to define the URL, from the beginning

From there, I call the other URLs, this way

this.router.navigate (['dealers']);     

asked by anonymous 15.06.2018 / 17:06

1 answer

0

It was necessary to implement the name of the folder of the archive repository, that is, the folder where the files are, in the tag getting like this:

<base href="/TestDrive">

<head>
    <meta charset="utf-8">
    <title>Test Drive | Volkswagen</title>
    <base href="/TestDrive">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <link href="https://use.fontawesome.com/releases/v5.0.6/css/all.css" rel="stylesheet">
    <link rel="icon" type="image/x-icon" href="TestDrive/assets/img/Icones/volkswagen.ico">
    <link href="TestDrive/styles.3d09bccc9fc7ffe4913a.bundle.css" rel="stylesheet"/>
</head>
    
15.06.2018 / 19:59