I am trying to run the asp.net wep-app, which works locally, in docker windows container.
For this I am using https://hub.docker.com/_/microsoft-windows-servercore-iis
I have managed to start an application, but I have an issue of IIS user to access the performance counter:
Unhandled exception in Metrics.NET Library Error reading performance counter data.
The application is currently running as user IIS APPPOOL\.NET v4.5.
Make sure the user has access to the performance counters. The user needs to be either Admin or belong to Performance Monitor user group.
Access to the registry key 'Global' is denied.
System.UnauthorizedAccessException: Access to the registry key 'Global' is denied.
So I have tried to add IIS user to the proper user group, but was not able to manage to run ADWS service. Following the guides I've done this:
Add-WindowsFeature RSAT-AD-PowerShell
Get-ADDomain
But got the error:
Get-ADDomain : Unable to find a default server with Active Directory Web Services running.
And it looks like it is because ADWS service is not present.
Get-Service ADWS
Get-Service : Cannot find any service with service name 'ADWS'.
Again, after reading some guides, I have tried to install AD-Domain-Services, but again encountered an error:
Install-WindowsFeature -Name AD-Domain-Services -IncludeManagementTools
Install-WindowsFeature : The request to add or remove features on the specified server failed.
Installation of one or more roles, role services, or features failed.
The source files could not be found.
Use the "Source" option to specify the location of the files that are required to restore the feature. For more information on specifying a source location, see http://go.microsoft.com/fwlink/?LinkId=243077. Error: 0x800f081f
At line:1 char:1
+ Install-WindowsFeature -Name AD-Domain-Services -IncludeManagementToo ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (@{Vhd=; Credent...Name=localhost}:PSObject) [Install-WindowsFeature], Exception
+ FullyQualifiedErrorId : DISMAPI_Error__Failed_To_Enable_Updates,Microsoft.Windows.ServerManager.Commands.AddWindowsFeatureCommand
At this point I was totally confused and have no idea why it does not work =(
User contributions licensed under CC BY-SA 3.0