8 Answer(s)
-
0
Hi,
Are you using angular2 version ?
If so, please put following web.config into your website. <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/blob/dev/angular/web.config">https://github.com/aspnetzero/aspnet-ze ... web.config</a>
Thanks.
-
0
-
0
Hi @kwanp,
Does it cause same problem when you hit F5 button on user list page for example ? If so, this is related to web.config I mentioned.
After putting web.config to your deployed folder, you also need to install IIS url rewrite module.
Last one question, do you publish your projects (Host & angualr client) seperately or merged ?
Thanks.
-
0
i publish my project separate angular run on port 80 and asp.net core run on port 2000
i will try to install IIS url rewrite module
Thank you
-
0
-
0
can you share your web.config?
-
0
This is my we.config that i use
?<?xml version="1.0" encoding="utf-8"?> <configuration> <system.webServer> <staticContent> <remove fileExtension=".json" /> <mimeMap fileExtension=".json" mimeType="application/json" /> </staticContent> <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" /> <add input="{REQUEST_URI}" pattern="^/(api)" negate="true" /> </conditions> <action type="Rewrite" url="/" /> </rule> </rules> </rewrite> </system.webServer> </configuration>
After i copy and paste this code i just know that error on code from the beginning with ? and after i remove i got it to work now Thank you
-
0
Hi @kwanp,
We can arrange a remote meeting for tomorrow to solve your problem. We are available between 09:00 to 17:00 UTC +3.
Please send your availability to <a href="mailto:[email protected]">[email protected]</a>.
Thanks.