Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

[SOLVED] Error 404 when change language #3060


User avatar
0
onecontact created

Hi guys,on my app: <a class="postlink" href="http://app.skanix.com.pe">http://app.skanix.com.pe</a> when I select another language, this redirect to /tenant, and get a 404, error, this is a general error?, I have the asp net core(.net 4.6.1) with angular2 project version.

Cheers


5 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Do you have this web.config in your deployed angular projects folder ? <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>

    If not, can you add it and try again ? A note, if you are not hosting your app on azure remove the below lines from web.config.

    <staticContent>
      <mimeMap fileExtension=".json" mimeType="application/json" />
    </staticContent>
    
  • User Avatar
    0
    onecontact created

    That web.config wasnt included in the deployment package :(, when I add that, I get 500 error, I remove this lines too:

    <staticContent>
          <mimeMap fileExtension=".json" mimeType="application/json" />
        </staticContent>
    

    but now the entire app are on error 500. :( :|

  • User Avatar
    0
    onecontact created

    Installed this : [http://go.microsoft.com/fwlink/?LinkID=615137]) and now work!, thank you

  • User Avatar
    0
    ismcagdas created
    Support Team

    Thanks for the feedback, Great :)

  • User Avatar
    0
    TimMackey created

    I'm facing a similar problem. The link @junior1986 created 5 years ago is now itself responding with 404 not found. Can anyone provide an updated link or an explanation of what the solution was?