microsoft / Intune-Resource-Access

Sample code and scripts for interfacing with the Intune Resource Access APIs.
MIT License
55 stars 59 forks source link

Unknown error code BadDeviceTypeInChallenge #57

Closed microshine closed 4 years ago

microshine commented 5 years ago

ErrorCode doesn't support BadDeviceTypeInChallenge

System.Exception: Requested value 'BadDeviceTypeInChallenge' was not found.
   at System.Enum.TryParseEnum(Type enumType, String value, Boolean ignoreCase, EnumResult& parseResult)
   at System.Enum.Parse(Type enumType, String value, Boolean ignoreCase)
   at Microsoft.Intune.IntuneScepServiceException..ctor(String errorCode, String errorDescription, String transactionId, Guid activityId, TraceSource trace) in C:\bitbucket\aeg\src\Intune.ScepValidation\IntuneScepServiceException.cs:line 120
   at Microsoft.Intune.IntuneScepValidator.<PostAsync>d__13.MoveNext() in 
achuchev commented 4 years ago

@microshine I've faced the same issue when the CSR was coming from Android device. Yesterday, Microsoft confirmed that the issue is now addressed and I can also confirm that it works for me. Maybe, you should try it.