Questions tagged [servermanager]
93 questions
0
votes
1 answer
Server Manager.exe - .NET Framework Initialization Error
I'm using Azure VM with Windows Server 2022 Datacenter 21H2. Two weeks back, I created it, and from the end of last week, the server manager was not working. It gives an error.
" To run this application, you first must install one of the following…

Chathuranga Liyanage
- 13
- 5
0
votes
2 answers
"The WS-Management service cannot process the request. The service is configured to not accept any remote shell requests" when managing server
I can't do anything in server manager. I have tried enabling "Allow Remote Shell Access" in GPO. This is ridiculous how this just doesn't work for software costing OVER A THOUSAND DOLLARS!
UPDATE: Microsoft just doesn't know what the hell they're…

InfiniPLEX
- 1
- 2
0
votes
0 answers
Access requirements to start/stop IIS application pools remotely
When trying to stop/start IIS application pool on a remote server using
Invoke-Command -ComputerName $HostName -ScriptBlock {
param($ServiceName)
Start-WebAppPool -Name $ServiceName
} -ArgumentList…

Laser42
- 646
- 2
- 7
- 24
0
votes
0 answers
Error while updating web.config via ServerManager - Cannot write configuration file - shows wrong path of web.config in error
As part of installer code, we are trying to make changes to IIS (check and create virtual directory, followed by adding a section to its web.config file.
Installer was working fine till recently a strange error started haunting us and blocking the…

Sri Katte
- 67
- 7
0
votes
0 answers
ServerManager.CommitChanges() caused exception on applicationHost.config
When applying code like
using (ServerManager serverManager = new ServerManager())
{
var site = serverManager.Sites.SingleOrDefault(s => s.Name == siteName);
// some logic to add sites, set…
0
votes
0 answers
C# powershell servermanager module couldnt be loaded
PowerShell via C# PowerShell SDK fails to load ServerManager module on Windows Server 2019.
I am using command Get-WindowsFeature to find out if component is installed or not.
Exception:
System.Management.Automation.CommandNotFoundException: The…

user1085907
- 1,009
- 2
- 16
- 40
0
votes
1 answer
Configuring WebDav through ServerManager
I want to configure my IIS virtual folder to enable WebDav publishing. I can easily do it manually but I wanted to do the same thing via code, in C#.
I have no problem in creating sites or virtual directories and even adding properties such as mime…

AzeExMachina
- 104
- 14
0
votes
1 answer
ServerManager fails with 0x80040154 in c# Winforms app creating simple web application in IIS
I am writing a small app that installs IIS and configures a website before deploying the files to it.
On a freshly reset Windows 10, the first attempt always fails with the 0x80040154 COM+ component failure as documented in This question
I looked at…

john scott
- 11
- 2
0
votes
1 answer
Gracefully scale down heroku web dynos
Heroku has great utilities to manage web dynos. When we do a small release we use Preboot to gracefully switch over web dynos over to the new release.
However, if you want to scale down your web dynos, there is no graceful way to do so. Ideally we…

saGii
- 447
- 5
- 14
0
votes
1 answer
how can server be updated with features or changes without restarting it
I am learning some basics of server side coding in java and i know enough about how to run this server using command line (in ubuntu system) but what I don't understand is how can i manage this server..?
For example, if I want to update the code in…

Jay dev
- 17
- 7
0
votes
1 answer
Using Microsoft.Web.Administration from Powershell - it's connecting to my IISExpress instance instead of my main one?
I'm trying to manage my IIS instance through PowerShell.
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.Web.Administration") | Out-Null
$Iis = [Microsoft.Web.Administration.ServerManager]::OpenRemote($WebServer)
…

Pxtl
- 880
- 8
- 18
0
votes
2 answers
How do I modify an IIS FTP Authorization Rule for a specific path in C#?
In Server 2008+ I am programatically creating new folders in a virtual directory, Reports, in the FTP site. I can create a new FTP Authorization Rule for each new file path with:
using (ServerManager serverManager = new…

Velocedge
- 1,222
- 1
- 11
- 35
0
votes
1 answer
ServerManager.GetAdministrationConfiguration is empty on IIS 7.5
I want to manage IIS (versions 7-10) by using C# ServerManager сlass.
Locally GetAdministrationConfiguration method returns 1 section group and 2 sections in administration config (see code below).
But on remote server there are 0 section groups and…

Vladislav Moiseev
- 23
- 1
- 4
0
votes
1 answer
WCF Service running under app pool impersonating domain user account prints to network printer for one domain account but not another
I am using Windows Server 2016. Running on Windows 10 machine.
We had a system administrator who recently left our company. He set up the web server so I had rights to it and such. If I impersonate my own domain account on the app pool running my…

Ryan Wilson
- 10,223
- 2
- 21
- 40
0
votes
1 answer
How to create machine keys over IIS?
I have created machine key over IIS for some purpose. However I am worried what happens if I push new build over server.
Will my machine keys be removed as I have created them on server directly?
Also, I have created machine key on the server name…

gaurav prasad
- 9
- 8