I recently created a new Visual studio solution using Dynamics CRM 2013 Template.

Dynamics CRM 2013 Template
Dynamics CRM 2013 Template

So I get “Connect to Dynamics CRM Server” window whenever I open the solution, which allows me to connect my CRM Organization.

Connect to Dynamics CRM Server
Connect to Dynamics CRM Server

Later I added a new “Class Library” project to my solution.

Now surprisingly when I open the solution, I am not getting “Connect to Dynamics CRM Server” window also from ‘Tools’ Menu.

Reason

  • I opened my solution file (.sln) using notepad and observed below ‘Global Section’ is missing and overridden by newly added Project details.

GlobalSection(CRMSolutionProperties) = preSolution

SolutionIsBoundToCRM = True

EndGlobalSection

Fix

  • Add the ‘Global Section’ back to solution file using Notepad and Save it.
Global Section
Global Section

🙂

Advertisements
Advertisements

2 responses to “Missing ‘Connect to Dynamics CRM Server’ from visual studio solution”

  1. Antony Ellis Avatar

    Nice one did wonder why that always happened!

    1. Rajeev Pentyala Avatar

      One of the reason could be, when you open the solution with VS 2013 or higher versions and save the solution.

Leave a comment