Questions tagged [wwwroot]
84 questions
0
votes
1 answer
IIS Stop Necessary before Zipping/Copying wwwroot
I am making a compressed copy of our wwwroot file via powershell and the Compress-Archive command. Is there a compelling reason to stop iis (or the website/apppool) before making a copy. I will be using this copy to update our test environment.
The…

Tony Visconti
- 5
- 2
0
votes
0 answers
Dynamic content in the wwwroot
my application is a simple ASP.NET MVC that reads the paths of some pictures from a JSON file, and display them into a web page.
The display of the pictures is OK as long as I am hosting them under wwwroot.
My problem is : The JSON and the pictures…

Macadamia1988
- 11
- 3
0
votes
0 answers
problem in IIS - 404 error in server site
I wrote a project in .NET CORE 5 + react
(visual studio + vs code)
And I uploaded this project to IIS (server side and client side).
The client is running
But the server side falls to me
and I get 404.0 error
The development environment works…

programmer
- 11
- 1
- 5
0
votes
0 answers
Blazor server class library not copying files in wwwroot
I created a Blazor RCL class library that contains some base scripts/icons/styles in wwwroot to be added to the main app's wwwroot folder when deployed.
As mentioned in the documentation, files are supposed to be copied automatically into…

neggenbe
- 1,697
- 2
- 24
- 62
0
votes
0 answers
Why our changes inside the HTML web site which is hosted inside IIS are not showing to public users
We are facing this weird behaviour, where we have a Windows server 2019 with IIS. And we hosted an HTML web site inside C:\inetpub\wwwroot. Now we did some modifications to the HTML pages, mainly showing additional html elements and hiding some…

John John
- 1
- 72
- 238
- 501
0
votes
1 answer
Angular - Load image from wwwroot / upload
I created an application where you can upload the image and it's looking good, but I meet a problem when I want to load this file on the form.
For example I have config in C#:
builder.Services.AddSingleton(new…

Krzysztof Rzepiński
- 13
- 4
0
votes
1 answer
mklink directory in wwwroot stops showing updated data after a few iterations of changes to files in the directory
On Windows 10 using IIS as the Web Server, it seems that directories created under wwwroot with the mklink command at some point stop seeing changes made to files in that directory. The following is what I did to test this out:
I created a…

user1828108
- 447
- 1
- 4
- 11
0
votes
0 answers
wwwroot folder permission issue
I've set up my home PC (win10) as webserver with IIS just for testing/educational purposes.
I wasn't being able to edit the html files I created on wwwroot so I went into sharing configuration and added my user with R/W permission to the…

Blaylock
- 1
0
votes
1 answer
asp.net core store images wwwroot docker
I have a .net 6 web api.
When a user upload an image it should store in wwwroot folder.
when i run docker i have this error from the backend:
backend | Unhandled exception. System.IO.DirectoryNotFoundException: /wwwroot\images/
backend | at…

Vadim T
- 448
- 1
- 6
- 16
0
votes
1 answer
ASP.NET core - How to href to an html/cshtml page from a button inside another html/cshtml
I need to access an html page "Pages/createCampaign.html" and/or "Pages/addCampaign.cshtml" and/or "wwwroot/html/insertCampaign.html" (I've created more as tests, but none seems to be working) from a click on a button inside…

Sara Briccoli
- 141
- 3
- 11
0
votes
2 answers
how doI display image from images file within my wwwroot on my cshtml
The src route is correct. Instead of the image, I get the default 'green hill blue sky' file image on my cshtml
What I tried:
changing it from .jpg to .png
got the same…


jgrewal
- 342
- 1
- 10
0
votes
1 answer
Printing a PDF in a folder which is in wwwroot directory .net 5.0 web application
I have a folder structure as follows, please see 1st screenshot.
And this is my code so far.
I want to print the indicated PDF document.
It works perfectly on my local development machine, but after uploading of site, it tanks.
So I am not…

JakeL
- 191
- 1
- 6
- 18
0
votes
0 answers
wwwroot doesn't exist in inetpub
I installed IIS on my computer, but when I try to load localhost on google chrome it's says
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Detailed…

migos5
- 1
0
votes
2 answers
Create folders in wwwroot on startup in NetCore
Is there a way to create folders in wwwroot when the application startup?
Perhaps in the startup.cs class?
I know how to create folders in wwwroot in controller action methods. I do not want this.
This is what I would like:
I have a List of…

ZAD
- 51
- 6
0
votes
1 answer
Blazor WASM File does not exist (but is readable?)
I have a Blazor WASM PWA that I want to be standalone (if possible).
Currently, I am trying to manipulate a json file under wwwroot
Location of Json File
Now, while I am able to read its contents via HttpClient.GetFromJsonAsync, all other attempts…

Apollo J.
- 3
- 2