I have a ASP.NET website, developed by a freelancer. After developing the website, he directly uploaded the website to my domain. Now, how can I host that website locally on my computer?
I dont have any experience in ASP.NET, however I do know HTML5 and CSS3. Looking at the files, I noticed they are all .cshtml
files.
Any help would be great. I have the login credentials of Plesk.
Thanks in advance
2
Answers
Assuming you are working with Windows, you will need to install an IIS on your machine. IIS is a part of Window’s features, you can try installing it under:
Control Panel > Program and features > Turn windows features On / Off > Internet Information Services.
In some versions of windows, IIS is not available. In that case, you will need to download IISExpress.
After that – Configure a new website under your IIS, and point the website to the directory in your computer which has the project.
Read more here:
Installing IIS
Setting up a website
You need to use IIS.
To do this, assuming you are on Windows, you need to enable it under the ‘Windows Features’ setting screen as below:
Check the ‘World Wide Web Services’ option, and also ‘IIS Management Console’ under the ‘Web Management Tools’ section.
After it installs, you will have a new program in your start menu, called ‘Internet Information Services (IIS) Manager’.
This is where you setup and configure any local websites. There will already be a default website set up, which you can use, or you can create a new one by right clicking on ‘Sites’ in the tree on the left, and selecting ‘Add Website’:
Assuming you just use the default, you will need to copy your application to
C:inetpubwwwroot
. You will then be able to access this by pointing your browser tohttp:\localhost
orhttp:\127.0.0.1
.