I currently have a .NET Framework 4.6.2 Web application that I would like to host on my Windows Server 2019.
On my server, I went and installed IIS with the .NET Framework features.
After installing IIS, I opened IIS. Navigated to Sites. I right-clicked on Sites and selected Add Website.
I added my configuration below:
After setting up my configuration, I selected Ok.
I then went back to Visual Studio, I right-clicked on my project and selected publish.
I selected Folder publish and set my target location to a temp folder under my c-drive.
From there I clicked publish and this is the outcome in the folder:
After the publish was successful, I copied the files into the folder that I created on the server:
I then went to application pools and recycled my pool. After that, I went back to Sites and selected Browse website.
I was then greeted by the following message: HTTP Error 403.14 - Forbidden
The Web server is configured to not list the contents of this directory. 
Following the steps in the following post: HTTP Error 403.14 - Forbidden - The Web server is configured to not list the contents of this directory I went to sites, directory browsing, and select enable.
Now when I went to browse website, this was the result:
What is the next step in publishing my website? What am I missing?
I did try to browse to one of my pages but I received a 404 not found error




Aucun commentaire:
Enregistrer un commentaire