Yes Radu,
It is true what you say. I am following a course from PluralSigth that they are guiding me like that.
I have a local database (using OnPremises to conect to some Dynamics solutions) and I want to use Visual Studio to Costumize my solutions.
I have more questions around my solution but I will go step by step.
I already tried connet using the Online way , even when I set my microsoft credentials it recognizes it and give this Error Log:
Source : Not Provided
Method : Not Provided
Date : 2/21/2020
Time : 2:33:10 PM
Error : A CRM server name is required.
Parameter name: CrmServerName
Stack Trace : Not Provided
======================================================================================================================
Source : Not Provided
Method : Not Provided
Date : 2/21/2020
Time : 2:43:26 PM
Error : A user name is required.
Parameter name: CrmUserName
Stack Trace : Not Provided
======================================================================================================================
Source : Microsoft.Xrm.Sdk
Method : .ctor
Date : 2/21/2020
Time : 2:46:36 PM
Error : Value cannot be null.
Parameter name: serviceConfiguration.CurrentServiceEndpoint
Stack Trace : at Microsoft.Xrm.Sdk.Client.ServiceProxy`1..ctor(IServiceConfiguration`1 serviceConfiguration, SecurityTokenResponse securityTokenResponse)
at Microsoft.Xrm.Sdk.Client.DiscoveryServiceProxy..ctor(IServiceManagement`1 serviceManagement, SecurityTokenResponse securityTokenResponse)
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)
======================================================================================================================
Source : Not Provided
Method : Not Provided
Date : 2/21/2020
Time : 2:54:12 PM
Error : You don't have permission to access any of the organizations in the Microsoft Dynamics CRM Online region that you specified. If you're not sure which region your organization resides in, choose "Don't know" for the CRM region and try again. Otherwise check with your CRM administrator.
Stack Trace : Not Provided
======================================================================================================================
Source : Microsoft.Xrm.Sdk
Method : Assert
Date : 2/21/2020
Time : 3:24:56 PM
Error : clientCredentials.UserName.UserName or clientCredentials.Windows.ClientCredential.UserName MUST be populated!
Stack Trace : at Microsoft.Xrm.Sdk.ClientExceptionHelper.Assert(Boolean condition, String message)
at Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1.GetIdentityProvider(ClientCredentials clientCredentials)
at Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1.AuthenticateOnlineFederationInternal(AuthenticationCredentials authenticationCredentials)
at Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1.Authenticate(AuthenticationCredentials authenticationCredentials)
at Microsoft.Xrm.Sdk.Client.DiscoveryServiceConfiguration.Authenticate(AuthenticationCredentials authenticationCredentials)
at Microsoft.Xrm.Tooling.Connector.CrmWebSvc.ClaimsIFDFailOverAuth[T](IServiceManagement`1 servicecfg, Uri homeRealm, ClientCredentials userCredentials, ClientCredentials deviceCredentials, Int32 depthLevel, Boolean tryNetworkCred)
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)
======================================================================================================================
Source : Not Provided
Method : Not Provided
Date : 2/21/2020
Time : 4:42:28 PM
Error : A CRM server name is required.
Parameter name: CrmServerName
Stack Trace : Not Provided
======================================================================================================================
Source : Not Provided
Method : Not Provided
Date : 2/21/2020
Time : 5:00:52 PM
Error : A CRM server name is required.
Parameter name: CrmServerName
Stack Trace : Not Provided
======================================================================================================================
Source : Not Provided
Method : Not Provided
Date : 2/21/2020
Time : 5:18:04 PM
Error : A CRM server name is required.
Parameter name: CrmServerName
Stack Trace : Not Provided
======================================================================================================================
Source : Not Provided
Method : Not Provided
Date : 2/21/2020
Time : 5:21:18 PM
Error : You don't have permission to access any of the organizations in the Microsoft Dynamics CRM Online region that you specified. If you're not sure which region your organization resides in, choose "Don't know" for the CRM region and try again. Otherwise check with your CRM administrator.
Stack Trace : Not Provided
======================================================================================================================
Thanks for your quic response.