Here i am going to explain -- how to deploy the website in IIS smartly , Before you proceed don't forgot to check whether the IIS is installed in our local machine or not, Make sure that That process is success we should have IIS
Step 1: You can open the Visual studio whatever the application we need to deploy.
Step 2: Go to solution explorer and right click and choose Build ,check having any error or not , after that you can find the publish menu which is in solution explorer right click
stepp3:after click the publish then open a one wizard in that it will ask the location where you saved your published websites Ex: create a folder in anywhere in your Local Machines give that path by using browse button beside of that textbox
Step 4: Click on Publish The Website will Published on the target folder
Step 5: Right Click On the Website was published in the target folder and copy the path of a folder and paste the path inside the wwwroot folder that is C:\inetbub/wwwroot
Step 6:Now Open the ISS such click Start->run->type inetmgr click open IIS will open right now.
Step 7: Open the local computer in that open the websites after that open the Default Website in that you will find our website because you have already placed our published website in to WWWROOT folder.WWWROOT folder is the default path for IIS if we place any websites into wwwroot folder it will automatically displays under DEFAULT WEBSITE
Step 8: Click on the your website right side it will display all of your published pages select whatever the page first you need to run right click on that and click browse it will display your published website.
Step 9: At that time if you get any error please right click on website in Default Website goes to PROPERTIES and click on CREATE BUTTON and click OK button. Now browse your default page.
Step 1: You can open the Visual studio whatever the application we need to deploy.
Step 2: Go to solution explorer and right click and choose Build ,check having any error or not , after that you can find the publish menu which is in solution explorer right click
stepp3:after click the publish then open a one wizard in that it will ask the location where you saved your published websites Ex: create a folder in anywhere in your Local Machines give that path by using browse button beside of that textbox
Step 4: Click on Publish The Website will Published on the target folder
Step 5: Right Click On the Website was published in the target folder and copy the path of a folder and paste the path inside the wwwroot folder that is C:\inetbub/wwwroot
Step 6:Now Open the ISS such click Start->run->type inetmgr click open IIS will open right now.
Step 7: Open the local computer in that open the websites after that open the Default Website in that you will find our website because you have already placed our published website in to WWWROOT folder.WWWROOT folder is the default path for IIS if we place any websites into wwwroot folder it will automatically displays under DEFAULT WEBSITE
Step 8: Click on the your website right side it will display all of your published pages select whatever the page first you need to run right click on that and click browse it will display your published website.
Step 9: At that time if you get any error please right click on website in Default Website goes to PROPERTIES and click on CREATE BUTTON and click OK button. Now browse your default page.
Thank you!