How To Deploy ASP.NET Web Application on Internet Information Server (IIS)

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hi guys welcome to digital tech join in this session we are going to deploy our web application developed in asp.net core in our local is server that means local web server we will follow two methods and i'll show you step by step procedure in deploying the same so first we run the application which is developed in asp.net core uh and this application is fetched the data from your mysql database and displays in on the view so the application is ready if you want to get information about this project and see step by step procedure on displaying this data on the view you can refer the video that i've shared in the description now let's go ahead and publish this application on our local web server right click on the project click publish so we get all this option now in order to deploy our app web application on a local server there are two methods one is the folder and one is a web server so folder method uses local for a folder and we have to manually configure this folder in iis and point it to this folder directory so lets look at the first method we click on the folder click on next browse and you can create your folder as demo site click ok and then say finish so this is a profile created here is a part your physical part that is c dot c demo site now we can click on this existing we can we can click on various options available like i want to delete all the existing files prior to the publish so whenever i do a publish publishing the site it will always delete the existing folders and files from this demo site and then deploy the latest one and then whether we are doing it for the debug mode or release mode obviously we are doing it for the release mode because we are deploying it on our web server and we click on save and then once it's done so we have created a folder in c called demo site and we click on the once the configuration is done we click on publish now you can see in your output file the application is getting ready it's published all the required files in your c demo site next thing we need to go to the iis internet information service deployed on your on your pc click on sites we are going to create a virtual directory under default website right click and say add virtual directory name it as demo site whatever you want to name click on the physical part browse button and select the folder this is the site demo site click ok so once the folder is created you need to convert that into right click and convert that into app application click ok so by default this site is using default tool okay and we have to just ensure that default pool is using dot net version 4.0 now yes it is now once our site is we have marketed just click on the side and click browse okay now if you come across this error that means you click on the application pool and select default because this is using or you can create your own pool like you say add pool and say demo site make sure the version is 4.0 and in your demo site right click on the application tool and go to advanced setting in your identity section select local system you can also run with this application pool setting but you have to go ahead and allow the accessing your ms sql console anyway so we will select local system which by default uh takes up this rights and then refresh and then browse sorry i need to change the default pool so i click on on on your website virtual directory and say manage advanced setting and change the default app pool to demo site click ok now refresh and click browse got it so our site is successfully hosted on our local website we can just click and we can just paste it see site is up and running now let's go ahead and use the second method to deploy our website on a local server we will we will again uh just close this and we will again click on publish it will show you the existing profile which was built for local folder we will click on delete and delete this okay the same time we will go ahead and we want we can keep this as it is we'll create a new folder so we click on start now this time instead of folder we select web server which uses which deploys your application using web deploy or web deploy package so we will click on web server we click on next select web deploy click on next server since it is your local you just mentioned localhost site name you can say default website because we are going to use default this one so this is the exact name we have to default website and slash demo site 1 or we can just say demo okay no need to give a destination rather than click on finish so this profile is ready now now what we need to do is that click on release make sure this all is taken up yes and you can sorry put if you want you can put the url as slash slash host slash demo you can validate the connection so it's validated several will localhost this will be web deploy and save now what happens is that we need to click on publish and what will happen when you click on publish it will go ahead and create all the required folder in your iis and run the application directly so this is the same error so you know what we need to do is that if you refresh this default website you can see it has created a folder right click on that select go to advanced setting and change the pool to demo site now come over here again and just refresh done so guys we have shown you and demonstrated you two methods to deploy your web application on your local i server uh i hope you liked the video request you to please subscribe our channel and like this video thank you so much
Info
Channel: Digital TechJoint
Views: 38,354
Rating: undefined out of 5
Keywords: asp.net core, deploy web application, asp.net core iis, deploy asp.net core web application, host web application on IIS, asp.net IIS, learn deployment of web application, learn web deployment, deploy asp.net core web app, deploy web applications on windows IIS, learn ASP.net core, Visual Studio 2015
Id: a1s9bewol50
Channel Id: undefined
Length: 8min 35sec (515 seconds)
Published: Fri Oct 15 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.