Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Connecting to CRM On-Premises in visual studio 2015

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I am still learning CRM development and l have been stuck on connecting a CRM package created in visual studio to crm onpremises, l always connect to online. l have tried to google but l can't seem to find an answer would any please help with a brief explanation of how to connect. Explaining the fields required like where do you get the server name, l assumed port you get it from url. (My apologies if this is a bit silly to ask but l just got username and password and loginurl and do not have access to the deployment manager or knowledge of the hosting and my knowledge in onpremises crm is very shallow still to learn more.refer to pic below

onpremises.PNG

*This post is locked for comments

  • Suggested answer
    rthompson Profile Picture
    rthompson 1,530 on at
    RE: Connecting to CRM On-Premises in visual studio 2015

    I had to have my system administrator fix my permission

  • rthompson Profile Picture
    rthompson 1,530 on at
    RE: Connecting to CRM On-Premises in visual studio 2015

    I have tried just about everything.

    I am getting the below error message.

    Error : Metadata contains a reference that cannot be resolved: 'crmdevs.xxxxx.com/.../Discovery.svc;sdkversion=8.2'.
    Stack Trace : at System.ServiceModel.Description.MetadataExchangeClient.MetadataRetriever.Retrieve(TimeoutHelper timeoutHelper)
    at System.ServiceModel.Description.MetadataExchangeClient.ResolveNext(ResolveCallState resolveCallState)
    at System.ServiceModel.Description.MetadataExchangeClient.GetMetadata(MetadataRetriever retriever)
    at System.ServiceModel.Description.MetadataExchangeClient.GetMetadata(Uri address, MetadataExchangeClientMode mode)
    at Microsoft.Xrm.Sdk.Client.ServiceMetadataUtility.RetrieveServiceEndpointMetadata(Type contractType, Uri serviceUri, Boolean checkForSecondary)
    at Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1..ctor(Uri serviceUri, Boolean checkForSecondary)
    at Microsoft.Xrm.Sdk.Client.ServiceConfigurationFactory.CreateManagement[TService](Uri serviceUri, Boolean enableProxyTypes, Assembly assembly)
    at Microsoft.Xrm.Sdk.Client.ServiceConfigurationFactory.CreateManagement[TService](Uri serviceUri)
    at Microsoft.Xrm.Tooling.Connector.CrmWebSvc.CreateAndAuthenticateProxy[T](IServiceManagement`1 servicecfg, Uri ServiceUri, Uri homeRealm, ClientCredentials userCredentials, ClientCredentials deviceCredentials, String LogString)
    at Microsoft.Xrm.Tooling.Connector.CrmWebSvc.DiscoverOrganizations(Uri discoveryServiceUri, Uri homeRealmUri, ClientCredentials clientCredentials, ClientCredentials deviceCredentials)
    at Microsoft.Xrm.Tooling.Connector.CrmWebSvc.DiscoverOrganizations(Uri discoveryServiceUri, Uri homeRealmUri, NetworkCredential networkCredential)
    at Microsoft.Xrm.Tooling.Connector.CrmServiceClient.DiscoverOrganizations(Uri discoveryServiceUri, Uri homeRealmUri, NetworkCredential networkCredential)
    at Microsoft.Xrm.Tooling.CrmConnectControl.CrmConnectionManager.ValidateServerConnection(CrmOrgByServer selectedOrg)

  • Suggested answer
    Syed Ibrahim Profile Picture
    Syed Ibrahim 6,257 on at
    RE: Connecting to CRM On-Premises in visual studio 2015

    Try below.

    leave the port blank, Authentication Source to Active Directory, use domain in username field.

    Hope this helps.If the suggestion resolved your query .Pls mark it as answered/verified to close the thread.

  • Temmy Wahyu Raharjo Profile Picture
    Temmy Wahyu Raharjo 2,914 on at
    RE: Connecting to CRM On-Premises in visual studio 2015

    This is based on configuration of the server. How is your url look like?

    1. Try to remove https:// in server

    2. Try to remove Domain (make it blank), and type username with your [domain]]\[username]

    3. If no 2 is not work, in Username just type [username] without domain and fill out your Domain with [domain].

    Sometimes this one is tricky. So just test it one by one.

  • rthompson Profile Picture
    rthompson 1,530 on at
    RE: Connecting to CRM On-Premises in visual studio 2015

    Was anyone successful with getting this to work.

    I am  having the same issue.

  • RE: Connecting to CRM On-Premises in visual studio 2015

    I did that I put the server name as is. wit no port number, untick the SSL, and authentication sourse set to Active directory and  I clicked the use the default credentials checkbox or even I put it manually... I still couldn't Connect

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Connecting to CRM On-Premises in visual studio 2015

    Remove https in front of your server name (server name is the url without https://) and don't include the port number in server name, untick the use Ssl, if your Org is configured for IFD then leave it or change it to Active Directory if not configured for IFD.

     

  • RE: Connecting to CRM On-Premises in visual studio 2015

    I got the same issue could someone help me

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,321 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans