UD from zip and IIS : Internal Error 500

Hi,

I’ve tried to reinstall the Windows2019 core server to test again and validate my own documentation wich try to describe how to deploy powershell universal in IIS website from ZIP source as described (cf. Failed to install MSI WinServer2019 Core )

  • I’ve got an Internal Error 500 when i try to access to the homepage.
  • In IIS Manager, when i tried to select some modules, an error is displayed :

Filename MACHINE/WEBROOT/APPHOST/Powershel Universal

without any description for the error …

I triple-check each point described here (from your post)

  • Roles and feature on the server
[X] File and Storage Services                           FileAndStorage-Services        Installed
    [X] Storage Services                                Storage-Services               Installed
[X] Web Server (IIS)                                    Web-Server                     Installed
    [X] Web Server                                      Web-WebServer                  Installed
        [X] Common HTTP Features                        Web-Common-Http                Installed
            [X] Default Document                        Web-Default-Doc                Installed
            [X] Directory Browsing                      Web-Dir-Browsing               Installed
            [X] HTTP Errors                             Web-Http-Errors                Installed
            [X] Static Content                          Web-Static-Content             Installed
            [X] HTTP Redirection                        Web-Http-Redirect              Installed
        [X] Health and Diagnostics                      Web-Health                     Installed
            [X] HTTP Logging                            Web-Http-Logging               Installed
        [X] Performance                                 Web-Performance                Installed
            [X] Static Content Compression              Web-Stat-Compression           Installed
        [X] Security                                    Web-Security                   Installed
            [X] Request Filtering                       Web-Filtering                  Installed
            [X] IIS Client Certificate Mapping Authe... Web-Cert-Auth                  Installed
            [X] IP and Domain Restrictions              Web-IP-Security                Installed
            [X] URL Authorization                       Web-Url-Auth                   Installed
            [X] Windows Authentication                  Web-Windows-Auth               Installed
        [X] Application Development                     Web-App-Dev                    Installed
            [X] .NET Extensibility 4.7                  Web-Net-Ext45                  Installed
            [X] ASP.NET 4.7                             Web-Asp-Net45                  Installed
            [X] ISAPI Extensions                        Web-ISAPI-Ext                  Installed
            [X] ISAPI Filters                           Web-ISAPI-Filter               Installed
            [X] WebSocket Protocol                      Web-WebSockets                 Installed
    [X] Management Tools                                Web-Mgmt-Tools                 Installed
        [X] IIS Management Console                      Web-Mgmt-Console               Installed
        [X] Management Service                          Web-Mgmt-Service               Installed
[X] .NET Framework 4.7 Features                         NET-Framework-45-Fea...        Installed
    [X] .NET Framework 4.7                              NET-Framework-45-Core          Installed
    [X] ASP.NET 4.7                                     NET-Framework-45-ASPNET        Installed
    [X] WCF Services                                    NET-WCF-Services45             Installed
        [X] HTTP Activation                             NET-WCF-HTTP-Activat...        Installed
        [X] Message Queuing (MSMQ) Activation           NET-WCF-MSMQ-Activat...        Installed
        [X] Named Pipe Activation                       NET-WCF-Pipe-Activat...        Installed
        [X] TCP Activation                              NET-WCF-TCP-Activati...        Installed
        [X] TCP Port Sharing                            NET-WCF-TCP-PortShar...        Installed
[X] Message Queuing                                     MSMQ                           Installed
    [X] Message Queuing Services                        MSMQ-Services                  Installed
        [X] Message Queuing Server                      MSMQ-Server                    Installed
[X] Windows PowerShell                                  PowerShellRoot                 Installed
    [X] Windows PowerShell 5.1                          PowerShell                     Installed
[X] Windows Process Activation Service                  WAS                            Installed
    [X] Process Model                                   WAS-Process-Model              Installed
    [X] Configuration APIs                              WAS-Config-APIs                Installed
  • ASPdotNET Core Hosting Bundle 3.1 :heavy_check_mark:

  • Powershell Universal 1.2.9 ZIP extracted on D:\data\Universal\www with additional rights to IIS_USRS :heavy_check_mark:

  • IIS App Pool with Local system Built-In Account, Not Managed and with specific settings as described :heavy_check_mark:

  • web.config path modified :heavy_check_mark:

processPath=“D:\data\Universal\www\Universal.Server.exe” arguments=“”
forwardWindowsAuthToken=“false”
stdoutLogEnabled=“true”
stdoutLogFile=“D:\data\Universal\www\logs\log”

  • Site created following instructions (correct pool, bindings on 80 to begin …) :heavy_check_mark:

  • Logs are empty in D:\data\Universal\www\logs since i purged them :sweat_smile:

By the way, when i register and start the Windows Service, it works on port 5000. IIS configuration seems to be in cause.

Before reinstalling the server, i tried to install the MSI without success. But i remember that files where updated on %PROGRAMDATA% instead of D:\data\Universal\www (in my case). Do the MSI have succeeded to install some dependencies before failing in my previous tries ?

Do i need to customize the default database location via the PowerShell Universal appsettings.json ?

EDIT :
I have updated path in this file, it works with the service, not with IIS :face_with_symbols_over_mouth:

{
  "Kestrel": {
    "Endpoints": {
      "HTTP": {
        "Url": "http://*:5000"
      }
    }
  },
  "ApplicationInsights": {
    "InstrumentationKey": ""
  },
  "Logging": {
      "Path":"D:/data/Universal/www/PowerShellUniversal/log.txt",
      "LogLevel": {
      "Default": "Information",
      "Microsoft": "Warning",
      "Microsoft.Hosting.Lifetime": "Information"
      }
    },
  "AllowedHosts": "*",
  "Data": {
    "RepositoryPath": "D:\\data\\Universal\\UniversalAutomation\\Repository",
    "ConnectionString": "D:\\data\\Universal\\UniversalAutomation\\database.db",
    "GitRemote": "",
    "GitUserName": "",
    "GitPassword": ""
  },
  "Api": {
    "Url": ""
  },
  "Authentication" : {
    "Windows": {
      "Enabled": "false"
    },
    "WSFed": {
      "Enabled": "false",
      "MetadataAddress": "",
      "Wtrealm": "",
      "CallbackPath": "/auth/signin-wsfed"
    },
    "OIDC": {
      "Enabled": "false",
      "CallbackPath": "/auth/signin-oidc",
      "ClientID": "",
      "ClientSecret": "",
      "Resource": "",
      "Authority": "",
      "ResponseType": "",
      "SaveTokens": "false"
    },
    "SessionTimeout": "25"
  },
  "Jwt": {  
    "SigningKey": "PleaseUseYourOwnSigningKeyHere",  
    "Issuer": "IronmanSoftware",
    "Audience": "PowerShellUniversal"
  },
  "UniversalDashboard": {
    "AssetsFolder": "D:\\data\\Universal\\PowerShellUniversal\\Dashboard"
  }
}

I’ve read 502.5 error - Can't get UDDashboard running in IIS and do i need to install/use Import-Module UniversalDashboard.Community ?
I really tried to resolve it by mysef but it seems that i need some help.

:grin:

Can you check the event viewer application log? It seems like IIS is not even starting Universal for some reason.

I take a look on Application logs on the event viewer.
As you can see, i refer only to the last 11 minutes after rebooting it. :thinking:

Get-EventLog application -ComputerName $env:COMPUTERNAME -After (Get-Date).AddMinutes(-11) | where {($_.EntryType -Match "Error") -or ($_.Entry
Type -Match "Warning")}

   Index Time          EntryType   Source                 InstanceID Message
   ----- ----          ---------   ------                 ---------- -------
     878 juil. 21 2... Error       Software Protecti...   3221233670 License Activation (slui.exe) failed with the following error code:...
     860 juil. 21 2... Warning     EvntAgnt               2147486655 Error opening event log file State. Log will not be processed. Return code from OpenEventLog is 87.
     859 juil. 21 2... Warning     EvntAgnt               2147486655 Error opening event log file Parameters. Log will not be processed. Return code from OpenEventLog is 87.

