{"action":"created","issue":{"url":"https://api.github.com/repos/ironmansoftware/universal-dashboard/issues/404","repository_url":"https://api.github.com/repos/ironmansoftware/universal-dashboard","labels_url":"https://api.github.com/repos/ironmansoftware/universal-dashboard/issues/404/labels{/name}","comments_url":"https://api.github.com/repos/ironmansoftware/universal-dashboard/issues/404/comments","events_url":"https://api.github.com/repos/ironmansoftware/universal-dashboard/issues/404/events","html_url":"https://github.com/ironmansoftware/universal-dashboard/issues/404","id":374299234,"node_id":"MDU6SXNzdWUzNzQyOTkyMzQ=","number":404,"title":"[Start-UDRestApi] HTTP Error 502.5 - Process Failure ","user":{"login":"LaurentDardenne","id":4894452,"node_id":"MDQ6VXNlcjQ4OTQ0NTI=","avatar_url":"https://avatars0.githubusercontent.com/u/4894452?v=4","gravatar_id":"","url":"https://api.github.com/users/LaurentDardenne","html_url":"https://github.com/LaurentDardenne","followers_url":"https://api.github.com/users/LaurentDardenne/followers","following_url":"https://api.github.com/users/LaurentDardenne/following{/other_user}","gists_url":"https://api.github.com/users/LaurentDardenne/gists{/gist_id}","starred_url":"https://api.github.com/users/LaurentDardenne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LaurentDardenne/subscriptions","organizations_url":"https://api.github.com/users/LaurentDardenne/orgs","repos_url":"https://api.github.com/users/LaurentDardenne/repos","events_url":"https://api.github.com/users/LaurentDardenne/events{/privacy}","received_events_url":"https://api.github.com/users/LaurentDardenne/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-26T09:25:37Z","updated_at":"2018-10-27T15:50:26Z","closed_at":null,"author_association":"NONE","body":"I have migrate UD from 1.7 to 2.1 under IIS, but i get an error when i call an API :\r\n\r\nUD version 2.0.1 (UniversalDashboard & UniversalDashboard.Community)\r\n\r\nWindows Server 2008 R2 Standard SP1\r\n\r\nIIS V 7.5.7600.16385\r\n\r\nMay be  related to this issue https://github.com/ironmansoftware/universal-dashboard/issues/389\r\n\r\nDotnet :\r\n```\r\nPS C:\\temp> dotnet --version\r\n2.1.403\r\n\r\nPS C:\\temp> dotnet --list-sdks\r\n\r\n2.1.403 [C:\\Program Files\\dotnet\\sdk]\r\nPS C:\\temp> dotnet --list-runtimes\r\nMicrosoft.AspNetCore.All 2.1.2 [C:\\Program Files\\dotnet\\shared\\Microsoft.AspNetCore.All]\r\nMicrosoft.AspNetCore.All 2.1.5 [C:\\Program Files\\dotnet\\shared\\Microsoft.AspNetCore.All]\r\nMicrosoft.AspNetCore.App 2.1.2 [C:\\Program Files\\dotnet\\shared\\Microsoft.AspNetCore.App]\r\nMicrosoft.AspNetCore.App 2.1.5 [C:\\Program Files\\dotnet\\shared\\Microsoft.AspNetCore.App]\r\nMicrosoft.NETCore.App 2.1.2 [C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App]\r\nMicrosoft.NETCore.App 2.1.5 [C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App]\r\n\r\nPS C:\\temp> Get-ChildItem \"HKLM:SOFTWARE\\Microsoft\\NET Framework Setup\\NDP\\v4\"\r\n    Hive: HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\NET Framework Setup\\NDP\\v4\r\n\r\n\r\nName                           Property\r\n----                           --------\r\nClient                         Version       : 4.7.02558\r\n                               TargetVersion : 4.0.0\r\n                               Install       : 1\r\n                               MSI           : 1\r\n                               Servicing     : 0\r\n                               InstallPath   : C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319\\\r\n                               Release       : 461310\r\nFull                           Version       : 4.7.02558\r\n                               TargetVersion : 4.0.0\r\n                               Install       : 1\r\n                               MSI           : 1\r\n                               Servicing     : 0\r\n                               InstallPath   : C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319\\\r\n                               Release       : 461310\r\n\r\n```\r\nPowerShell version :\r\n```Powershell\r\n$psversiontable :\r\nName                           Value\r\n----                           -----\r\nPSVersion                      5.1.14409.1005\r\nPSEdition                      Desktop\r\nPSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}\r\nBuildVersion                   10.0.14409.1005\r\nCLRVersion                     4.0.30319.42000\r\nWSManStackVersion              3.0\r\nPSRemotingProtocolVersion      2.3\r\nSerializationVersion           1.1.0.1\r\n```\r\nThe call :\r\n```Powershell\r\n# New-UDEndpoint -Url \"/v1/Request/Create\" -Method \"POST\" -Endpoint {..}\r\nInvoke-RestMethod -uri http://MySite:1002/api/v1/Request/Create -Method POST -Body (@{Data='DATA' } | ConvertTo-Json)\r\n\r\n$error[0]\r\nInvoke-RestMethod :                                      \r\nIIS 502.5 Error                       \r\nHTTP Error 502.5 - Process Failure                           \r\nCommon causes of this issue:               \r\nThe application process failed to start\r\nThe application process started but then stopped\r\nThe application process started but\r\n\r\nfailed to listen on the configured port\r\nTroubleshooting steps:                \r\nCheck the system event log for error messages\r\n...\r\n\r\nAt line:1 char:1\r\n+ Invoke-RestMethod -uri http://mySite:1002/api/v1 ...\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException\r\n    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand\r\n```\r\nException information :\r\n```Powershell\r\n$error[0].Exception|select *\r\n\r\nStatus         : ProtocolError\r\nResponse       : System.Net.HttpWebResponse\r\nMessage        : The remote server returned an error: (502) Bad Gateway.\r\nData           : {}\r\nInnerException :\r\nTargetSite     : System.Net.WebResponse GetResponse(System.Net.WebRequest)\r\nStackTrace     :    at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)\r\n                    at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()\r\nHelpLink       :\r\nSource         : Microsoft.PowerShell.Commands.Utility\r\nHResult        : -2146233079\r\n```\r\n\r\nContains of Application eventLog :\r\n```\r\nEventID            : 1000\r\nMachineName        : MyMachine\r\nData               : {}\r\nIndex              : 198064\r\nCategory           : (0)\r\nCategoryNumber     : 0\r\nEntryType          : Error\r\nMessage            : Application 'MACHINE/WEBROOT/APPHOST/MySite' with physical root 'C:\\inetpub\\wwwroot\\MySite\\' failed to start process with commandline\r\n                     'C:\\inetpub\\wwwroot\\MySite\\net471\\universaldashboard.server.exe ', ErrorCode = '0x80004005 : ff.\r\nSource             : IIS AspNetCore Module\r\nReplacementStrings : {Application 'MACHINE/WEBROOT/APPHOST/MySite' with physical root 'C:\\inetpub\\wwwroot\\MySite\\' failed to start process with commandline\r\n                     'C:\\inetpub\\wwwroot\\MySite\\net471\\universaldashboard.server.exe ', ErrorCode = '0x80004005 : ff.}\r\nInstanceId         : 1000\r\nTimeGenerated      : 10/26/2018 10:32:14 AM\r\nTimeWritten        : 10/26/2018 10:32:14 AM\r\nUserName           :\r\nSite               :\r\nContainer          :\r\n\r\nEventID            : 1001\r\nMachineName        : MyMachine\r\nData               : {}\r\nIndex              : 198063\r\nCategory           : (0)\r\nCategoryNumber     : 0\r\nEntryType          : Information\r\nMessage            : Fault bucket , type 0\r\n                     Event Name: CLR20r3\r\n                     Response: Not available\r\n                     Cab Id: 0\r\n\r\n                     Problem signature:\r\n                     P1: universaldashboard.server.exe\r\n                     P2: 1.0.0.0\r\n                     P3: a470e158\r\n                     P4: UniversalDashboard.Server\r\n                     P5: 1.0.0.0\r\n                     P6: a470e158\r\n                     P7: 1\r\n                     P8: d8\r\n                     P9: System.Exception\r\n                     P10:\r\n\r\n                     Attached files:\r\n                     C:\\Windows\\Temp\\WERBE92.tmp.appcompat.txt\r\n                     C:\\Windows\\Temp\\WERBF00.tmp.WERInternalMetadata.xml\r\n                     C:\\Windows\\Temp\\WERBF01.tmp.hdmp\r\n                     C:\\Windows\\Temp\\WERD1E6.tmp.mdmp\r\n\r\n                     These files may be available here:\r\n                     C:\\ProgramData\\Microsoft\\Windows\\WER\\ReportQueue\\AppCrash_universaldashboa_8b76634bcd801ea3d655147de26f521b3174a3e_cab_1396d2dd\r\n\r\n                     Analysis symbol:\r\n                     Rechecking for solution: 0\r\n                     Report Id: a00b294c-d8f9-11e8-ba7b-005056b166a2\r\n                     Report Status: 4\r\nSource             : Windows Error Reporting\r\nReplacementStrings : {, 0, CLR20r3, Not available...}\r\nInstanceId         : 1001\r\nTimeGenerated      : 10/26/2018 10:32:14 AM\r\nTimeWritten        : 10/26/2018 10:32:14 AM\r\nUserName           :\r\nSite               :\r\nContainer          :\r\n\r\nEventID            : 1000\r\nMachineName        : MyMachine\r\nData               : {}\r\nIndex              : 198062\r\nCategory           : Application Crashing Events\r\nCategoryNumber     : 100\r\nEntryType          : Error\r\nMessage            : Faulting application name: universaldashboard.server.exe, version: 1.0.0.0, time stamp: 0xa470e158\r\n                     Faulting module name: KERNELBASE.dll, version: 6.1.7601.24231, time stamp: 0x5b6db5dd\r\n                     Exception code: 0xe0434352\r\n                     Fault offset: 0x000000000001a06d\r\n                     Faulting process id: 0x1644\r\n                     Faulting application start time: 0x01d46d0661e8e689\r\n                     Faulting application path: C:\\inetpub\\wwwroot\\MySite\\net471\\universaldashboard.server.exe\r\n                     Faulting module path: C:\\Windows\\system32\\KERNELBASE.dll\r\n                     Report Id: a00b294c-d8f9-11e8-ba7b-005056b166a2\r\nSource             : Application Error\r\nReplacementStrings : {universaldashboard.server.exe, 1.0.0.0, a470e158, KERNELBASE.dll...}\r\nInstanceId         : 1000\r\nTimeGenerated      : 10/26/2018 10:32:08 AM\r\nTimeWritten        : 10/26/2018 10:32:08 AM\r\nUserName           :\r\nSite               :\r\nContainer          :\r\n\r\n\r\nEventID            : 1026\r\nMachineName        : MyMachine\r\nData               : {}\r\nIndex              : 198061\r\nCategory           : (0)\r\nCategoryNumber     : 0\r\nEntryType          : Error\r\nMessage            : Application: universaldashboard.server.exe\r\n                     Framework Version: v4.0.30319\r\n                     Description: The process was terminated due to an unhandled exception.\r\n                     Exception Info: System.Exception\r\n                        at UniversalDashboard.DashboardManager.Start()\r\n                        at UniversalDashboard.Program.Main(System.String[])\r\n\r\n\r\nSource             : .NET Runtime\r\nReplacementStrings : {Application: universaldashboard.server.exe\r\n                     Framework Version: v4.0.30319\r\n                     Description: The process was terminated due to an unhandled exception.\r\n                     Exception Info: System.Exception\r\n                        at UniversalDashboard.DashboardManager.Start()\r\n                        at UniversalDashboard.Program.Main(System.String[])\r\n\r\n                     }\r\nInstanceId         : 1026\r\nTimeGenerated      : 10/26/2018 10:32:08 AM\r\nTimeWritten        : 10/26/2018 10:32:08 AM\r\nUserName           :\r\nSite               :\r\nContainer          :\r\n``` \r\nThe version 1.7 works on the same IIS Server.\r\n\r\nAdditionnal 'tests' :\r\n```\r\nPS C:\\inetpub\\wwwroot\\MySite\\netstandard2.0> dotnet .\\UniversalDashboard.dll\r\nA fatal error was encountered. The library 'hostpolicy.dll' required to execute the application was not found in 'C:\\inetpub\\wwwroot\\MySite\\netstandard2.0\\'.\r\nFailed to run as a self-contained app. If this should be a framework-dependent app, add the C:\\inetpub\\wwwroot\\MySite\\netstandard2.0\\UniversalDashboard.runtimeconfig.json file specifying the appropriate framework.\r\n\r\nPS C:\\inetpub\\wwwroot\\MySite\\net471> .\\UniversalDashboard.Server.exe\r\nUnhandled Exception: System.Exception: Failed to start dashboard\r\n   at UniversalDashboard.DashboardManager.Start()\r\n   at UniversalDashboard.Program.Main(String[] args)\r\n```"},"comment":{"url":"https://api.github.com/repos/ironmansoftware/universal-dashboard/issues/comments/433631899","html_url":"https://github.com/ironmansoftware/universal-dashboard/issues/404#issuecomment-433631899","issue_url":"https://api.github.com/repos/ironmansoftware/universal-dashboard/issues/404","id":433631899,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzYzMTg5OQ==","user":{"login":"adamdriscoll","id":1256531,"node_id":"MDQ6VXNlcjEyNTY1MzE=","avatar_url":"https://avatars3.githubusercontent.com/u/1256531?v=4","gravatar_id":"","url":"https://api.github.com/users/adamdriscoll","html_url":"https://github.com/adamdriscoll","followers_url":"https://api.github.com/users/adamdriscoll/followers","following_url":"https://api.github.com/users/adamdriscoll/following{/other_user}","gists_url":"https://api.github.com/users/adamdriscoll/gists{/gist_id}","starred_url":"https://api.github.com/users/adamdriscoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamdriscoll/subscriptions","organizations_url":"https://api.github.com/users/adamdriscoll/orgs","repos_url":"https://api.github.com/users/adamdriscoll/repos","events_url":"https://api.github.com/users/adamdriscoll/events{/privacy}","received_events_url":"https://api.github.com/users/adamdriscoll/received_events","type":"User","site_admin":false},"created_at":"2018-10-27T15:50:26Z","updated_at":"2018-10-27T15:50:26Z","author_association":"MEMBER","body":"Can you pleas try installing .NET framework 4.7.2? "}}
{"actor":{"display_login":"adamdriscoll"}}