I'm just wondering, why I get error during an iisreset in my development machine.
When I execute the command in a Command Prompt some times it wokrs,sometimes it throws an Access Denied Error, and sometimes it throws a file not found exception.
If anyone finds a solution to this anoying problem, I would appreciate a hint how to get rid of it.
In the IIS I'm just hosting an .NET 4.6.1 MVC site.
This stupid error happens randomly and was very annoying especially when you place iisreset inside a script and assume it will do its thing; took me a while to figure it out. It is not related to the service being stopped as can be seen in this picture:
The only thing I use now is:
net stop W3SVC
and
net start W3SVC
Haven't had a problem since then.
I got exactly the same error time ago. Running it in German too. Take a look at this article: https://techcommunity.microsoft.com/t5/iis-support-blog/iis-reset-issue-restart-attempt-failed/ba-p/1031976
Judging from #Giorgi Nakeuri's question about the event logs. The "World Wide Web Publishing" (called only "WWW-Publishingdienst" in German) is very likely not running. You need to start it. The "Windows activity process service" fails because of the first one failing.
I think it says that he was unable to start the service, mainly due to a Problem with authorization. The solution of the problem can be provided in several different ways
1- Configuration causing the authorization error can be corrected
applicationHost.config with XML
2- This authorization can be revoked through the Windows register. Example approach here:
https://stackoverflow.com/a/21036837/914284
3- Machine configuration can be changed in accordance with this
permission. Please continue with the option that suits you :)
https://knowledge.digicert.com/solution/SO1360
i hope it will resolve
Specifying the machine name also helps in some scenarios:
iisreset %ComputerName%
Using IIS 7.5
Under binding type, these are the options that I see... but there's no http option available.
Binding type: - net.tcp - net.pipe - net.msmq - msmq.formatname
How can I get HTTP in there? I've tried un-installing IIS and reinstalling it, didn't help..
In case anyone else has this problem my final solution was to:
Remove WAS (Windows Activation Services)
Remove IIS
Reboot
Install WAS
Install IIS
Reboot
After that second reboot all of my bindings were back... Yay :)
Go to Control panel --> Programs and Features
1) Turn Windows features on or off
2) Unchecked "Internet Information Services" (IIS) and "Windows Process Activation Service" (WAS)
3) OK ....
4) You must restart your computer
When the Windows started
Go to Control panel --> Programs and Features
1) Turn Windows features on or off
2) Checked "Internet Information Services" (IIS) and "Windows Process Activation Service" (WAS)
3) OK
Good Luck!!
I find that most of the answers below are overkill. What's missing is the definition of http listenerAdapter in C:\WINDOWS\System32\Inetsrv\Config\applicationhost.config
Open the file in an editor (as admin), look for the <listenerAdapters> tag. My bet is that it does not list the "http" adaptor.
Add this line: <add name="http" /> immediately after <listenerAdapters>, save and exit.
Issue iisreset command as Administrator; restart IIS Manager - the selector is now in place
Question was asked quite a while ago but I figured I should post my solution since it ate up quite a bit of time and none of the suggested solutions here fixed it for me.
If you navigate to applicationHost.config, mine was under C:\Windows\System32\inetsrv\Config. Open it up and make sure you see http under listenerAdapters. Example shows https but you can do the same for http.
<listenerAdapters>
<add name = "https"/>
</listenerAdapters>
Solution was found from https://forums.iis.net/t/1177049.aspx?Problems+creating+a+new+site
I will add this for other dev's who will stumble this issue in the future.
The answers above are correct but there are times that you need also to disable
Hosted Web Core Applications IIS feature in order for your findings to be visible.
I have been having some similar issues, albeit slightly different setup. Mine was with IIS 10. When attempting to add a new site the binding type field was empty, there was no IP address or Port entry fields. numerous uninstall/re-installs didn't work either. In the end was the solution was to replace the config files located in C:\Windows\System32\Inetsrv\Config. Namely the applicationHost.config, administration.config & redirection.config. I pulled these from a clean install. As always you should take a backup before doing this, also please note that replacing these will cause you to lose any existing sites & setup so tread carefully.
I faced the same problem on Windows 10, resolved it with ljsg's suggestion.
In Console with elevated privileges (Run as Admin):
cd %SYSTEMROOT%\System32\Inetsrv\Config
copy *.clean.install *.
ren *.config *.back
ren *.config.clean *.
#powershell -Command "Disable-WindowsOptionalFeature -Online –All -FeatureName #('IIS-ApplicationDevelopment','IIS-ApplicationInit','IIS-ASP','IIS-ASPNET','IIS-ASPNET45','IIS-BasicAuthentication','IIS-CertProvider','IIS-CGI','IIS-ClientCertificateMappingAuthentication','IIS-CommonHttpFeatures','IIS-DefaultDocument','IIS-DigestAuthentication','IIS-DirectoryBrowsing','IIS-FTPServer','IIS-FTPSvc','IIS-HealthAndDiagnostics','IIS-HostableWebCore','IIS-HttpCompressionDynamic','IIS-HttpCompressionStatic','IIS-HttpErrors','IIS-HttpLogging','IIS-HttpRedirect','IIS-HttpTracing','IIS-IIS6ManagementCompatibility','IIS-IISCertificateMappingAuthentication','IIS-IPSecurity','IIS-ISAPIExtensions','IIS-ISAPIFilter','IIS-LegacyScripts','IIS-LegacySnapIn','IIS-LoggingLibraries','IIS-ManagementConsole','IIS-ManagementScriptingTools','IIS-ManagementService','IIS-Metabase','IIS-NetFxExtensibility','IIS-NetFxExtensibility45','IIS-Performance','IIS-RequestFiltering','IIS-RequestMonitor','IIS-Security','IIS-ServerSideIncludes','IIS-StaticContent','IIS-URLAuthorization','IIS-WebDAV','IIS-WebServer','IIS-WebServerManagementTools','IIS-WebServerRole','IIS-WebSockets','IIS-WindowsAuthentication','IIS-WMICompatibility','WCF-HTTP-Activation','WCF-HTTP-Activation45','WCF-NonHTTP-Activation','WCF-Pipe-Activation45','WCF-Services45','WCF-TCP-Activation45','WCF-TCP-PortSharing45','WAS-ConfigurationAPI','WAS-NetFxEnvironment','WAS-ProcessModel','WAS-WindowsActivationService')"
Then reboot, and follow with:
#powershell -Command "Enable-WindowsOptionalFeature -Online –All -FeatureName #('IIS-ApplicationDevelopment','IIS-ApplicationInit','IIS-ASP','IIS-ASPNET','IIS-ASPNET45','IIS-BasicAuthentication','IIS-CertProvider','IIS-CGI','IIS-ClientCertificateMappingAuthentication','IIS-CommonHttpFeatures','IIS-DefaultDocument','IIS-DigestAuthentication','IIS-DirectoryBrowsing','IIS-FTPServer','IIS-FTPSvc','IIS-HealthAndDiagnostics','IIS-HostableWebCore','IIS-HttpCompressionDynamic','IIS-HttpCompressionStatic','IIS-HttpErrors','IIS-HttpLogging','IIS-HttpRedirect','IIS-HttpTracing','IIS-IIS6ManagementCompatibility','IIS-IISCertificateMappingAuthentication','IIS-IPSecurity','IIS-ISAPIExtensions','IIS-ISAPIFilter','IIS-LegacyScripts','IIS-LegacySnapIn','IIS-LoggingLibraries','IIS-ManagementConsole','IIS-ManagementScriptingTools','IIS-ManagementService','IIS-Metabase','IIS-NetFxExtensibility','IIS-NetFxExtensibility45','IIS-Performance','IIS-RequestFiltering','IIS-RequestMonitor','IIS-Security','IIS-ServerSideIncludes','IIS-StaticContent','IIS-URLAuthorization','IIS-WebDAV','IIS-WebServer','IIS-WebServerManagementTools','IIS-WebServerRole','IIS-WebSockets','IIS-WindowsAuthentication','IIS-WMICompatibility','WCF-HTTP-Activation','WCF-HTTP-Activation45','WCF-NonHTTP-Activation','WCF-Pipe-Activation45','WCF-Services45','WCF-TCP-Activation45','WCF-TCP-PortSharing45','WAS-ConfigurationAPI','WAS-NetFxEnvironment','WAS-ProcessModel','WAS-WindowsActivationService')"
..of course features to install should be adjusted as needed.
I have got the error and solved by working as like above solutions But work with third one also.
"Internet Information Services" (IIS)
"Windows Process Activation Service" (WAS)
"Internet Information Services Hostable WebCore"
Third Windows feature - that need to uninstall/install: