I have implemented a solution to solve 404 error on page refreshing in my angular application. For this, I put this code to web.config file in my website folder on IIS:
<rule name="AngularJS 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="/" />
</rule>
This code is successfuly works with a static routes like '/blog', but it doesn't work with routes like '/blog/category:categoryName'. Hope you can help me; I was struggling with it for the couple of months...
An example of errors on page refreshing with parameterized route below:

