Unable to deploy code to Dynamic CRM instance using Visual Studio

Project background

My project is powered by Dynamic CRM and we have developed several plugins for it with Visual Studio 2012.


I usually connect to CRM like this

  • Open Visual Studio CRM Solution
  • Navigate to Tools -> Connect to Dynamics CRM Server
  • Provide a name for the CRM discovery service
  • select HTTPS
  • Click "Connect"
  • Check using default credentials
  • Click "Login"
  • Select the Instance "Organization" ("Manufacturing" or "Sandbox")
  • choose a solution in your organization

Then when deploying solutions

  • Right click Solution
  • clear it
  • build it
  • expand it

Problem

But lately it has been impossible to connect to CRM SANDBOX. I am sure there is no harm in this as I have done this many times before.

as follows

  • Open Visual Studio CRM Solution
  • Tools -> Connect to Dynamics CRM
  • Enter the name of the CRM discovery service
  • select HTTPS and click Connect
  • Sign in using your credentials
  • CHOOSE AN ORGANIZATION LIKE SANDBOX (DEV)

The dialog closes, but no error occurs. Visual Studio restarts for a while. So there is no way to deploy sandboxed solutions.

Dialog box image

Things I have tried so far

  • run VS as administrator
  • Add the file Global Section

    to your solution file (.sln) using a text editor.
  • Replaced Microsoft.Xrm.Sdk.dll

    in addition to CRM developer tools
  • Added the following lines to C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe.config

    <dependentAssembly>
    <assemblyIdentity name="Microsoft.Xrm.Sdk" publicKeyToken="31bf3856ad364e35" culture="neutral"/>
    <bindingRedirect oldVersion="6.0.0.0-6.1.0.0" newVersion="7.0.0.0"/>
    </dependentAssembly>
    
          

  • Tried connecting by installing 3rd party tools like CRM Toolkit from Visual Studio Package Manager

Any support is appreciated.

+3


source to share


1 answer


I also had the same problem for up to a couple of months. And this is a worked solution for me.

Decision



  • Updated Visual Studio for VS2015 (in my case Microsoft Dynamics 365 SDK did not support Visual Studio 2013)
  • Uninstall the current Microsoft Dynamics CRM toolbox (mine was in 2013)
  • Install Microsoft Dynamics 365 SDK ( https://www.microsoft.com/en-us/download/confirmation.aspx?id=50032 )
    • Contains complete SDK for
      • Microsoft Dynamics 365
      • Microsoft Dynamics CRM Online (associated with your instance)
      • Microsoft Dynamics CRM 2016 (in place)
  • Install Microsoft Dynamics 365 Developer Toolkit ( https://marketplace.visualstudio.com/items?itemName=DynamicsCRMPG.MicrosoftDynamicsCRMDeveloperToolkit )
    • Go to menu Tools

      β†’ clickExtension Manager

    • In Extension Manager

      the left pane, clickOnline Gallery

  • After restarting your computer, run the project.
    • There may be some errors while loading the project. As we are updating Visual Studio to the top version. You may need to migrate your project and resolve error messages.
  • Try connecting to your CRM instance using CRM Explorer.
    • The interface should be different from the previous one. Properly

NOTE . Make sure you have permission to connect to the instance as a first step.

+6


source







All Articles