Advertisements

Archive

Posts Tagged ‘Solution’

Missing ‘Connect to Dynamics CRM Server’ from visual studio solution

August 6, 2014 2 comments

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

Solution import error in CRM 2011

Hi,

Solution import error

Sometimes you may get above error screen, when you try to import the “Solution”.

Reason:-

  1. Let’s assume you have a solution “XYZ.zip” with 3 files (i.e., [Content_Types].xml, Customizations.xml & Solution.xml)
  2. Extract the “XYZ.zip” to “XYZ_new” folder
  3. Do some customization changes (i.e., Add few buttons to Ribbon) to “Customizations.xml”
  4. Save the changes
  5. Zip the “XYZ_new” folder to “XYZ_new.zip”
  6. Try to Import the “XYZ_new.zip” as solution and you would get “Import solution error”

Fix:-

  • Always zip the files from root level not from folder level
    • i.e., When you make changes to solution files (Refer step 3 & 4) don’t zip “XYZ_new” folder, instead follow this step
    • open “XYZ_new” folder and select files (Ctrl + A) and zip the files to “XYZ_new.zip”
    • Import  the zip
    • Get the “Imported successfully” message

Hope it helps 🙂