TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Mandar Shinde
NA
423
115.6k
Unable to point to API Controller in ASP. Net MVC
May 11 2019 4:55 AM
Hello All,
I have developed my small application using Angular 5 and ASP .Net MVC 5 with Rest Api.
Last time I was facing one problem related to refreshing web page on IIS uploaded.
To overcome on above problem I have created one web.config file for Angular 5 purpose which is as follows :-
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
configuration
>
<
system.webServer
>
<
rewrite
>
<
rules
>
<
rule
name
=
"Angular Routes"
stopProcessing
=
"true"
>
<
match
url
=
".*"
/>
<
conditions
logicalGrouping
=
"MatchAll"
>
<
add
input
=
"{REQUEST_FILENAME}"
matchType
=
"IsFile"
negate
=
"true"
/>
<
add
input
=
"{REQUEST_FILENAME}"
matchType
=
"IsDirectory"
negate
=
"true"
/>
</
conditions
>
<
action
type
=
"Rewrite"
url
=
"./index.html"
/>
</
rule
>
</
rules
>
</
rewrite
>
</
system.webServer
>
</
configuration
>
But now I am facing new problem is that because of use URL Rewrite I am not able to communicate with my ASP .Net MVC code.
Please suggest me some easy solution to overcome on above solution.
Any suggestion will be acceptable.
Thanking You in advance.
Regards
Reply
Answers (
1
)
Issue in Block chain
Setup for Block-chain development