I will update some informations when i will find it. :sweat_smile:
Have you got some advices ?

Thanks

That’s strange that it’s not reporting an errors.

Do you have some time to do a Zoom call to look at this together? It might be quicker to get it up and running.

1 Like

It is certainly a bad configuration of IIS or something else that i have mistaken and i don’t really want to get your time loss … :innocent:

But yes, no problem to try a call even if i’m a :fr: french guy and that you’ll have to talk very slowly ^^

Here is some logs from the past 2 days :

`Get-EventLog application -ComputerName $env:COMPUTERNAME -After (Get-Date).AddDays((-2)) | where {($_.EntryType -Match "Error") -or ($_.EntryType -Match "Warning")}`
EventID MachineName Data Index Category CategoryNumber EntryType Message Source ReplacementStrings InstanceId TimeGenerated TimeWritten UserName Site Container
0 R5-POSHUD-T System.Byte[] 923 (0) 0 Warning Category: Universal.Server.Services.DashboardManagerEventId: 0Dashboard proxy for dashboard 1 not found. Universal.Server System.String[] 0 23/07/2020 06:55:23 23/07/2020 06:55:23 1
1 R5-POSHUD-T System.Byte[] 921 (0) 0 Error Category: Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareEventId: 1ConnectionId: 0HM1DVD3FMC4BRequestId: 0HM1DVD3FMC4B:00000001RequestPath: /api/internal/dashboardSpanId: e8067c920bfcb346TraceId: 6c04fa89943d214eb9f3d2ca3e11276fParentId: 0000000000000000An unhandled exception has occurred while executing the request.Exception: System.NullReferenceException: Object reference not set to an instance of an object. at UniversalDashboard.Controllers.UDDashboardController.Index() in C:\src\universal\src\Universal.Server\Controllers\UDDashboardController.cs:line 71 at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited 12_0(ControllerActionInvoker invoker, ValueTask1 actionResultValueTask) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()--- End of stack trace from previous location where exception was thrown --- at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|24_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()--- End of stack trace from previous location where exception was thrown --- at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker) at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger) at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context) at Universal.Server.Middleware.RoutingMiddleware.Invoke(HttpContext httpContext, IPolicyEvaluator policyEvaluator) in C:\src\universal\src\Universal.Server\Middleware outingMiddleware.cs:line 81 at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext) at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider) at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task) | Universal.Server | System.String[] | 1 | 23/07/2020 06:55:11 | 23/07/2020 06:55:11 | | | 1 | R5-POSHUD-T | System.Byte[] | 920 | (0) | 0 | Error | Category: Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareEventId: 1ConnectionId: 0HM1DVD3FMC49RequestId: 0HM1DVD3FMC49:00000001RequestPath: /api/internal/dashboardSpanId: 863d0c1d6eddca47TraceId: f88830719affd648962b2e0766b37261ParentId: 0000000000000000An unhandled exception has occurred while executing the request.Exception: System.NullReferenceException: Object reference not set to an instance of an object. at UniversalDashboard.Controllers.UDDashboardController.Index() in C:\src\universal\src\Universal.Server\Controllers\UDDashboardController.cs:line 71 at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask1 actionResultValueTask) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited 10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()— End of stack trace from previous location where exception was thrown — at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited 24_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()— End of stack trace from previous location where exception was thrown — at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Logged 17_1(ResourceInvoker invoker) at Microsoft.AspNetCore.Routing.EndpointMiddleware.g__AwaitRequestTask 6_0(Endpoint endpoint, Task requestTask, ILogger logger) at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context) at Universal.Server.Middleware.RoutingMiddleware.Invoke(HttpContext httpContext, IPolicyEvaluator policyEvaluator) in C:\src\universal\src\Universal.Server\Middleware outingMiddleware.cs:line 81 at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext) at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider) at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.g__Awaited 6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task) Universal.Server System.String[]
1 R5-POSHUD-T System.Byte[] 919 (0) 0 Error Category: Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareEventId: 1ConnectionId: 0HM1DVD3FMC49RequestId: 0HM1DVD3FMC49:00000001RequestPath: /api/internal/dashboardSpanId: 863d0c1d6eddca47TraceId: f88830719affd648962b2e0766b37261ParentId: 0000000000000000An unhandled exception has occurred while executing the request.Exception: System.NullReferenceException: Object reference not set to an instance of an object. at UniversalDashboard.Controllers.UDDashboardController.Index() in C:\src\universal\src\Universal.Server\Controllers\UDDashboardController.cs:line 71 at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited 12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited 10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()— End of stack trace from previous location where exception was thrown — at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited 24_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()— End of stack trace from previous location where exception was thrown — at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Logged 17_1(ResourceInvoker invoker) at Microsoft.AspNetCore.Routing.EndpointMiddleware.g__AwaitRequestTask 6_0(Endpoint endpoint, Task requestTask, ILogger logger) at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context) at Universal.Server.Middleware.RoutingMiddleware.Invoke(HttpContext httpContext, IPolicyEvaluator policyEvaluator) in C:\src\universal\src\Universal.Server\Middleware outingMiddleware.cs:line 81 at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext) at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider) at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.g__Awaited 6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task) Universal.Server System.String[]
3 R5-POSHUD-T System.Byte[] 918 (0) 0 Error Category: Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionManagerEventId: 3ConnectionId: 0HM1DVD3FMC48RequestId: 0HM1DVD3FMC48:00000001RequestPath: /dashboardhubSpanId: d63756d21ee4cf45TraceId: dd63d6b13f12ee45bc13336910fc0b11ParentId: 0000000000000000TransportConnectionId: -tGGTSVVLphhzgb2hqhysAFailed disposing connection -tGGTSVVLphhzgb2hqhysA.Exception: System.NullReferenceException: Object reference not set to an instance of an object. at UniversalDashboard.DashboardHub.OnDisconnectedAsync(Exception exception) in C:\src\universal\src\Universal.Server\Hubs\DashboardHub.cs:line 61 at Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher1.OnDisconnectedAsync(HubConnectionContext connection, Exception exception) at Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher1.OnDisconnectedAsync(HubConnectionContext connection, Exception exception) at Microsoft.AspNetCore.SignalR.HubConnectionHandler1.HubOnDisconnectedAsync(HubConnectionContext connection, Exception exception) at Microsoft.AspNetCore.SignalR.HubConnectionHandler1.RunHubAsync(HubConnectionContext connection) at Microsoft.AspNetCore.SignalR.HubConnectionHandler1.OnConnectedAsync(ConnectionContext connection) at Microsoft.AspNetCore.SignalR.HubConnectionHandler1.OnConnectedAsync(ConnectionContext connection) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionContext.ExecuteApplication(ConnectionDelegate connectionDelegate) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionContext.WaitOnTasks(Task applicationTask, Task transportTask, Boolean closeGracefully) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionContext.DisposeAsync(Boolean closeGracefully) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionManager.DisposeAndRemoveAsync(HttpConnectionContext connection, Boolean closeGracefully) Universal.Server System.String[] 3 23/07/2020 06:35:23 23/07/2020 06:35:23
1 R5-POSHUD-T System.Byte[] 917 (0) 0 Error Category: Microsoft.AspNetCore.SignalR.HubConnectionHandlerEventId: 1ConnectionId: 0HM1DVD3FMC48RequestId: 0HM1DVD3FMC48:00000001RequestPath: /dashboardhubSpanId: d63756d21ee4cf45TraceId: dd63d6b13f12ee45bc13336910fc0b11ParentId: 0000000000000000TransportConnectionId: -tGGTSVVLphhzgb2hqhysAError when dispatching ‘OnDisconnectedAsync’ on hub.Exception: System.NullReferenceException: Object reference not set to an instance of an object. at UniversalDashboard.DashboardHub.OnDisconnectedAsync(Exception exception) in C:\src\universal\src\Universal.Server\Hubs\DashboardHub.cs:line 61 at Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher1.OnDisconnectedAsync(HubConnectionContext connection, Exception exception) at Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher1.OnDisconnectedAsync(HubConnectionContext connection, Exception exception) at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.HubOnDisconnectedAsync(HubConnectionContext connection, Exception exception) Universal.Server System.String[] 1 23/07/2020 06:35:23 23/07/2020 06:35:23
8198 R5-POSHUD-T System.Byte[] 912 (0) 0 Error License Activation (slui.exe) failed with the following error code:hr=0x8007139FCommand-line arguments:RuleId=eeba1977-569e-4571-b639-7623d8bfecc0 Action=AutoActivate AppId=55c92734-d682-4d71-983e-d6ec3f16059f SkuId=de32eafd-aaee-4662-9444-c1befb41bde2 NotificationInterval=1440 Trigger=TimerEvent Software Protection Platform Service System.String[] 3221233670
0 R5-POSHUD-T System.Byte[] 897 (0) 0 Warning Category: Universal.Server.Services.DashboardManagerEventId: 0Dashboard proxy for dashboard 1 not found. Universal.Server System.String[] 0 22/07/2020 06:57:47 22/07/2020 06:57:47 0
0 R5-POSHUD-T System.Byte[] 895 (0) 0 Warning Category: UniversalAutomation.DashboardControllerEventId: 0ConnectionId: 0HM1DVD3FMC3NRequestId: 0HM1DVD3FMC3N:00000001RequestPath: /api/v1/dashboard/1/diagnosticsSpanId: f194ddc03d750542TraceId: f26f41cbc387e941ad6ffc2a85bc6ce8ParentId: 0000000000000000ActionId: 5b0f721e-0506-4f43-b284-903e26ea6ec7ActionName: UniversalAutomation.DashboardController.GetDiagnosticsAsync (Universal.Server)Dashboard 1 not found. Universal.Server System.String[] 0 22/07/2020 06:56:44 22/07/2020 06:56:44
0 R5-POSHUD-T System.Byte[] 894 (0) 0 Warning Category: Universal.Server.Services.DashboardManagerEventId: 0ConnectionId: 0HM1DVD3FMC3JRequestId: 0HM1DVD3FMC3J:00000025RequestPath: /api/v1/dashboard/1/statusSpanId: 9b3a575d36595b48TraceId: 73eaf09a44130748b2ff8cee677ca1e9ParentId: 0000000000000000ActionId: 5a79e641-78c5-4f0b-91ea-b4f12aeff539ActionName: UniversalAutomation.DashboardController.Stop (Universal.Server)Dashboard proxy for dashboard 1 not found. Universal.Server System.String[] 0 22/07/2020 06:56:39 22/07/2020 06:56:39 3
0 R5-POSHUD-T System.Byte[] 892 (0) 0 Warning Category: Universal.Server.Services.DashboardManagerEventId: 0Dashboard proxy for dashboard 1 not found. Universal.Server System.String[] 0 22/07/2020 06:54:01 22/07/2020 06:54:01 0
0 R5-POSHUD-T System.Byte[] 890 (0) 0 Error Category: Universal.Server.Services.DashboardAssetManagerEventId: 0The specified RequiredModules entry ‘Universal’ in the module manifest ‘D:\data\Universal\www\UniversalDashboard\Frameworks\v2\UniversalDashboard.psd1’ is invalid. Try again after updating this entry with valid values. Universal.Server System.String[] 0 22/07/2020 06:54:00 22/07/2020 06:54:00
8198 R5-POSHUD-T System.Byte[] 878 (0) 0 Error License Activation (slui.exe) failed with the following error code:hr=0x8007139FCommand-line arguments:RuleId=eeba1977-569e-4571-b639-7623d8bfecc0 Action=AutoActivate AppId=55c92734-d682-4d71-983e-d6ec3f16059f SkuId=de32eafd-aaee-4662-9444-c1befb41bde2 NotificationInterval=1440 Trigger=NetworkAvailable Software Protection Platform Service System.String[] 3221233670
3007 R5-POSHUD-T System.Byte[] 860 (0) 0 Warning Error opening event log file State. Log will not be processed. Return code from OpenEventLog is 87. EvntAgnt System.String[] 2147486655 21/07/2020 21:15:08 21/07/2020 21:15:08
3007 R5-POSHUD-T System.Byte[] 859 (0) 0 Warning Error opening event log file Parameters. Log will not be processed. Return code from OpenEventLog is 87. EvntAgnt System.String[] 2147486655 21/07/2020 21:15:08 21/07/2020 21:15:08
0 R5-POSHUD-T System.Byte[] 850 (0) 0 Warning Category: Universal.Server.Services.SecurityProxyEventId: 0Exception during stop.Exception: System.NullReferenceException: Object reference not set to an instance of an object. at Universal.Server.Services.SecurityProxy.StopAsync() in C:\src\universal\src\Universal.Server\Services\SecurityProxy.cs:line 77 Universal.Server System.String[] 0 21/07/2020 21:09:20 21/07/2020 21:09:20
0 R5-POSHUD-T System.Byte[] 849 (0) 0 Warning Category: Universal.Server.Services.DashboardManagerEventId: 0Dashboard proxy for dashboard 1 not found. Universal.Server System.String[] 0 21/07/2020 21:08:41 21/07/2020 21:08:41 0
0 R5-POSHUD-T System.Byte[] 847 (0) 0 Warning Category: UniversalAutomation.DashboardControllerEventId: 0ConnectionId: 0HM1DKJM031S6RequestId: 0HM1DKJM031S6:00000005RequestPath: /api/v1/dashboard/1/diagnosticsSpanId: f13da2b6e50ad946TraceId: 9363ca5edd709047acd150869002040bParentId: 0000000000000000ActionId: d015a5da-33df-458c-a06c-2fdcaed69749ActionName: UniversalAutomation.DashboardController.GetDiagnosticsAsync (Universal.Server)Dashboard 1 not found. Universal.Server System.String[] 0 21/07/2020 21:08:06 21/07/2020 21:08:06
0 R5-POSHUD-T System.Byte[] 846 (0) 0 Warning Category: Universal.Server.Services.DashboardManagerEventId: 0Dashboard proxy for dashboard 1 not found. Universal.Server System.String[] 0 21/07/2020 21:07:55 21/07/2020 21:07:55
0 R5-POSHUD-T System.Byte[] 845 (0) 0 Warning Category: UniversalAutomation.DashboardControllerEventId: 0ConnectionId: 0HM1DKJM031S4RequestId: 0HM1DKJM031S4:00000002RequestPath: /api/v1/dashboard/1/diagnosticsSpanId: 73656484466abd4aTraceId: 8807088bd803724c8a57c806bedb1cccParentId: 0000000000000000ActionId: d015a5da-33df-458c-a06c-2fdcaed69749ActionName: UniversalAutomation.DashboardController.GetDiagnosticsAsync (Universal.Server)Dashboard 1 not found. Universal.Server System.String[] 0 21/07/2020 21:07:22 21/07/2020 21:07:22
0 R5-POSHUD-T System.Byte[] 844 (0) 0 Warning Category: UniversalAutomation.DashboardControllerEventId: 0ConnectionId: 0HM1DKJM031S4RequestId: 0HM1DKJM031S4:00000002RequestPath: /api/v1/dashboard/1/diagnosticsSpanId: 73656484466abd4aTraceId: 8807088bd803724c8a57c806bedb1cccParentId: 0000000000000000ActionId: d015a5da-33df-458c-a06c-2fdcaed69749ActionName: UniversalAutomation.DashboardController.GetDiagnosticsAsync (Universal.Server)Dashboard 1 not found. Universal.Server System.String[] 0 21/07/2020 21:07:22 21/07/2020 21:07:22
0 R5-POSHUD-T System.Byte[] 840 (0) 0 Warning Category: Universal.Server.Services.DashboardManagerEventId: 0Dashboard proxy for dashboard 1 not found. Universal.Server System.String[] 0 21/07/2020 20:59:09 21/07/2020 20:59:09 0
0 R5-POSHUD-T System.Byte[] 838 (0) 0 Warning Category: UniversalAutomation.DashboardControllerEventId: 0ConnectionId: 0HM1DKJM031RRRequestId: 0HM1DKJM031RR:00000008RequestPath: /api/v1/dashboard/1/diagnosticsSpanId: e2946d29d0f3464dTraceId: 3a433fa1c85037479444b20ba23e2501ParentId: 0000000000000000ActionId: d015a5da-33df-458c-a06c-2fdcaed69749ActionName: UniversalAutomation.DashboardController.GetDiagnosticsAsync (Universal.Server)Dashboard 1 not found. Universal.Server System.String[] 0 21/07/2020 20:57:12 21/07/2020 20:57:12
0 R5-POSHUD-T System.Byte[] 832 (0) 0 Warning Category: Universal.Server.Services.DashboardManagerEventId: 0Dashboard proxy for dashboard 1 not found. Universal.Server System.String[] 0 21/07/2020 20:41:02 21/07/2020 20:41:02
0 R5-POSHUD-T System.Byte[] 830 (0) 0 Warning Category: UniversalAutomation.DashboardControllerEventId: 0ConnectionId: 0HM1DKJM031RQRequestId: 0HM1DKJM031RQ:00000001RequestPath: /api/v1/dashboard/1/diagnosticsSpanId: 9301d890a10bdc4cTraceId: 1ef0aad13812554085158f3aa32d7097ParentId: 0000000000000000ActionId: d015a5da-33df-458c-a06c-2fdcaed69749ActionName: UniversalAutomation.DashboardController.GetDiagnosticsAsync (Universal.Server)Dashboard 1 not found. Universal.Server System.String[] 0 21/07/2020 20:40:01 21/07/2020 20:40:01
0 R5-POSHUD-T System.Byte[] 829 (0) 0 Warning Category: Universal.Server.Services.DashboardManagerEventId: 0Dashboard proxy for dashboard 1 not found. Universal.Server System.String[] 0 21/07/2020 20:39:45 21/07/2020 20:39:45
3 R5-POSHUD-T System.Byte[] 822 (0) 0 Warning Category: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddlewareEventId: 3ConnectionId: 0HM1DKJM031RKRequestId: 0HM1DKJM031RK:00000001RequestPath: /SpanId: 4fc94061cfc0b244TraceId: 5ccdfcf014db554bb52396b5a6ea2273ParentId: 0000000000000000Failed to determine the https port for redirect. Universal.Server System.String[] 3 21/07/2020 20:36:03 21/07/2020 20:36:03
0 R5-POSHUD-T System.Byte[] 821 (0) 0 Warning Category: Universal.Server.Services.DashboardManagerEventId: 0Dashboard proxy for dashboard 1 not found. Universal.Server System.String[] 0 21/07/2020 20:35:56 21/07/2020 20:35:56
0 R5-POSHUD-T System.Byte[] 820 (0) 0 Error Category: Universal.Server.Services.DashboardAssetManagerEventId: 0The specified RequiredModules entry ‘Universal’ in the module manifest ‘D:\data\Universal\www\UniversalDashboard\Frameworks\v3\UniversalDashboard.psd1’ is invalid. Try again after updating this entry with valid values. Universal.Server System.String[] 0 21/07/2020 20:35:56 21/07/2020 20:35:56
0 R5-POSHUD-T System.Byte[] 819 (0) 0 Error Category: Universal.Server.Services.DashboardAssetManagerEventId: 0The specified RequiredModules entry ‘Universal’ in the module manifest ‘D:\data\Universal\www\UniversalDashboard\Frameworks\v2\UniversalDashboard.psd1’ is invalid. Try again after updating this entry with valid values. Universal.Server System.String[] 0 21/07/2020 20:35:56 21/07/2020 20:35:56
1023 R5-POSHUD-T System.Byte[] 816 (0) 0 Error Windows cannot load the extensible counter DLL C:\Windows\System32\perfts.dll (Win32 error code 126). Microsoft-Windows-Perflib System.String[] 1023 21/07/2020 20:35:02 21/07/2020 20:35:02 NT AUTHORITY\SYSTEM
1023 R5-POSHUD-T System.Byte[] 815 (0) 0 Error Windows cannot load the extensible counter DLL C:\Windows\Microsoft.NET\Framework64\v2.0.50727\aspnet_perf.dll (Win32 error code 126). Microsoft-Windows-Perflib System.String[] 1023 21/07/2020 20:35:01 21/07/2020 20:35:01 NT AUTHORITY\SYSTEM
1023 R5-POSHUD-T System.Byte[] 814 (0) 0 Error Windows cannot load the extensible counter DLL C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_perf.dll (Win32 error code 126). Microsoft-Windows-Perflib System.String[] 1023 21/07/2020 20:35:01 21/07/2020 20:35:01 NT AUTHORITY\SYSTEM

I tried the same install on another server (with UI) and the message isn’t really the same :

IIS 10.0 Detailed Error - 500.19 - Internal Server Error

HTTP Error 500.19 - Internal Server Error

The requested page cannot be accessed because the related configuration data for the page is invalid.

Detailed Error Information:

Module IIS Web Core
Notification Unknown
Handler Not yet determined
Error Code 0x8007000d
Config Error
Config File \?\D:\POSHUD\Universal\www\web.config
Requested URL http://r1-report:80/
Physical Path
Logon Method Not yet determined
Logon User Not yet determined

Config Source:

   -1: 
    0: 

More Information:

This error occurs when there is a problem reading the configuration file for the Web server or Web application. In some cases, the event logs may contain more information about what caused this error.

View more information »

After a little search, i take a look here : HTTP Error 500.19 on Internet Information Services (IIS) webpages - Internet Information Services | Microsoft Learn and it says :

### Cause for HResult code 0x8007000d

This problem occurs because the  *ApplicationHost.config*  file or the  *Web.config*  file contains a malformed XML element.

I’ve tried with the web.config with a fresh install and mine with no success :

#web.config file
 <?xml version="1.0" encoding="utf-8"?>
 <configuration>
   <system.webServer>
     <handlers>
       <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
     </handlers>
     <aspNetCore processPath="D:\POSHUD\Universal\www\Universal.Server.exe" arguments="" forwardWindowsAuthToken="false" stdoutLogEnabled="true" stdoutLogFile="D:\POSHUD\Universal\www\logs\log" hostingModel="OutOfProcess" />
   </system.webServer>
 </configuration>
 <!--ProjectGuid: 588ACF2E-9AE5-4DF1-BC42-BCE16A4C4EDE-->

Any ideas ?

EDIT : i tried with v.1.3.0 but i have blank pages with this version even launched as a service (wich is the only way to launch it)

You may need to clear your web browser’s cache if you are getting blank pages.

As for the IIS settings, I think we really need to do a Zoom call to get to the bottom of this. It sounds like you’ve followed the steps as per the documentation so I’m not exactly sure what else we would need to configure.

My wife is fluent in French and English so we can have her help out as well :wink:

1 Like

Hi,

Why don’t i try to clear my web browser cache ? :triumph:

OK for a Zoom call ! :wink:
We can also use Teamviewer (free) or Skype/Teams if you want to.
Thanks for your answer (MP maybe? I will post the workaround after on this thread)

PS : and thanks in advance for your wife’s help ^^

I was facing similar issue and it got resolved by reinstalling/repairing ASP.NET Core Hosting Bundle.

1 Like

Hi,
With your workaround, i’ve got no more errors on IIS Manager.
But, i’m still unable to access dashboards from a browser …

I wonder if the Core version of Windows Server is in cause or if it is anything else …

EDIT : I reinstall a fresh UniversalDashboard 1.3.1 from zip and i can log in with IIS :smiley: