We help IT Professionals succeed at work.

IIS Server - Can't publish to IIS server

Using Visual Studio 2019 community on my local machine, I first published a simple asp.net(vb) webapp to folder on the server A ( IIS server (windows 2016 standard)) and then created an application pool and finally add this group [IIS_IUSRS] to the published site. But I still no getting no page when I click on the site link under “Browse Website” in IIS Manager. Please see the attached document about the steps I took
Watch Question

A default installation of IIS on windows server 2016 or 2019 does not have the classic ASP feature set installed.

Check in server roles and features that you have selected the ability to serve ASP and ASPX files on the server and add the features as necessary.
Miguel OzSenior Software Engineer
Top Expert 2009

Please check the server net framework version and your web site net framework version .

For example if you are targeting net framework 4.7.1 and your IIS server does not have you can follow this link

It is very important that both IIS server and your web site are using the same version.Also your web site must be running OK in your developer PC.
If more help needed, please provide:
- Is your web site running OK in your developer PC?
-  Server net framework version and your web site net framework version .
- Confirmation that you have correctly installed  your target Server net framework version.
- Build a simple html page (Hello world) and make sure it is working.
- your web site web.config file and or your project in a zip file


Hi Miguel,

Thanks for the guidance. I am able to run the webpage successfully in my local machine but not in the IIS so far.  I have not yet installed 4.7.2 in the IIS yet.
Please see my attached files...I had to remove the .exe files from one of the subfolders else the EE upload will not let me.

thank you


Just to clarify, the version of OS of windows server is
OS Version:                10.0.14393 N/A Build 14393


These are the .net framework versions in local vs server
Senior Software Engineer
Top Expert 2009
The reason is not working is that your site is targeting version 4.7.2 that is not installed in your server.
    <compilation targetFramework="4.7.2" />
    <httpRuntime targetFramework="4.7.2" />

Ok, if you are targeting .net 4.7.2, you need to make sure that IIS supports and it is linked to your .NET version , please follow the steps given in the link of my previous post. (using he right version of course, the steps are the same)
Once done just make a very simple asp.net website (the one that comes from template and deployed). if this works then your system is ready to go.
Then you can try your project afterwards.

Good luck


Thank you all :)