Questions tagged [wwwroot]
84 questions
1
vote
0 answers
Problems with build angular part in asp.net
I have a project on Angular, that does not contain problems or errors. However when i build --prod project in Asp.net, I'm having problems.
I build a project in:
...
"apps": [
{
"root": "src",
"outDir": "../wwwroot",
...
and my…

Vadym Balynskyi
- 11
- 1
1
vote
1 answer
How to exclude wwwroot\lib in ASPNET Core using Visual Studio 2017
Using VSTS (not git) and use Visual Studio 2017 libman to manage client-side libraries. These libraries are put in wwwroot\lib. I don't want to add these to source code control.
I've tried putting a .tfignore in my project folder…

paultechguy
- 2,318
- 4
- 25
- 34
1
vote
1 answer
Static files and oData
We have a combo of asp. net core odata as a back-end and Angular 6 as front-end. Both are developed separately, during each release Angular files are copied to wwwroot folder. We added these two methods to Startup.Configure to allow reading static…

Diomos
- 420
- 5
- 15
1
vote
1 answer
How to use "wwwroot" folder in azure that's already working in IIS
I want to deploy my C# API project in Microsoft Azure.
I've changed my wwwroot folder name to "Documents" like:
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseKestrel()
.UseWebRoot("Documents")
…

M A K
- 432
- 2
- 5
- 18
1
vote
1 answer
Do I need to put css/js all in wwwroort folder in Asp.net Core? I am migrating from Older Mvc project
I want to use js/files outside wwwroot folder. How to Do that?

user2731553
- 11
- 1
1
vote
2 answers
Deleting files from wwwroot folder, what I am doing wrong?
With my controller I am able to upload files to certain path. I am trying to figure out how to delete iterated file in my view.
Controllers method:
[Authorize(Roles = "Moderatorzy")]
[HttpPost]
[ValidateAntiForgeryToken]
…
user8532173
0
votes
3 answers
ASP.Net Core 7 Razor javascript how to access `wwwroot/image.png`?
I have the following folder structure:
Pages/
|- Account/
|- Login/
|- index.cshtml
|- Shared/
|- _Layout.cshtml
|- wwwroot/
|- 0.png
|- 1.png
_Layout.cshtml:


Kok How Teh
- 3,298
- 6
- 47
- 85
0
votes
0 answers
nopcommerce Nop.Web refused the apply because of mime type
Steps
Download package with source code from nopcommerce website link
Try to start the project and get error because global.json file sdk version doesn't match my local sdk
Delete the global.json file
Start Nop.Web from visual studio by clicking…

ertucode
- 560
- 2
- 13
0
votes
2 answers
Dotnet Maui Blazor App - How to access images in wwwroot from static classin android platform?
In Maui Blazor Android Platform App I need to access wwwroot folder or somewhere image files are stored as file.
On Windows :
string rootpath = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "wwwroot");
and
var logoPath =…

N. OZER SENOL
- 25
- 4
0
votes
1 answer
how can I change asp.net core 6 wwwroot folder path to another server
I'm facing this situation, the customer wants to set the IIS on server , SQL Server on other server and uploaded files on other server.
all servers linked in local network , IIS server connected to the internet only.
so how can I change asp.net…

AwadhJY
- 1
- 2
0
votes
1 answer
How to use RCL as assembly in Maui project?
It seems that I don't understand how to properly connect rcl to the Maui project. And I can't find approach that will help me.
In the example below I tried to reuse component from the RCL. Firstly css doesn't work at all. I tried a lot of stuff, but…

Beaver
- 1
- 2
0
votes
1 answer
using wwwroot from other project in BlazorWebView
I'm trying to build an application using a Blazor Hybrid Webview, which can be run both from a .NET MAUI application as well as a WPF application. All Pages/Components/Routing etc. are located in a Razor class library (the GUI library). I can't get…

GottaLovePizzas
- 165
- 10
0
votes
0 answers
why javascript Delete backslash(\) when Using Onclick method for File Addresses
Why Javascript Methods like (javascript onclick, and Onchange) Getting File Addresses like this ( FilesItem38069707322680384-5832364197407734490_121.jpg ) instead of correct way like this(Files\Item\638069707322680384-5832364197407734490_121.jpg)
i…

digizoom
- 13
- 4
0
votes
1 answer
CSS File in wwwroot is not refreshing when i change the code ( ASP.NET MVC 6.0)
My css file :
enter image description here
And this file when build : ( not change )
enter image description here
Sometime I try "clean-solution" and "build-solution" then it's working, but now isn't working.
Thank.

dthieu2002
- 5
- 2
0
votes
1 answer
Azure function app wwwroot folder missing
I have an Azure Function app which is constantly returning 404 for all of the endpoints. The API configuration seems correct so the issue is with the function itself. It had been working fine until recently. The only thing that I have noticed which…

Jake Boomgaarden
- 3,394
- 1
- 17
- 31