
Hello,
I am trying to connect to my Dynamics 365 environment of the cloud with the Plugin Registration tool (and other CRM 365 sdk tools), but am unable to do so due to my company's proxy blocking the connection. I read in other posts, that this can be resolved by adding the following changes to the config file of the Plugin Registration tool:
<system.net>
<defaultProxy useDefaultCredentials="true" />
</system.net>
I tried doing, however the problem still persists. How our proxy setup works, is that normally when I try to access an external URL, I get a pop-up to enter my employee credentials. Once those credentials are entered, access to the URL is granted. In this scenario, I do not get a pop-up or anything like that. Looking at the Plugin Registration Tool's logs, I see the following error:
Error Message: Failed to get credentials from Windows Vault
Looks like there may be a policy in place on our computers to perhaps block the retrieval of a currently logged in user's credentials. Does anybody know a way around this? I wish the CRM 365 SDK tools has an option to specify proxy credentials like the XRMToolbox does (which works by the way, when I enter our proxy info and my personal credential in the XRMToolbox's proxy settings tab). And before you tell me to simply use the XRMToolbox since that one works; that tool has not yet been approved for usage by our company's software policy team, and therefore I cannot use it at the moment. Only the CRM 365 tools have been approved so far.
I've tried multiple different options within the Plugin Registration Tool's config file to work, but nothing seems to do the trick. I've tried things like:
<system.net>
<defaultProxy enabled="true" useDefaultCredentials="true" >
<proxy proxyaddress="[Our Company's Proxy server address]"/>
</defaultProxy>
</system.net>
<system.net>
<defaultProxy enabled="true" useDefaultCredentials="false" >
<proxy proxyaddress="[Our Company's Proxy server address]"/>
</defaultProxy>
</system.net>
All generate the same error as above. Is there a way to specify credentials in the config file for the proxy or does anybody have any workaround?
Any insight you can provide would be greatly appreciated.
Thank you all in advance.
This indicates that the tool is not able to retrieve the necessary credentials from the Windows Vault. One possible solution would be to try entering your credentials manually. Another option would be to contact your IT department to see if they can allowlist the Plugin Registration Tool or make any other necessary changes to the proxy setup. For example, I am using the proxies from https://shiftproxy.io that allows me to connect without problems. They have an inbuilt soft where it is straightforward to set anything up.