D365: Set ConnectionId threw an exception

Recently, we got a weird error message “Set ConnectionId threw an exception” while trying to connect to D365 server from Visual Studio using Developer Toolkit.

We were using VS 2015 and D365 Developer Toolkit. It was working fine and we were able to deploy plugins/custom workflows to D365 instance successfully.

However, to work on reports, we installed D365 Report Authoring Extension. After it got successfully installed, when we tried to load the solution again, the solution was loaded successfully. After that when we tried to connect to D365 server we faced the below error message:

It seems D365 Report Authoring Extension doesn’t work well with D365 Developer Toolkit. To fix this issue, follow below steps as suggested by Chandan Bharti:
1. Open Visual Studio
2. Create new D365 Project
3. Connect to the organisation
4. When it asks for the solution, Close the dialog box
5. Open the solution you want to open. .. and VS will connect with no issues..

Thanks a lot Chandan for your suggestion !!

Hope it helps !!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.