-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Publishing to IIS on localhost returns 404 Not Found for static assets (js, css) #33
Comments
Two possible ways:
|
@fsfj thanks for your response.
interferes with other deployments, like deployment to Azure, besides, it forces me to publish the application only in that virtual directory. |
In my case, i always overwrite to what virtual path i'd use after publish. If you want to install it on azure. You should clear/delete the value of public path if you're not using virtual path. That's what i do. |
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
But if I deploy to Azure (right click... Publish... in Solution Explorer), it works fine, the routes are correctly resolved:
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.
The text was updated successfully, but these errors were encountered: