Skip to content

Publishing to IIS on localhost returns 404 Not Found for static assets (js, css) #33

Open
@ccalvarez

Description

@ccalvarez

Hi,

I've published the app on localhost IIS (right click... Publish... in Solution Explorer).

The problem is that index.html can't find the resources (.js, .css) because the routes are resolved:

http://localhost/css/*.css

instead of

http://localhost/AspNetCoreVueStarter/css/*.css

image

But if I deploy to Azure (right click... Publish... in Solution Explorer), it works fine, the routes are correctly resolved:

image
URL: https://aspnetcorevuestarter20200401150304.azurewebsites.net/

What is missing in order to IIS to solve correctly the routes of static assets invoked from index.html?

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy