Questions tagged [wwwroot]

84 questions
2
votes
1 answer

How to serve html files from multiple folders inside wwwroot in .net

I have multiple folders in wwwroot and each folder has a web package (dist folder contents of VueJs/Angular/React App). As shown in the screenshot, I've created 2 folders and copied dist contents after building Vuejs application. If I copy dist…
Yash1th
  • 77
  • 7
2
votes
1 answer

Blazor - Not able to save file in folder wwwroot/img

I am working on Blazor application and not able to store file in wwwroot/img. Could anyone please help. Wanted to understand the behavior, I am able to see success message(File copied.) on console however not able to see file in folder. Will try…
ZKS
  • 817
  • 3
  • 16
  • 31
2
votes
2 answers

How to store file into inetpub\wwwroot instead of local machine folder on UWP application

I am currently developing a UWP application for my school project and one of the pages allows the user to take a picture of themselves. I created the feature by following this tutorial: CameraStarterKit For now I am storing the pictures taken on my…
thalassophile
  • 275
  • 2
  • 12
2
votes
1 answer

Copying node modules to wwwroot AspNetCore

I am working on Aspnet Core Web Application with Angular 2. Since Angular 2 Requires node modules, we install the dependencies using package.json. But it creates the folder in solution level. Since AspnetCore application reference can access only…
2
votes
0 answers

multiple projects in a solution each with a wwwroot asp.net 5 mvc 6

My colleague and I will build a mvc 6 multi project solution. So far everything is ok. Now we are on the stage that we have 3 different MVC projects in the solution. Everyone has it's own wwwroot. And in the end every project could stand for it self…
Bella O.
  • 43
  • 1
  • 4
1
vote
1 answer

implement bulk copy in different environment

I have a problem about bulk copy command in PostgreSQL. For instance i have a sample command of copying file CSV to table like below CREATE TEMPORARY TABLE AlterTable ( a1 varchar(50), a2 varchar(50), a3 varchar(50), a4 varchar(50), …
proram013
  • 13
  • 3
1
vote
0 answers

Why doesn't an image change when an API controller rewrites the image data in wwwroot folder?

I currently have a razor page that has a Uploader component (via Syncfusion) that calls an API whenever a file is uploaded. The API is responsible for renaming that file to the same name of the file that the UI is using inside of the wwwroot/assets…
1
vote
1 answer

access/copy/delete the files of root folder from the azure app service(web app) using another web application

We want to copy or delete the files from the root folder of Azure app service(web app). We have multiple web application hosted in azure, we need to copy/download and delete the files from the root folder of all the web application using another web…
Meghraj
  • 11
  • 3
1
vote
0 answers

"wwwroot" folder for project in visual studio

Why do we need "wwwroot" folder for project in visual studio? Using angular 14 and .net5 Tried to find about it but everywhere it says " the wwwroot folder in the ASP.NET Core project is treated as a web root folder."
Sonu Gupta
  • 21
  • 4
1
vote
2 answers

How to render index.html file that is in wwwroot folder using controller or view in ASP.NET Core MVC

I have an index.html file stored in the wwwroot folder but I want to access it from view or controller outside any way by using redirect from controller or view.
1
vote
0 answers

Getting 404 errors for everything under wwwroot in a Blazor type library project

I've been working on this Blazor demo project which was originally in .Net Core 3.1. I updated it to .Net 5.0. After a while, I finally got it to build under 5.0, but started getting errors such as The static web asset…
Ivan
  • 103
  • 2
  • 8
1
vote
2 answers

Js and css files not found on server but works locally

I ran into a really odd issue where all of my js, css, images, ect. are not found on the server. However, everything does work fine locally. Here is part of my layout with the scripts and css being loaded. @ViewBag.Title
1
vote
3 answers

Blazor Web Assembly - accessing images in RCL

I'm new to Blazor - so this may be obvious but I can't figure it out. I have a WebAssembly project and a separate Razor Class Library where I have some components. I have a component that I want an image in - I place the image in the wwwroot/img…
AnnR
  • 43
  • 7
1
vote
1 answer

Copying files from Azurewebapp wwwroot to azure blob

I tried copying files in wwwroot to blob using copy-item it's not working.could you please send me the any script available with you. It would be a great help for me. I'm new to powershell
S P
  • 23
  • 1
  • 5
1
vote
1 answer

Displaying images from wwwroot folder

I have a project that requires the multiple images to be stored in the wwwroot folder. The image references are saved in the database. So I've written a function that retrieves the image references, and loops through the images that are saved in the…
Chris H.
  • 151
  • 3
  • 17