web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Visual Studio 2013 CRM Solution Connection/Deployment Fails

(0) ShareShare
ReportReport
Posted on by 330

I am experiencing an issue where I cannot select any CRM solutions after choosing a CRM server and organization via the "Connect to Dynamics CRM Server" dialog in Visual Studio 2013. Here are my environment and setup details:

  • Visual Studio 2013 Update 4 RC
  • CRMDeveloperTools 1.0
  • CRM 2013 On-Premise installation
    • Web server
    • Back-end sandbox/search services server
    • MSSQL Database server
  • CRM web application, organization web service and discovery url accessible over HTTPS (3rd-party SSL cert)

Test case:

  • Open Visual Studio CRM Solution
  • Navigate to Tools -> Connect to Dynamics CRM Server
  • Specify CRM Discovery Service Name
  • select HTTPS
  • Click Connect
  • Check Use Default Credentials
  • Click Log on
  • Select an organization from the drop down
  • Window closes without error

Using a packet inspector, I see that there is no traffic between my machine and the CRM server during this process until I click Log on... so these organizations are cached or stored in the CRM VS default settings file, which is also problematic. When there is traffic, it appears the CRM server is sending a TCP reset and the window closes. Upon trying the steps in the test case (all those after opening Visual Studio) I receive the error:

Value cannot be null.
Parameter name: source

I wonder if something about the organization service is hardcoded in this application which is looking for a standard protocol/port. Any help would be greatly appreciated. 

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Hi M_H,

    Please check the following - 

    1. are you running visual studio 2013 as an administrator?

    2. do you have any unmanaged solutions in the CRM organisations?

    3. Is there any error/warning shown in the event log viewer? 

    Regards, 

    Jacqui 

  • M_H Profile Picture
    330 on at

    Jacqui,

    Thank you for the response. I did try running VS as administrator, but the with the same effect. I have two unmanaged solutions in the target organization that I am trying to deploy to. I also do not see any error or warnings in the Windows Logs -> Application events.

    I hope this helps!

  • Verified answer
    M_H Profile Picture
    330 on at

    It appears that this deployment manager will force VS to deploy to the deployment url specified in the CRM Deployment Manager. Even though DNS may resolve correctly to the same host (with or without SSL) I found that I have to change the web address bindings to enable VS to poll the organizations and deploy correctly. This was especially confusing as a network trace revealed the deployment was pointing to the appropriate server.


    It would be nice if the connection utility provided more feedback as this took a while to determine the exact cause.

    At least for the time being, I am deploying the VS solution successfully.

  • Community Member Profile Picture
    on at

    Recently I also encountered with the same problem.

    can you give me a clue about how did you solved it?? any steps..

    That will be a great help

    Thank you

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans