Я использую $ routeProvider для маршрутизации.пример ниже
$routeProvider.
when("/home", {
templateUrl: "/src/home.html,
controller: 'home',
})
мой URL-адрес выглядит как localhost: 1145 / # / home - до этого все в порядке.Трассировка отключена, например <trace enabled="false" />
, если какой-то один тип localhost: 1145 / trace.axd, то отображается страница ошибки трассировки по умолчанию, как показано ниже. Как перенаправить на страницу ошибки, если какой-то один тип localhot: 1145 / trace.axd
Server Error in '/' Application.
Trace Error
Description: The current trace settings prevent trace.axd from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable trace.axd to be viewable on remote machines, please create a <trace> tag within the configuration file located in the root directory of the current web application. This <trace> tag should then have its "localOnly" attribute set to "false".
<configuration>
<system.web>
<trace localOnly="false"/>
</system.web>
</configuration