01 Oct 2020
Link to this post
Trying to connect Sitefinity to the Dynamics instance (both on premise) and receiving this error after entering the connection settings. Confirmed that Dynamics is accessible from within a browser from the Sitefinity web server. The organization service url also resolves within a browser.
We are attempting to connect using an AD account which is also a Dynamics user with the System Administrator role.
Unable to Login to Dynamics CRMOrganizationServiceProxy is null
---------------------------------------------
Value cannot be null. Parameter name: service
---------------------------------------------
at Microsoft.Xrm.Sdk.Client.OrganizationServiceContext..ctor(IOrganizationService service, Boolean trackEntityChanges) at pavliks.PortalConnector.Crm.Connection.CrmDirectConnection.Connect(String connectionString) in #E3:line 188
---------------------------------------------
---------------------------------------------
at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) at System.Environment.get_StackTrace() at pavliks.PortalConnector.ExceptionManager.#8o(Exception ) in #O0:line 203 at pavliks.PortalConnector.ExceptionManager.HandleError(String #3o, Exception #4o, ErrorVerbosity #5o, String& #6o) in #O0:line 96 at pavliks.PortalConnector.ExceptionManager.HandleError(String title, Exception ex, ErrorVerbosity verbosity) in #O0:line 36 at pavliks.PortalConnector.Crm.Connection.CrmDirectConnection.Connect(String connectionString) in #E3:line 188 at pavliks.PortalConnector.Crm.Connection.CrmConnectionManager..ctor(Boolean mockConnection) in #D3:line 195 at pavliks.PortalConnector.Controls.Configuration.Ecommerce.GeneralSettings.#uM.#tM(String , ListItem ) in #53:line 287 at pavliks.PortalConnector.Controls.Configuration.Ecommerce.GeneralSettings.#Dc() in #53:line 334 at pavliks.PortalConnector.Controls.Configuration.Ecommerce.GeneralSettings.InitializeControls(GenericContainer container) in #53:line 187 at Telerik.Sitefinity.Web.UI.SimpleView.CreateChildControls() at System.Web.UI.Control.EnsureChildControls() at System.Web.UI.Control.FindControl(String id, Int32 pathOffset) at System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error) at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb) at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus) at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus) at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)