ASP.NET Core Web API Publish To IIS

Поділитися
Вставка
  • Опубліковано 6 вер 2024

КОМЕНТАРІ • 37

  • @TrevoirWilliams
    @TrevoirWilliams  2 роки тому +1

    Full Playlist: ua-cam.com/play/PLUl9BcvgsrKYa9mUygO9lIGow-1GaNWqs.html
    Full Udemy Course: www.udemy.com/course/ultimate-aspnet-5-web-api-development-guide/?referralCode=354D04A638A9196767B3

  • @user-cc8kb
    @user-cc8kb Рік тому +2

    Thanks a lot Trevoir, this is the only tutorial that got it finally working. Very well explained too. The swagger base path edit in the beginning enabled me to finally get swagger up and running.

  • @harrynewman1744
    @harrynewman1744 7 місяців тому +1

    Thank you. The snippet of wisdom regarding db users at 30:35 is so useful and saved me a bunch of time working on an unrelated project.

  • @sweetnesscraftstudios7363
    @sweetnesscraftstudios7363 Рік тому +1

    Very thorough and easy to understand . Thank you

  • @user-po8xv5ki3t
    @user-po8xv5ki3t 10 місяців тому +1

    hello there!
    when I click on default web site and click on browse it says localhost not found what shall I do? in IIS manager

    • @TrevoirWilliams
      @TrevoirWilliams  8 місяців тому

      There could be several things wrong. You can join my discord channel and seek additional and real-time help there.
      discord.com/invite/H367hmGU5U

  • @sahankodagi2963
    @sahankodagi2963 2 роки тому +1

    Bro thanks so much for your videos. You explain really well. I am going to buy your Udemy course, you saved me a lot of headaches and pain.
    Please continue explaining the way you do it is really helpful to people who are starting out.
    The tutorials that just list out steps without explaining the concepts are a waste of time as you can never understand the thought process and will be lost if there are any differences wth your app.

    • @TrevoirWilliams
      @TrevoirWilliams  2 роки тому

      Happy to hear that! I am happy that you appreciate my approach.

  • @gbkadam1
    @gbkadam1 2 роки тому +3

    I was facing issue while calling post api method. when i set new IIS APPPOOL\mypoolname and added permission and my issue resoled. Thank you!

  • @vanky466
    @vanky466 11 місяців тому +1

    how I redirect to URL/swagger/index without typing, thank you.

    • @TrevoirWilliams
      @TrevoirWilliams  11 місяців тому

      You will need to type. Remember that this is an API, not a website. So it is not optimized to have a homepage, nor would I advise same.

  • @nadimhossainmolla1996
    @nadimhossainmolla1996 Рік тому +1

    You are a life saver...thank you , Sir.

  • @phana0071
    @phana0071 Рік тому +1

    Can you help, When publishing, Databases shows a information sign and states Database publishing is not supported for this publish method. While yours I can clearly see your editing the string.

    • @TrevoirWilliams
      @TrevoirWilliams  Рік тому

      The database needs to be created explicitly. Either you use the migration scripts, or you let visual studio do the migration during the publish steps.

  • @nitinmajgaonkar3060
    @nitinmajgaonkar3060 2 роки тому +1

    You have explained webapi concept really well. I have one question, I have configured Load Balancer on windows server 2019. But the load balancer IP is not supporting to external webapi request or response ... What is the solution? I have deployed normal asp.net application and not .net core application. Please suggest.

    • @TrevoirWilliams
      @TrevoirWilliams  2 роки тому

      Unfortunately, I am not entirely familiar with Load Balancers to the point where I can advise you on that matter.

  • @FreeDom-id6yb
    @FreeDom-id6yb 2 роки тому +1

    hello, i'm not truly clear on the steps...i am creating my api from my local machine and publishing it (LocalMachine A) from there but I have a server with iis on it that I want the api to run (ServerMachine B). Should i run Hosting Bundle for the server or LocalMachine A or ServerMachine B?

    • @TrevoirWilliams
      @TrevoirWilliams  2 роки тому

      The hosting bundle needs to exist on any machine that will be handling the hosting.

  • @shauncs
    @shauncs Рік тому +1

    Hi Trevoir, Is it necessary to set up the "ASPNETCORE_ENVIRONMENT" environment variable to "Production" before publishing the app? (From Project >> Properties >> Debug >> General) ?

    • @TrevoirWilliams
      @TrevoirWilliams  Рік тому +1

      It is not a must. I did it because the app used environment variables. It is not a general requirement however.

  • @isaiahdavis.com_
    @isaiahdavis.com_ Рік тому +1

    Dude thank you!! Seriously!

  • @thobs_tricks
    @thobs_tricks 28 днів тому

    Hi sir, so am trying to also find my log file so I can be able to see that Pool name, but I cant find the log file. the one I find is the one under C:\inetpub\logs\LogFiles\W3SVC1 and it doesn't hv much info. I know am so late but please assist, really need to get this sorted for my project.

    • @TrevoirWilliams
      @TrevoirWilliams  20 днів тому +1

      You don't need the log to see the pool name. You can get that by looking in IIS.

  • @Mo-ef9yt
    @Mo-ef9yt 2 роки тому +1

    Thanks for the video, however when looking inside the IIS, shouldn't the hotel_api web application be outside the default web site?
    I'm not sure I understand why you have choosen to place hotel_api application inside the default web site

    • @TrevoirWilliams
      @TrevoirWilliams  2 роки тому

      I created it as a web app as opposed to a Website in IIS.

    • @Mo-ef9yt
      @Mo-ef9yt 2 роки тому

      @@TrevoirWilliams
      ok I understand, but then you wont be able to apply host headers properly

  • @ibrahimmwarimbo5939
    @ibrahimmwarimbo5939 2 роки тому +1

    Hallo Trevoir i have been following your blog closely.and i have a question.i have an aspnet core web app with api controllers in sub folders and am trying to deploy it in iis but after successfull deployment i only see blank pages loading no data from my sql database table

    • @TrevoirWilliams
      @TrevoirWilliams  2 роки тому

      Explain what you mean by subfolders. The Controller files should be in the Controller's folder and not in any other folders, otherwise, it can mess with the routing

    • @ibrahimmwarimbo5939
      @ibrahimmwarimbo5939 2 роки тому

      @@TrevoirWilliams i conquered bro thanks