For EU tenant when connectioninfo is provided to IpcGetTemplateIssuerList (line no 286 ) in ProtectWithAdHocPolicy, "thedefaultServer" flag server should be "false" as per https://docs.microsoft.com/en-us/previous-versions/windows/desktop/msipc/ipcgettemplateissuerlist. It should be: Collection<TemplateIssuer> templateIssuers = SafeNativeMethods .IpcGetTemplateIssuerList( connectionInfo, false, true, false, true, null, symmetricKeyCredential); In the sample, "thedefaultServer" flag server is set to "true", which throws invalid parameter exception 286 Collection<TemplateIssuer> templateIssuers = SafeNativeMethods 287 .IpcGetTemplateIssuerList( 288 connectionInfo, 289 true, 290 false, 291 false, true, null, symmetricKeyCredential);
For EU tenant when connectioninfo is provided to IpcGetTemplateIssuerList (line no 286 ) in ProtectWithAdHocPolicy, "thedefaultServer" flag server should be "false" as per https://docs.microsoft.com/en-us/previous-versions/windows/desktop/msipc/ipcgettemplateissuerlist. It should be:
In the sample, "thedefaultServer" flag server is set to "true", which throws invalid parameter exception
286 Collection templateIssuers = SafeNativeMethods
287 .IpcGetTemplateIssuerList(
288 connectionInfo,
289 true,
290 false,
291 false, true, null, symmetricKeyCredential);