Skip to content
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

Static files not found #90

Open
taha-abujrad opened this issue Sep 3, 2023 · 2 comments
Open

Static files not found #90

taha-abujrad opened this issue Sep 3, 2023 · 2 comments

Comments

@taha-abujrad
Copy link

I am using .net 7
I installed the package
and added the necessary lines in the Program.cs
after visiting the url, the contect was displayed with no styling.

when opening the network tab in the browser, most of the static files reported not found.
am I missing something? are there any additional required packages that need to be installed, for the static files to be read?

@taha-abujrad taha-abujrad changed the title Static Files are not found Static files not found Sep 3, 2023
@shmulyeng
Copy link

Any update on this?

@iwedaz
Copy link
Contributor

iwedaz commented Jan 14, 2024

You have to add middleware
app.UseStaticFiles();

Also mentioned in #72
It's time for a PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants