Hello,
I tried to get the modern app working, but unfortunately could not get it working.
The re-signing and installation all went well - I did:
- change Custom.Data MIMCM Url (skipped all other settings, since I suppose it is "optional" (like ADFS settings)
- re-signed the APPx
- Installed the App
Upon start - I get the following entries in the Log:
2019-01-30 17:59:33:4845
Type: Informational
Id: 2
Message: 'Execute REST API GET call.
Uri: 'https://mim-dev-1.mim.dev/certificatemanagement/api/v1.0/profiles?status=Active''
2019-01-30 17:59:33:5158
Type: Verbose
Id: 1
Message: 'IsLOBComplianceEnabled : Start'
2019-01-30 17:59:33:5158
Type: Verbose
Id: 1
Message: 'IsLOBComplianceEnabled : END'
2019-01-30 17:59:33:5158
Type: Verbose
Id: 1
Message: 'OnLaunched() : End'
2019-01-30 17:59:33:5158
Type: Critical
Id: 5
Message: 'Failed to load profile and profile templates from server.
System.FormatException: One of the identified items was in an invalid format. at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Clm.ModernApp.Proxy.HttpClientManager.<GetAsync>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Clm.ModernApp.Proxy.CredentialManagementRestApiProxy.<GetProfiles>d__29.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Clm.ModernApp.Repositories.ProfileRepository.<GetSoftwareProfilesAsync>d__29.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Clm.ModernApp.ViewModel.HomeScreenViewModel.<LoadProfiles>d__54.MoveNext()
'
2019-01-30 17:59:33:5158
Type: Verbose
Id: 1
Message: 'LoadEnrollableProfiles() : End'
2019-01-30 17:59:34:9064
Type: Verbose
Id: 1
Message: 'LoadEnrollableProfiles() : Start'
2019-01-30 17:59:34:9064
Type: Informational
Id: 2
Message: 'Loading avabilable profile template, profiles and smartcards.'
2019-01-30 17:59:34:9064
Type: Informational
Id: 2
Message: 'Execute REST API GET call.
Uri: 'https://mim-dev-1.mim.dev/certificatemanagement/api/v1.0/profiles?status=Active''
2019-01-30 17:59:34:9220
Type: Verbose
Id: 1
Message: 'IsLOBComplianceEnabled : Start'
2019-01-30 17:59:34:9220
Type: Verbose
Id: 1
Message: 'IsLOBComplianceEnabled : END'
2019-01-30 17:59:34:9220
Type: Critical
Id: 5
Message: 'Failed to load profile and profile templates from server.
System.FormatException: One of the identified items was in an invalid format.
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Clm.ModernApp.Proxy.HttpClientManager.<GetAsync>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Clm.ModernApp.Proxy.CredentialManagementRestApiProxy.<GetProfiles>d__29.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Clm.ModernApp.Repositories.ProfileRepository.<GetSoftwareProfilesAsync>d__29.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Clm.ModernApp.ViewModel.HomeScreenViewModel.<LoadProfiles>d__54.MoveNext()
'
2019-01-30 17:59:34:9220
Type: Verbose
Id: 1
Message: 'LoadEnrollableProfiles() : End'
When I call the offending web-service in a browser (https://mim-dev-1.mim.dev/certificatemanagement/api/v1.0/profiles?status=Active) - I get an empty array as a result:
<ArrayOfProfile xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Microsoft.Clm.Shared.Profiles"/>
So - apparently the call does work "halfway" (it does not run into an error, although the returned profiles are *wrong*!!!)
When I try to get profiles via "MIM-Remoting API" (basically I do: FindRequests, then with those requests query the profiles) I *do* get active profiles!
Information about my system - I tried it with two version of MIM 2016:
- MIM 2016 SP1 (4.4.1302)
then I tried updating to the "latest version":
- MIM 2016 - 4.5.286.0
However - there was no difference whatsoever - other operations in MIM-Rest-API which I am pretty sure are *broken* (not working as advertised in the documentation) still are broken (e.g. you cannot "Abandon" a request via REST-Api....you will
always get "501 - Not Implemented")
So - what's the deal here - why does the REST-API not work as advertised? wrong installation on my side? wrong documentation on your side?? Same thing about Modern-App? and prerequisites I overlooked?
Kind Regards
Johannes Colmsee