Base solution for your next web application
Open Closed

net::ERR_ABORTED 404 (Not Found) #7430


User avatar
0
ST_Development created

How can we solve this error: https://#myServer#/poppins-v5-devanagari_latin-ext_latin-300.01860d964547bc9d93cf.woff2 net::ERR_ABORTED 404 (Not Found) We use Version 6.9.0 The .wolf2 file is published right...

Thank You


9 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team
    • What is your product type (Angular or MVC)?
    • What is product framework type (.net framework or .net core)?
  • User Avatar
    0
    ST_Development created

    Product is Angular and the framwork is .net core

  • User Avatar
    0
    maliming created
    Support Team

    Does your web.config have the following configuration?

  • User Avatar
    0
    ST_Development created

    Yes, it looks similar.

  • User Avatar
    0
    maliming created
    Support Team

    Can you share the contents of your web.config file?

  • User Avatar
    0
    ST_Development created
    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
      <system.webServer>
        <staticContent>
          <remove fileExtension=".json" />
          <mimeMap fileExtension=".json" mimeType="application/json" />
    	  <mimeMap fileExtension="woff" mimeType="application/font-woff" />
          <mimeMap fileExtension="woff2" mimeType="application/font-woff" /> 
        </staticContent>
        <!-- IIS URL Rewrite for Angular routes -->
        <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>
    
  • User Avatar
    0
    maliming created
    Support Team

    Can I take a look at it remotely? If you can, please send the teamviewer connection information to [email protected]

  • User Avatar
    0
    ST_Development created

    So I solved the Error: ng build --prod does not copy any web.config file. So I copy it additionally !

  • User Avatar
    0
    maliming created
    Support Team

    (‾◡◝)