We have setup App Proxy for out CRM 365 on-prem system so we can use MFA. So my CRM url changed from https://myOrg... to https://myOrg....msappproxy.net.
The new msappproxy url works if it is used in the browser but it doesnt work if I use it in the code to create OrganizationServiceProxy. I got this error:
Message=Metadata contains a reference that cannot be resolved:
https://login.microsoftonline.com/cb18b763-5f98-4320-ad8d-42619964d863/oauth2/authorize?response_type=code&client_id=f658a4e9-6e1c-4208-908f-c90aebd775d7&scope=openid&nonce=be97ca7a-a274-4d92-b6b7-51ee552bf1de&redirect_uri=https:%2f%2fmyOrg.msappproxy.net%2f&state=AppProxyState:{"InvalidTokenRetry":null%2c"IsMsofba":false%2c"OriginalRawUrl":"https:%5c%2f%5c%2fmyOrg.msappproxy.net%5c%2fTulsaTech%5c%2fXRMServices%5c%2f2011%5c%2fOrganization.svc%3fwsdl%26sdkversion%3d9.2"%2c"RequestProfileId":null%2c"SessionId":"6fb5c2be-81f6-486b-a933-603afb56fba1"}%23EndOfStateParam%23&client-request-id=6fb5c2be-81f6-486b-a933-603afb56fba1
Also the plugin registration tool and xrmtoolkit cannot resolve this new url. Any help?
Thanks
Holly