running winrm set winrm/config/Service '#{AllowUnencrypted="true"}' give Error number: -2147024894 0x80070002 - winrm

running the command: winrm set winrm/config/Service '#{AllowUnencrypted="true"}'
on Windows server 2019, give the fallowing error:
WSManFault
Message
ProviderFault
WSManFault
Message = The system cannot find the file specified.
Error number: -2147024894 0x80070002
The system cannot find the file specified.
We are trying to figure this out, 2 people, searching the internet, not finding nothing...
OPlease, if anyone have any idea, at least to point us in the proper search direction, it would be very very appreciated...
Thank you so much !!!

I resolved this by opening advance windows firewall, clicked exported rules (just in case), and then click restore to default. (Note this will enable the firewall profiles and could block RDP access or interfere with your applications). Afterwards the errors stopped. Hope that does the trick.

Try with
stop-service "Windows Firewall"
winrm set winrm/config/Service '#{AllowUnencrypted="true"}'
start-service "Windows Firewall"

Related

IISRESET windows 10 (IIS 10) Access denied

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%

client communication error on Virtual Machine running on cloudstack

I want to use terminal/console of ubuntu 14 installed on virtual machine running on cloudstack 4.6. I am able to use ubuntu 14 desktop normally but whenever I try to use the terminal from it, i get "Client communication error please retry later". Following is the screen shot of the error.
error
I am using college network behind a proxy server, could that be a problem ?
any suggestions ? Does anybody know where I am going wrong ?
Quickest way to troubleshoot this - on the browser window that houses the broken terminal, do a view source. In there you'll find a URL direct to your console proxy server. Copy and paste that URL into a new window and see if you can hit it directly. I'm guessing a firewall issue...

HTTP Binding missing in IIS

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:

Security issue with Azure

I need my application to run in FullTrust mode so I added this line to my web/config file:
I also modified the .csdef filr to enableNativeCodeExecution.
But when I want to run my application (which runs with no problems as a standard Asp.Net web app) I get the following message : "Role isntances did not start within the time allowed. Please try again. If you continue to encounter this behavior please try shutting down the Development Fabric."
And the following line on an event seen on the Event Viewer:
Exception message: This configuration section cannot be used at this path. This happens when the site administrator has locked access to this section using from an inherited configuration file. (C:\dev\azure\Server\bin\Debug\Server.csx\roles\AzureServer\web.config line 91) [which is the line where the trust level is set]
Any tip would be greatly appreciated.
BTW: I'm running on a Windows7 box
I think we got this resolved on the Windows Azure forum, but you need to just set enableNativeCodeExecution="true" (and not set in web.config).

Error while deploying setup web project of vs 2003

I am getting error as
The specified psth is unavailable.The Internet Information Server might not be running or the path exists and is redirected to another machine. Please check the status of this virtual directory in the Internet Services Manager
there isn't much information to go on in that message however I think it's one of two possibilities:
Your path as wrong (can you provide it?)
The folder in IIS isn't set (can you check this?)
All of which is from the error message so I'm not being very helpful, but from experience I think it's most likely to be the path so I would double check and then check again where your deploying to.
Cheers

Resources