How To Deploy a ASP.NET Website to IIS or Azure

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ธ.ค. 2024

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

  • @hungerface6362
    @hungerface6362 4 ปีที่แล้ว +8

    Shout out to my man Tim Corey for replying all the comment! You are a legend Corey! Thank you so much!

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

    0:00 - Intro
    1:23 - Demo app overview
    2:10 - IIS Express
    4:13 - Deployment options
    5:19 - Folder deployment
    12:25 - Deploying to Azure App Service
    15:40 - Summary and concluding remarks

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

    Thanks Tim. It is a very clear and useful video for updating an existing application when your colleagues told you "Just Copy".

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

      Glad it was helpful!

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

    Followed your video and the 'Introduction to ASP.NET'. Excellent explanation and teaching skills. Got my site working. Thank you!

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

      Excellent! I'm glad you could put what you learned into practice.

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

    Tim, I really appreciate all your work on these videos. They are very timely and right on target.
    For your future videos: Security best practices for an external web application and/or Setting Active Directory Users/groups/permissions for internal web applications.

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

      I'll add them to the list. Thanks!

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

    Hey Tim, your videos are amazing. So clear and informative...straight to the point. Great work!

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

      Glad you like them!

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

    Thank you, even two years later, I was able to find my error because of your video :D

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

    It would be great to see an updated video on this, deploying .net Core web to IIS, using SSL.
    Thanks.

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

      Noted! Added to my list

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

    excelente video Tim, go ahead with this please.!! greetings and blessings from Costa Rica.
    it's so easy to understand you...

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

    Great video thank you very much. If you have database, like your other video: ASP.NET MVC Data Access, how will you deploy it to ISS/Azure (The website and database)? Web hosting companies usually give you a package let say with 1 sql server. How will you publish this website and your database to the remote SQL server and change the connection string?
    Thanks

    • @AN-ts4rf
      @AN-ts4rf 3 ปีที่แล้ว

      2 months. Did u find out how to do this?

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

    Can you do a video showing deploying an asp.net web (standard/framework/core) application to a remote IIS server? Thanks.

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

    Thanks Tim, this really helped me out. I am new to your channel. Subscribed just now. I hope the best out of it. Thanks again for putting this out for beginners like us.

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

    More in-depth videos like this would be good covering best practices in depth. If it was on your website I’d pay for it.

  • @juliocesarramirezvasquez7494
    @juliocesarramirezvasquez7494 5 ปีที่แล้ว +2

    God bless you man. You helped me a lot.

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

    Around 10:30 you say that we can put a hole in our firewall and have our machine serve the website on our network. Can you explain how to do that? Or perhaps point me in the right direction of another tutorial that can teach me this? I tried hosting my backend webapp with REST apis, that worked on localhost are giving me a 500 error, so I'm trying to do the IIS way

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

      This might help: www.codeproject.com/Articles/396569/Make-Web-Development-Easier-with-IIS-Express

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

    Very nice video Tim. Enjoyed it. Working on project now where I have to deploy and very helpful. You should've added the staging / production switch in App Services. You were so close when you talked about production considerations.

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

      The cheapest sites don't have that I don't believe. I try to cover only what is free. I will be covering a much more in depth process in an upcoming course.

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

    Great video Tim! I much prefer creating local websites with different ports (8080, 8081 etc.) rather than use the "create virtual application folder" option. When I first messed around with classic asp 18 years go, I had issue with absolute paths etc when I deployed to a live website. I've always bought PRO version of windows rather than HOME version so I can have multiple websites locally.

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

      Definitely a valid approach.

  • @CAPS_AMERICA
    @CAPS_AMERICA 16 วันที่ผ่านมา

    Thanks for this, so your way in this video is deploying to azure using VSStudio to publish and copies all the files in one go, but I've seen steps where they go and create an app service first, then copy the files manually, is this a step you would recommend, or just use publish directly?

    • @IAmTimCorey
      @IAmTimCorey  13 วันที่ผ่านมา

      I would recommend against manually copying files if you can avoid it. Use an automated system of some type so that you get predictable results every time.

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

    Thanks for this. Helps a lot. Do you have tutorial how to setup SSL on an IIS website?

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

      I don't, but thanks for the suggestion. Please add it to the list on the suggestion site so others can vote on it as well: suggestions.iamtimcorey.com/

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

    Do you have a video on how to automate the deployment process?

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

      I have a course on it: www.iamtimcorey.com/p/application-lifecycle-design/ I've covered it a couple times in some detail (look at my Azure DevOps video) but that course covers everything.

  • @reyneerleon3851
    @reyneerleon3851 5 ปีที่แล้ว +2

    Following the IIS method I get this error:
    HTTP Error 500.19 - Internal Server Error
    The requested page cannot be accessed because the related configuration data for the page is invalid.

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

      This is a somewhat generic error but this might help: stackoverflow.com/questions/9216158/the-requested-page-cannot-be-accessed-because-the-related-configuration-data-for

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

      Hi got same error and then 400 error. Follow him exactly. My issue was saving the published files to Documents folder and didn't work. Try to save published files to folder under C drive and map IIS to that folder.

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

    Great video, I see two options while publishing to IIS. One is "Web Deploy" and "Web Deploy Package". Could you explain this?

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

      You could be using a different version of Visual Studio (you almost certainly are). Also, I believe in the current version of Visual Studio, it is a two-step process. The first step is to choose IIS and then you get those choices. In the previous step, you could choose file or other options.

  • @2005bgva
    @2005bgva 4 ปีที่แล้ว +2

    Question: what version of http use iis express? http/1 or http/1.1 or http/2?

    • @IAmTimCorey
      @IAmTimCorey  4 ปีที่แล้ว +2

      IIS Express uses http/1.1 I believe.

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

    My app I'm trying to publish won't even load when you deploy it on IIS, because when it tries to connect to SQL SERVER it gives an error stating that ExecuteReader requires an open and available Connection no matter what I do.
    Meanwhile on Visual Studio it works just fine. I have no clue why this would be the case

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

    Very good explanation, thanks Tim!!

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

    Hello Tim, all your videos are really helpful. Thank you for that. I just have a question, I noticed that in here, you were able to deploy that in the same computer IIS with Windows 10. How about deploying it to a windows server 2012 with our existing website. Is that possible? How can I deploy this web api to our website? Thank you in Advance.

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

    does not work for me, I keep on getting this error. is template
    HTTP Error 500.19 - Internal Server Error
    The requested page cannot be accessed because the related configuration data for the page is invalid.

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

      Sounds like you missed something somewhere.

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

      @@IAmTimCorey getting the same error as @Hendry -> Trying to investigate how to fix it!
      I notice that the "Release " directory is not within the "bin" directory! I think the root of the issue the source code does not have that.
      Thanks for the session it was amazing, though

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

    Excellent video, thank you for sharing the knowledge.

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

    Tim--
    If one is trying to deploy a portfolio site that includes a section that links to functioning demo projects, can that all be done within the same domain? In the specific case I'm thinking of, there is a good chance the demo projects would be different language stacks also. Seems like this would be a fairly common scenario, but I'm not finding too much about it in my usual sources.
    Thanks as always.

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

      You would probably want it on separate sub-domains. Each site really should be its own location, especially when you are mixing tech stacks.

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

    *commented, liked, subscribed*

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

      Excellent. Thanks. Appreciated.

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

    Hi TIm, I followed the steps up to 10:12. This was were I removed all web pages files in the folder, however on reloading "localhost:8080" , I got no error message, i got a blank screen. I checked the windows features to see if error reporting was installed and it is. Please could you assist me ?

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

      Check the IIS settings. Maybe you don't have .NET turned on for the app.

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

      @@IAmTimCorey Thank you very much. I went to windows features and enabled everything , changed the port and it started to work.

  • @akshayc6163
    @akshayc6163 3 ปีที่แล้ว +2

    When I click publish, i get an error saying "publish has encountered an error object reference not set..." What should i do ?

    • @IAmTimCorey
      @IAmTimCorey  3 ปีที่แล้ว +2

      It sounds like you have a bug in your code. Make sure the code runs fully before you try to publish it.

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

      @@IAmTimCorey the project builds successfully and runs fine. I am running VS 2017. Does that have anything to do with the problem?

  • @חייםחדד-ח2מ
    @חייםחדד-ח2מ 5 ปีที่แล้ว +2

    If I publish to Azure, does it give me a domain?? Can I access my published website from every computer in the world using a browser?

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

      It gives you a sub-domain. Something like "yourwebapp.azurewebsites.net". You can apply your own domain name to it if you want (you have to buy the domain name and you will need to pay a bit more for Azure hosting).

    • @חייםחדד-ח2מ
      @חייםחדד-ח2מ 5 ปีที่แล้ว +2

      @@IAmTimCorey Thanks! And how long it will work?

    • @IAmTimCorey
      @IAmTimCorey  5 ปีที่แล้ว +2

      As long as you want it to.

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

      @@IAmTimCorey If I deploy using IIS will by website be accessible from another computer?

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

    Thanks. Your videos are always very helpful

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

    Not really the proper place to ask, but I see replies so - how would you add a new .asp page to a site? My site apparently also requires a controller for each page otherwise the asp page resource is not found.

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

      It sounds like you are trying to add pages to an MVC site. That doesn't really work in the .NET Framework. In .NET Core, you can add Razor Pages to MVC sites without an issue, though.

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

    Tim, for me works to publish when the HTML pages are statics.
    I connected with SQL Server Management Studio 18.0 and I don´t get to show a simple select command in the page.
    What do I do for enable a database, please?
    Thank you in advance.

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

      You will just need to make sure your connection string points to a database that allows access from your web server. That's it. It should all work from there.

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

      @@IAmTimCorey Hi, Tim.
      I discovered the solution. I don´t know the explanation, but without setup were possible to access static pages.
      When I set IIS to bind a IP of site, all machines in same network accessed the server.
      Thank you for answer. I like your videos. :)

  • @peddyjet
    @peddyjet 3 ปีที่แล้ว +2

    Apart from azure, do you know any good Asp.net core hosting companies?

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

      I used Interserver for my Getting Started with ASP.NET Core course (affiliate link: www.interserver.net/r/589892 ). For $5/month, you can get ASP.NET Core hosting for multiple main sites and unlimited sub-domains, plus unlimited SQL databases. I've been impressed by their uptime and ability for the cost.

  • @pinoyrunningpenguin
    @pinoyrunningpenguin 2 ปีที่แล้ว +4

    have been doing this thing for 20 years and each time Microsoft releases a new version, configuring IIS all of a sudden does not work the way I used to do It and end up in pain. Why oh why can't Microsoft make this easy for users of their product is a big question. Oh yeah they want to make people move to the cloud with managed hosting because there is where the money is.

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

    hi Tim. thanks for the video. I encountered “This site can’t provide secure connection”. what does this mean?

  • @0xbitbybit
    @0xbitbybit 3 ปีที่แล้ว

    Ok, what do we do when we add a new project to our solution, how do we deploy that to a dev server, particularly using Web Deploy/IIS? Doesn't seem to be a Publish option when right clicking, like there is with individual files.

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

    Hi Tim, I'm using Asphostportal here since I can't afford Azure. I have successfully deployed my .net core on my hosting but it throw error 502.5 - Process Failure. How to fix this issue? Thank you

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

      Not sure but here is an article on how to debug it (in Azure but the principles should apply): stackify.com/net-core-azure-app-service-wont-start/ Also, did you know you can get 10 Azure Web Apps free for life?

  • @joeballer4036
    @joeballer4036 3 ปีที่แล้ว +2

    this doesn't seem to work for .NET Core 3.1 apps

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

      It should. I just did a video with a .NET 5 (.NET Core) deployment to IIS here: Publishing to IIS - A TimCo Retail Manager Video

    • @ana-mariaolujic6570
      @ana-mariaolujic6570 2 ปีที่แล้ว

      Can you tell the error you have? I got .net core 6 running

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

    Hi Tim, What Video Do I Need To Watch To Host Asp .Net Core With Azure Sql Database

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

      Oh Like Your Videos Very Practical And Educational With Straight To The Point Information.

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

      I believe this video covers it somewhat: th-cam.com/video/68towqYcQlY/w-d-xo.html As for the rest, the Application Lifecycle Design course covers how to do this and more: www.iamtimcorey.com/p/application-lifecycle-design

  • @David-iq1kd
    @David-iq1kd 5 ปีที่แล้ว +1

    Dumb question I'm sure, but, how do I open IIS manager? I added the Windows components shown, but am not sure how to find the manager, and it does not appear in search.

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

      I believe it is under Administrative Tools in the Control Panel. I have to hunt for it too. Not a dumb question.

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

      david...you saved me having to ask the same question... thanks

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

      @@MrRasZee Win+R, type "inetmgr", try this.

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

    Спасибо very much. That is exactly I was looking for!

  • @viske00
    @viske00 11 หลายเดือนก่อน +1

    my solution contains 4 projects (4 tier MVC), does it also work with that?

    • @IAmTimCorey
      @IAmTimCorey  11 หลายเดือนก่อน +1

      Yep. It doesn’t matter how many projects or tiers you have. Your application gets compiled into one set of files that get deployed together.

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

    What if we deploy it on the client's machine on iis? N what about SQL server?

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

      Deploying to a client's IIS depends on their setup. You might be able to do web deploy if they open the firewall for it (doubtful) or you will need to deploy to a folder and then transfer those files over to the correct folder on their web server. As for SQL, that can be difficult (SQL scripts copied to the correct machine and run) or it can be easy using SSDT (see this video for help: th-cam.com/video/ijDcHGxyqE4/w-d-xo.html )

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

      @@IAmTimCorey thanks again sir and that was a super fast reply.

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

    Why after publisher remote i cant see My app
    I use core 3.1
    It get error
    When edit Web. Cinfig file get error 4.3 access denay
    Whats can i do it

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

      I don't think there is enough information here for me to diagnose. It may be a permissions issue, it may be that you have the URL path wrong, or it may be that your host doesn't support 3.1 yet.

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

    How do I add database for deploying to Azure.

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

      Your Azure database has a connection string. Use that connection string and it will work (as long as you allow it through the firewall).

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

    Hi Tim.You must be using some pro version of MVS I haven't got the options you showed in this video, which version of MVS you are using.Do you run extensions?

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

      I'm using Visual Studio 2017 in this video but it still works the same in Visual Studio 2019 Community Edition (and the other editions too, but that is the free one).

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

    I thought I followed this video step by step. When I wanted to view my site I got a permissions error and couldn't view the site. I found out the reason was that I copied the published website under a folder in my Documents folder. I then reviewed video and Tim copies the published files to a Temp folder under C. It now works. Tim or anybody who reads this, what is the difference with the Temp folder compared to others?

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

      When you run IIS, it typically runs under a restricted user account for security reasons. Your Documents folder is restricted to your login alone. The IIS login does not have access to your Documents folder. By moving it to the Temp folder, anyone can access it because that is the default permissions for a folder (it doesn't inherit any restrictions from the above folder).

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

    oh man i wish this was up last week. i spent 2 days trying to figure this out. turns out the MSDeployServiceURL that was generated automatically was wrong. thanks for the content tim

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

      Bummer on the timing but I'm glad you got it figured out.

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

    doing same process for Asp.net Core 3 blazer server-side , any difference ? for IIS i mean ?
    i have asp.net core 3 installed in my machine yet i can't find it when choosing .net framework in this section 6:48
    can you help me please ?
    thanks

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

      I believe the process is a bit different because .NET Core isn't treated the same way as the .NET Framework but I'm not sure. You can deploy .NET Core with your site so you don't need any configuration. I haven't deployed to IIS with .NET Core thought. I typically use Docker or a hosted web server like Azure.

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

      السلام عليك اخي معتز
      انا شغال معاي core 3.1 سويت ستب اب واستغل معاي بس المشكله لما اعمل نشر للتطبيق على استضافه وندوز لا يعمل ومازلت احاول
      ولكن على جهازي يعمل بكفائة
      تحياتي

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

    Hi Tim, i would like to ask you a question, how do i link together an app with the web api, the app that i have made is like a food ordering site,like how do i actually send requests and get request with the phone application?

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

      I'll be covering that in an upcoming course.

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

    Great video! I followed all steps to the T, but when I browse the site from IIS manager it just says: "Loading..." at the top and "Waiting for localhost..." on the bottom and it goes on what seems like eternity. No page ever loads. What am I doing wrong??!!

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

      Now I'm getting an "Access is denied" "Server Error in '/' Application." UGH!

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

      IIS is tough to get right. There are a lot of things to tweak. You need to check to be sure the IIS user has permission to the folder, etc.

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

    Amazing tutorial Tim! But how do I know if I published a production or a staging environment?

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

      I'm not sure what you are asking. You choose what your production environment is (that just means that you designate a server or location as production and a different one as staging). When you publish, if you publish to the staging server, you are updating staging.

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

      @@IAmTimCorey Thank you for your response Tim! I actually wanted to publish 2 copies of my app with staging and production settings and after a couple of hours I have figured it out through its webconfig. Now, looking forward to your Retail Manager Course!

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

    This is so great! Thank you.

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

    I am definitely interested in CICD, automated build process pipeline, source control full in depth tutorial deluxe 9000. Willing to pay too.

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

      It is on the high priority list. I've been waiting for VSTS to change its name to Azure DevOps (just happened recently) so now that it has been rebranded and the look has been updated, I'll start preparing the course and some TH-cam videos.

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

    Would like to see a video on publishing to IIS using Visual Studio and Web deploy. According to Microsoft documentation Web Deploy does not need to be installed on later version of Windows Server, but I have not yet had success.

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

      Thanks for the suggestion. Please add it to the list on the suggestion site so others can vote on it as well: suggestions.iamtimcorey.com/

  • @RanjeetKumar-gg7ie
    @RanjeetKumar-gg7ie 4 ปีที่แล้ว

    Thanks Tim, can we have a tutorial on deploying a website with database to azure may be with CI/CD.

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

      I do that in the Blazor Server In Depth course, the Application Lifecycle Design course, and soon I will do it in the TimCo Retail Manager course.

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

    What version of Visual Studio are you using? Thanks.

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

      For this video, VS2017 Enterprise Edition. Now I'm using Visual Studio 2019 Enterprise Edition. The Community Edition is all you need, though, and is free.

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

    Hi Tim, what is the best way to deploy a multi-project (e.g. DataLibrary + MVCApp) website to Azure?

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

      Use Azure DevOps to deploy it. I have a video on the subject and a course (Application Lifecycle Design).

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

      @@IAmTimCorey Thanks, I'm waiting to be able to afford the course. I'll check out the video until then. :)

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

    Hi Tim, thanks for the video. I deployed my Web Application to Azure successfully as you, but I am getting an error during the process of the app. My application reads data from an Excel file and it looks that office package is not installed there. How can I install Office package on Azure?
    Thanks

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

      You cannot. That's the downside of using Interop. It requires Excel to be installed on your web server. Check out this video to see how to build an Excel file without Interop: th-cam.com/video/j3S3aI8nMeE/w-d-xo.html

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

    Do you have any videos on deploying to a Azure Virtual Machine?

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

      No, but it would be the same as deploying to IIS. You would just need to make sure you can get through the firewall. I've used FTP in circumstances where it was messy to do a web deploy.

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

    how do you connect the published website using Azure App Service to the database that is created in Microsoft SQL server and moved to the Microsoft Azure ?

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

      You just change the connection string. In Azure Web Apps, you can even put the connection string in the portal so that it updates automatically for you.

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

    Great loved it... But, what if you need to publish in a company for a small web site for user work.. whats the easiest way for that? i am not talking cloud, just say in a bank, on a server in the banks network... How would you advise doing that?

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

      Web deployment is a tricky one. Usually I use a tool like Azure DevOps to do something like that. For non-cloud build that deploys to a local server, usually it ends up being either an on-prem installation of Azure DevOps or a bunch of scripts that transfer the built website over to IIS (or whatever your web host is).

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

    What is the difference between release and debug? When I alter code in debug and resolve changes, does that ultimately get fixed in the configuration "Release" too? Thanks.

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

      By the way Tim, you are amazing. I really appreciate everything you have done for the C# community. Because if your videos, I can succeed for my family. Your impact and reach go beyond farther than you could imagine.

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

      The difference has to do with how the code gets built. Debug mode keeps variable data around longer (rather than efficiently collecting the data) so you can more easily debug information, plus it does other similar techniques to work better with a debugging environment. The Release mode cleans up the code as much as possible, it handles memory efficiently, and more.

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

    Great video Tim.
    When you have a UI project a DataLibrary project in the same solution, how to we deploy these together so they still talk? (to a folder)?
    Many thanks!
    Ps, looking forward to the .Net Core video.

    • @IAmTimCorey
      @IAmTimCorey  4 ปีที่แล้ว +2

      The UI depends on the data library, so it compiles the data library as a DLL and includes it in the UI project's package. That means you don't need to deploy your data library separately.

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

      IAmTimCorey Ah, that makes sense! Thanks for the clarification Tim 👍.

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

    Very helpful video, as always. One thing I am currently struggling with, and perhaps a good subject for a future video, is using Visual Studio to develop static websites containing only html, css and JavaScript. I know I could have just used Notepad and an FTP client, but I enjoy the Visual Studio environment. I spent a lot of time figuring out how much debugging I could do in VS as opposed to the browser tools, and I’m not sure I understand it fully. And deploying the site caused some headaches as well, as I had to change page file names to lower case to make things work on the host. I’m a longtime (20+ year) VB/C# programmer making my first steps into Web programming, and it’s almost overwhelming. I did a site first in Webforms with C# code-behind, then I wanted to do a Firebase version and found it easiest to rewrite in only JavaScript (it wasn’t a very complex site, and I am grateful for the learning experience). But deployment is still a great mystery to me; so I would look forward to more on this particular subject if you find the time to make more videos.

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

      Check out Visual Studio Code. It is free and much better for web development. I'll be doing a video about it (or a few) next year.

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

    Thanks for the video, is very clear.
    I copied the files, after fighting I have the security working. Then I made a change in the application, build, publish it to the folder. The in IIS, I deleted the old files, copy the new published files and the site security were all messed up again. So Do I need just to replace the application.dll in the IIS folder?

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

      It sounds like you need to place security on the folder and have it pass down to it's children so that the security is applied when new files are added.

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

    I love the lesson. But what if I want to deploy more than 1 projects including sql data tools. Because I can not access the data project I built in the Aps.Net MVC solution.

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

      We do this in the TimCo Retail Manager series. You deploy the SQL Server Data Tools project to a database. Then, when you deploy your MVC project, you update the connection string to point to that deployed database.

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

      Thanks Tim. You're the best.

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

    I'm completely frustrated. (I know. This is supposed to be the easy stuff.) Can't get anything to connect. I can "Publish" okay but when I add the site to IIS and try to browse to it I first got a connect to sql server error. I played with the webconfig file and the new error is that I don't have permissions to read the config file. Now how can that be??????
    I've been trying to "deploy" the Tournament Tracker app using this video.
    Okay, I give up for now. On to the Tournament Tracker Add-on: WPF with MVVN course.

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

      IIS isn't easy. The SQL issue is probably the connection string. The permission thing is because IIS runs as a service under a service account (typically). So, you need to give that service access to the folder (and all sub-folders) where your published application lives. Deploying to Azure is actually a LOT easier.

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

      @@IAmTimCorey Thanks, Tim, but it seems like I've been overwhelming myself with your courses, and my brain is experiencing information overload. Think I'll take a step back and really practice the fundamentals I've seen thus far in a pet project of mine.

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

      @@IAmTimCorey Hi Tim.. Please how do you fix the connection string?? Cos I get the same sql-connection error page. Help me with any quick fix. Thanks

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

    I might be a little confused.Trying to deploy the website we built using the employee processor. Will this process not work with SQL?

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

      This video covers deploying a website. Deploying SQL is a separate process and a bit different.

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

      @@IAmTimCorey I realized this was a silly question a couple hours after posting it. I spent all afternoon trying to post a website just to find out my host doesn't support ASP. Thanks for the videos !

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

    What is the difference between hosting a web application on IIS Manager and azure?

    • @IAmTimCorey
      @IAmTimCorey  ปีที่แล้ว +10

      When you host on IIS, you have to configure the security, keep the server up to date, add your own SSL certificate and keep it renewed, configure the firewall settings, etc. When you host on Azure, those things are done for you, including the continual updates to the hosting software, firewall, operating system, etc. They even give you an SSL certificate and renew it for you.

  • @RafaelSantos-hg7jh
    @RafaelSantos-hg7jh 6 ปีที่แล้ว +1

    The last minutes that you talk about contínuos delivery and production👌 dont forget that. Maybe a in depth pay course, will be amazing. Why dont create some group, like you coaching and develop some website, simulating that. Just give some ideas, sorry :)

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

      Don't be sorry. I appreciate it. There will be a paid course coming up that will include the entire process of developing an application.

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

      That includes source control, ci/cd, different environments, etc.

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

    Why does IIS 10 show a directory listing instead of the application?

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

      It sounds like IIS isn't configured correctly. Make sure it is set up for the type of .NET application you are deploying and that you have the correct files in the directory.

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

    Does it works for web application?

  • @BoatLoad-o5z
    @BoatLoad-o5z 4 ปีที่แล้ว

    Hi Tim, I've always been curious about how Wix websites are published. How are users of wix.com able to create their websites using the website builder provided by Wix and then deploy the websites they've created to the server simply by clicking a button? I'm curious to know if I can use Dotnet and IIS to achieve the same functionality.

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

      Wix built a tool to do just that. You could do something similar with a .NET project, but it would involve some custom coding.

    • @BoatLoad-o5z
      @BoatLoad-o5z 4 ปีที่แล้ว

      @@IAmTimCorey Hi Tim, thanks for you reply. I'm only interested in the auto deployment feature of Wix. I'm assuming the custome code you're referring to which allows a one click deploy is a combination of something like Java or C# and most likely Powershell.

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

    Hi there
    I’m getting error when i publish website to the folder and then paste those to production server
    Error is :
    Parser Error Message: Could not load the assembly 'App_Web_default.aspx.cdcab7d2'. Make sure that it is compiled before accessing the page.
    Source Error:
    Line 1:
    But these dll file exist in Bin folder.
    I try to make website on both visual studio 10 and 15
    In both situations getting same error.
    Please tell how can i resolve this error.

    • @javiers.996
      @javiers.996 3 ปีที่แล้ว

      Try deleting the .cdcab7d2 part

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

    Does not have a Azure subscription, is it possible to deploy on AWS EC2 instance? Would the first option to change it into a folder and move to AWS works?

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

      I’m not familiar with AWS but you can definitely deploy to it.

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

      @@IAmTimCorey thank you for the video

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

    what if my website has multiple projects, like a class library, DAL (Database Access), etc? I imagine I can copy class libraries as a DLL, but what about other projects? must you use Azure/ dedicated web server?

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

      When you deploy your website, your class libraries go with that deployment. That means your Class Libraries (including your DAL and others) go with the site. You can deploy a web application to any server that supports .NET Framework (or even ones that don't if you are using a .NET Core project type).

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

    Thank for a great video. Is there another way to deploy ASP.Net Web application? I am developing an web application for a client and my client is hosting the app locally. Everytime I fix bugs I need to send a whole package and my client needs to copy and paste the app manually. I was wondering if their is any way to automate this(copy and paste and restart IIS part)

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

      Sure. It depends on how you want to do it but PowerShell is really good at these types of tasks. If you want to get a bit more "professional", you could use Azure DevOps (formerly VSTS) to create a build and deploy pipeline as long as your client can open up some ports (most importantly a data transfer mechanism like FTP or WebDeploy).

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

    I know from PHP website deployment I used to require a webserver and a domain name. How could I assign an old domain name I am still paying for to an exisiting project that has been deployed on my webserver (when accessing it by RDP)?

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

      You need to point your DNS for that domain name to the server. Then on the server, you need to make sure you are listening for that URL.

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

    Thanks man great teaching

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

    Awesome video, thanks!

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

    Hi Tim.. Is the way forward for ASP.NET Core local deployment with Kestrel ? I heard that ASP.NET Core and Kestrel are built for performance. But you still need IIS in front of it for better authentication and etc. It would be so nice if you put this tutorial in your next video list. Thank you Tim. Have a great day!

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

      Kestrel is great for local development and testing, but I still recommend using IIS (or Apache if deploying to Linux) for actual production use.

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

      IAmTimCorey Thanks Tim. Got it!!

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

    Hi Tim, your video is very useful.
    I want to know if it is the same for a ASP.NET application with SQL Server (using Entity Framework). If I want to use the Folder Publish method, should I follow the same steps?
    I imagine I need SQL Server Management Studio to be installed in the client machine.
    Thank you!

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

      Yes, it is the same steps and no, you don't need SSMS on the client machine. You just update your connection string to point to the right location and EF should create the database for you the first time you go to use it.

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

      @@IAmTimCorey I have no idea where the connection string is, and what is it for. I will try to follow your steps without updating it and see what happen. If you can give me more information I will be grateful

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

      Here is a video on what connection strings are and how to build them: th-cam.com/video/weE1CwfS9rI/w-d-xo.html

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

      ​@@IAmTimCorey Hi Tim, it's me again. So to install application on client machine I have to:
      1- Install SQL Server on client machine and create DB.
      2- Publish asp.net application on IIS on client machine with the files that Visual Studio generate.
      3- Change the connection string on Web.config file to use DB of the client machine.
      It's ok? Thank you for your help!

    • @user-sf5bt8eb4y
      @user-sf5bt8eb4y 4 ปีที่แล้ว

      @@IAmTimCorey hi Tim, I have a same question as @Maximo Librandi, hope you can do a full tutorial on deployment of MVC website locally/remotely. Also how do one install a DB on a client machine assuming we are running locally. Im guessing we need to install SSMS to set up a brand new database and import a script to populate all the tables and columns?

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

    Do you have any advice oh how to go about solving a 500 error? I have a student plan and when I deploy it my home page displays error.cshtml.

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

      A 500 error is a generic error. It could be anything. You will need to do some debugging to figure it out. Check the server event logs for clues, put logging into your application, etc.

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

      @@IAmTimCorey Ya so i ended up having to set a firewall rule on my db to allow my applications ip access to the db. Very new to azure and didn't know about the firewall rule.

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

    Can you please make a demo of how to publish my code in azure vm.

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

      Can you give a bit more detail on what you mean by "my code"?

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

      I mean how to publish/deploy asp.net project in the azure vm

    • @IAmTimCorey
      @IAmTimCorey  4 ปีที่แล้ว +2

      I can add that to the suggestion list.

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

    Is your email registration system down? I've registered several times for the code and don't get the downloads. Thank you. Love your content.

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

      Check your spam folder. If it isn’t there, email help@iamtimcorey.com with which video you aren’t getting the code for.

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

    Hi, how can i create an actual web page using c# mvc. I already created in one but i want to buy a server and put it there. What process should i follow ?

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

      This should help: th-cam.com/video/phyV-OQNeRM/w-d-xo.html

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

    Hi Tim.
    As usual, an excellent and straightforward video covering a lot.
    I setup one of my computers with IIS, reproduced the steps you showed and it worked perfectly.
    I tried to deploy an API Core app (just the VS sample with the weather forecast) to the same computer, but I can't open the default controller using that computer's IP address.
    I opened the port in the firewall as well.
    Is there something I should keep in mind publishing API apps?.
    Thank you very much.

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

      I would check your event logs to see if you are getting an error because the same publish steps should work for .NET Core.

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

      So, publishing an API shouldn’t be any different than any other web app.
      I’ll check the log files.
      Thank you for your quick reply.
      I really appreciate it.

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

    How can I access the website from other machine over the local network or internet?What URL should I use? I doubt http:/localhost:8080 will work. Sorry, still new in web development.

    • @IAmTimCorey
      @IAmTimCorey  5 ปีที่แล้ว +2

      You would need to open up that port (8080 in this case) in your machine's firewall and then access the website using your computer's internal IP address.

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

      @@IAmTimCorey Thank you very much! I needed that answer too

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

      @@IAmTimCorey Great video! I am having a problem though. I am trying connect to my site from another computer on my network using the IP address + port number, but it is saying that it can't connect. It even does the windows authentication step at the beginning, but after authenticating it acts as though it times out. I've turned off the firewall and opened up the port, but no luck. Any ideas? Any help would be greatly appreciated!

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

    so it doesnt work if you want to keep debugging and working on the api side? its only works once you finished your API and you wouldnt change anything else?

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

      I am not sure I understand. If you deploy your website, that's what the customer sees and runs. If you want to make an update to the site, you would need to overwrite the current website with the new changes.

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

    Tim, i`ve tried to deploy the web api used in your Tim Co retail manager course, it loads fine in the browser, but when trying to submit http request for authentication, it becomes unresponsive (with both the application and postman). Did i missed a step?

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

      Did you deploy the databases as well?

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

      @@IAmTimCorey i've tried unsuccessfully. So i created the aspnet tables in my sql server database.

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

      @@IAmTimCorey Hi Tim, I ran into the same problem when deploying my mvc web app. When I tried to log into my app I got the following error: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. How do I deploy my aspnetDb along with my mvc web app? Thanks in advance & great content btw!

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

    Can you do a video deploying an API using SSL? Thanks.

  • @dasmaffin1633
    @dasmaffin1633 2 ปีที่แล้ว +3

    HTTP Error 500.19 - Internal Server Error
    The requested page cannot be accessed because the related configuration data for the page is invalid.
    That is the error I get when trying to localhost:8080

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

      It also generates a whole bunch of files that look nothing like what you had, a billion dlls and what not Help please :(

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

    I am basically looking to build a web app that could be deployed into localhost, so will this work? Or do you have more options to my question?

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

      localhost just means your PC. You would need IIS installed on your PC (which you can do) and then yes, you can deploy to it.

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

    Hello, how ot make the same deploy to IIS but with sql express database?

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

      I’ll add that to the suggestion list.

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

    how to deploy using visual studio code or manually?

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

      I don't think I've ever deployed from VSCode. Right-click publish is just for development and quick updates. When I'm working on a "real" application, I set up Azure DevOps to do the deployment for me.