Static files in asp net core

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.พ. 2025

ความคิดเห็น • 76

  • @vikram5010
    @vikram5010 4 หลายเดือนก่อน +10

    Anyone learning from this tutorial in 2024, hit like!

  • @manishmawat
    @manishmawat 6 ปีที่แล้ว +15

    You are a superb teacher. Your explanations are crystal clear and it makes sense to the programmers at all level of experience.

  • @vkishan2089
    @vkishan2089 4 ปีที่แล้ว

    Thanks Venkat, you are doing a great public service. Many developers like me have been able to earn money and respect because of you.

  • @pcwanders
    @pcwanders 5 ปีที่แล้ว +1

    Thank you Venkat! This was the solution to loading javascript files in my .NET core Razor app.

  • @vaibhavwadhavane874
    @vaibhavwadhavane874 6 หลายเดือนก่อน

    Excellent way of teaching.

  • @pavithrar5248
    @pavithrar5248 ปีที่แล้ว +1

    Thanks for the summary it is very useful.

  • @eawig
    @eawig 2 ปีที่แล้ว

    Excellent video. Thank you.

  • @LordAlanttt
    @LordAlanttt 4 ปีที่แล้ว

    OMG! how smart u are! best teacher! do more videos!

  • @factworld4375
    @factworld4375 6 ปีที่แล้ว +3

    Thank you sir.
    Lots of respect.
    #FromNepal

  • @oddassembler
    @oddassembler 3 ปีที่แล้ว

    There are 120+ videos. The blazor tutorials sent me here, but I don't know how much I need to learn here before I can continue with my main focus of the blazor tutorials.

  • @jipegue446
    @jipegue446 4 ปีที่แล้ว +1

    tyvm for the shared knowledge, and you do it very well !!

  • @johnwindsor5426
    @johnwindsor5426 5 ปีที่แล้ว

    Really so nice tutorial. All works when I am following your code!

  • @KobyLev
    @KobyLev 5 ปีที่แล้ว +1

    Graet Tutorial great tutor!!!! love to see it!!

  • @stavvers
    @stavvers 4 ปีที่แล้ว

    Thanks for this, this was annoying me for 40 mins! Life saver!

  • @dhliu9687
    @dhliu9687 2 ปีที่แล้ว

    Hi Venkat teacher , check in today. Hope you have nice day

  • @sergiocorrenti
    @sergiocorrenti 6 ปีที่แล้ว +2

    Thanks again venkat! :-)

  • @toalopez
    @toalopez 6 ปีที่แล้ว +6

    Thank you venkat! your an awesome programming teacher, where you from? I can learn from you very quickly. You teach correctly, just like it is. You should have your channel on the Television

    • @VinuP2023
      @VinuP2023 6 ปีที่แล้ว +2

      Hi Toalopez, Venkat is from India.

  • @usamabaloch6178
    @usamabaloch6178 4 ปีที่แล้ว

    sir you are truly a great teacher :) love from pakistan

  • @darkogele
    @darkogele 6 ปีที่แล้ว +2

    I LOVE YOU MAN good SCHOOL this is :D.
    I kill the add block when i watch your videos son keep it up

  • @krishnapriyac3328
    @krishnapriyac3328 3 ปีที่แล้ว

    Thank you sir..very helpful

  • @SuperEvoken
    @SuperEvoken 3 ปีที่แล้ว

    thank you, this is excellent.

  • @phanidivi3613
    @phanidivi3613 6 ปีที่แล้ว

    Super venkat sirrr

  • @deepwoodsengineering3763
    @deepwoodsengineering3763 6 ปีที่แล้ว +1

    Awesome videos! Do a Vue Asp.Net Core web app!!

  • @capturestorage4998
    @capturestorage4998 6 ปีที่แล้ว

    I am big fan of your,I have watch your Manny video series,
    I will watch all .net core video series ,
    So please upload remaining video series of asp.net core ,I need it

    • @Csharp-video-tutorialsBlogspot
      @Csharp-video-tutorialsBlogspot  6 ปีที่แล้ว

      Sure Deepak - Will try and upload as fast as I can.

    • @vkishan2089
      @vkishan2089 4 ปีที่แล้ว

      @@Csharp-video-tutorialsBlogspot How do you monetize? Many other instructors earn from Udemy and other sites? Thanks very much for these valuable videos.

  • @_samirdahal
    @_samirdahal 4 ปีที่แล้ว +3

    For those who wondering why he cleared the default file names is because by default there are 4 default files in the DefaultFileNames list that you can serve to the client.
    1. default.html
    2. default.htm
    3. index.html
    4. index.html
    If you don't clear the list, these will look up for the file in wwwroot directory so you must clear the list and add your default static file to serve. Then you only remain with one item in the list.

  • @sridharthirumal2065
    @sridharthirumal2065 6 ปีที่แล้ว

    Super and thank you...

  • @robertmays6097
    @robertmays6097 6 ปีที่แล้ว

    excellent

  • @seyhmusozbek
    @seyhmusozbek 2 ปีที่แล้ว

    god bless you.

  • @deepro__
    @deepro__ 2 ปีที่แล้ว

    Thank you sir,

  • @DecentProgrammer
    @DecentProgrammer 4 ปีที่แล้ว

    Thank you sir...

  • @StrzelbaStian
    @StrzelbaStian 6 ปีที่แล้ว +6

    9:06 at this point I have the exact same code as you do in my Visual Studio, but the .html file that appeared in your browser is default.html, while in my browser foo.html appeared again. I wonder why
    Edit: ok, at 10:16 everything became clear, the same situation happened to me at 9:06 that happened to you at 10:16

  • @naveedkhan742
    @naveedkhan742 5 ปีที่แล้ว +1

    Sir please start a video series on Xamarin mobile development and on WPF.
    Thanks.

  • @waseemsangrasi7638
    @waseemsangrasi7638 4 ปีที่แล้ว

    Hello Kudvenkat, You are doing a great job! I want to ask what is the difference between FileServerOptions and DefaultFilesOptions. What i understand these both methods are the same, in which we can set any startup page. ??

  • @omniversal4739
    @omniversal4739 5 ปีที่แล้ว

    Thumbs up if you noticed that first he added the UseStaticFiles middleware instead of the UseDefaultFiles middleware so you didn't had to change it.

  • @InamiLanzhu
    @InamiLanzhu 3 หลายเดือนก่อน

    12/124, at least 90% more to go!

  • @mohskimo
    @mohskimo 5 ปีที่แล้ว

    Much Respect

  • @gangadharkaranapu9062
    @gangadharkaranapu9062 5 ปีที่แล้ว +1

    I did not get why the need of too many middlewares. The serving of static files is the primary function any website. Wouldn't it better if it added inbuilt like other dot net technologies?

  • @nagaashwathmn4099
    @nagaashwathmn4099 3 ปีที่แล้ว

    Thank you very much for the tutorial. Can you explain what is the difference between UseStaticFiles and UseSpaStaticFiles?
    How to configure the middleware if I am creating 'Asp.net core app + React js' and deploying it?

  • @archstanton9547
    @archstanton9547 6 ปีที่แล้ว

    It should be noted that allowing directory browsing with the UseFileServer middleware is most likely something that should not be enabled on a public facing web site as this compromises security.

    • @yesudassmoses8754
      @yesudassmoses8754 5 ปีที่แล้ว

      Directory Browsing will be enabled only when you pass true as argument to the method.

  • @MAHOSSAN1
    @MAHOSSAN1 5 ปีที่แล้ว

    Can you please explain about await method as well ??

    • @Csharp-video-tutorialsBlogspot
      @Csharp-video-tutorialsBlogspot  5 ปีที่แล้ว

      Hello Hossan - We discussed C# Async and Await in the following video. Hope this helps.
      th-cam.com/video/C5VhaxQWcpE/w-d-xo.html

  • @ashvic2275
    @ashvic2275 3 ปีที่แล้ว

    I am new to .net core, i am trying to show the image same as yours but by using 'OutOfProcess' hosting. Why is it that using 'InProcess' hosting everything works as expected whereas while using 'OutOfProcess' hosting it says 'access denied' with 404 error while accessing the .jpg image from the browser.

  • @TheUmar26
    @TheUmar26 2 ปีที่แล้ว

    can we server static file and other middleware response together ?

  • @AlongOurLife
    @AlongOurLife 6 ปีที่แล้ว

    Thank you.

  • @asifzaffar343
    @asifzaffar343 4 ปีที่แล้ว +1

    Hi Sir,
    I used both "DefaultFilesOptions" and "FileServerOptions" along with "app.UseFileServer(fileServerOptions)" and "app.UseDefaultFiles(defaultFilesOptions)" respectively in Startup.cs but default.html page is not opening. I'm using VS19 with NETCORE 3.1
    Could you please help me on this.

    • @relimaxengineers5472
      @relimaxengineers5472 4 ปีที่แล้ว +1

      put it before userouting

    • @匿名-x5m
      @匿名-x5m 2 ปีที่แล้ว

      app.UseDefaultFiles();
      app.UseStaticFiles();
      app.UseRouting();

  • @raqibul1000
    @raqibul1000 3 หลายเดือนก่อน

    Thanks

  • @ericsrook
    @ericsrook 4 ปีที่แล้ว

    If you deploy this app to IIS and have a different order of default within IIS, will that override the default files set within the application?

  • @dragosmihai1001
    @dragosmihai1001 6 ปีที่แล้ว

    Hello Sir thank you very much for your effort! Could you please add a video of ASP.NET CORE ANGULAR TEMPLATE, connecting to a database? Pretty please:)

    • @dragosmihai1001
      @dragosmihai1001 6 ปีที่แล้ว

      SQL DATABASE.... maybe you know a simpler solution than this docs.microsoft.com/en-us/ef/core/get-started/aspnetcore/new-db?tabs=visual-studio

  • @endribara94
    @endribara94 5 ปีที่แล้ว +1

    Hello! Im doing same thing as you did, using app.UseDefaultFiles(); but my default.html page isnt showing, im using VS 2019 .net core 3.0 have they changed somtheing there

  • @kansairobot2015
    @kansairobot2015 5 ปีที่แล้ว

    Before I did not need to rebuild the project after the changes., It was done automatically after I saved the changes. Now I need to rebuild to see the change from default to foo. Why is this?

  • @ashutoshkumar7347
    @ashutoshkumar7347 5 ปีที่แล้ว +1

    Hi Everyone image is not loading for me ...what could be the problem?

  • @shahidwani6445
    @shahidwani6445 6 ปีที่แล้ว

    Thank you

  • @thinkagain8055
    @thinkagain8055 3 ปีที่แล้ว +1

    Getting error -Severity Code Description Project File Line Suppression State
    Error MSB3021 Unable to copy file and for that tried with Rebuild application ,restarting VS ,restart machine but still not working

  • @anaspk77
    @anaspk77 5 หลายเดือนก่อน

    I need to redirect all requests to home/index. What is the best way to do this? Please help

  • @Krishnakumar-wl7ih
    @Krishnakumar-wl7ih 4 ปีที่แล้ว

    Hi sir... Is there any change in syntax for dot net core 3.1? I am unable to set default.htm as the webpage on load. Thanks

    • @vkishan2089
      @vkishan2089 4 ปีที่แล้ว

      Not sure but one person commented that you have to put use static files before use routing.

    • @匿名-x5m
      @匿名-x5m 2 ปีที่แล้ว

      app.UseDefaultFiles();
      app.UseStaticFiles();
      app.UseRouting();

  • @sajeebchandandeveloper1897
    @sajeebchandandeveloper1897 5 ปีที่แล้ว

    Directory Browsing is not enabled by default in FileServerOptions.
    To Enable this
    fileServerOptions.EnableDirectoryBrowsing = true;

  • @manjerekarrao
    @manjerekarrao 4 ปีที่แล้ว

    when i publish this application to IIS from visual studio, it's not working. its creating my app name 'chatbot' under the wwwroot folder and inside the chatbot folder, its again creating wwwroot folder with the .html file inside it. can you help me here?

  • @CRiver396
    @CRiver396 ปีที่แล้ว

    Where can I download these files?

  • @roronoa_d_law1075
    @roronoa_d_law1075 4 ปีที่แล้ว

    pls what is the shortcut to see the overloaded methods ?

    • @Csharp-video-tutorialsBlogspot
      @Csharp-video-tutorialsBlogspot  4 ปีที่แล้ว

      Hello Dania - I have included all the Bootstrap tutorial videos, slides and text articles in sequence on the following page. Hope you will find it handy.
      www.pragimtech.com/courses/bootstrap-tutorial-for-beginners/
      When you have some time, can you please leave your rating and valuable feedback on the REVIEWS tab. It really helps us. Thank you. Good luck and all the very best with everything you are doing.

  • @hdnofficialchannel-lordsmo1164
    @hdnofficialchannel-lordsmo1164 5 ปีที่แล้ว

    Why is the UseFileServer not taking precedence and responding with foo.html in ASP.NET core v3.1? It always prints Hello World. Anyone knows how this changed from Core v2.2 to v3.1?

  • @mughalnouman2406
    @mughalnouman2406 5 ปีที่แล้ว

    in vs2019 default.hrml page not showing first

  • @kumarshrey209
    @kumarshrey209 3 ปีที่แล้ว

    25 April 2021