Forums

Forums / Deployment / Unable to Login to Dynamics CRMOrganizationServiceProxy is null

Unable to Login to Dynamics CRMOrganizationServiceProxy is null

3 posts, 0 answered
  1. Kevin Dowker
    Kevin Dowker avatar
    4 posts
    Registered:
    03 May 2019
    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)
  2. Allen Mehic
    Allen Mehic avatar
    1 posts
    Registered:
    09 Sep 2019
    03 Nov 2020 in reply to Kevin Dowker
    Link to this post
    Was there a resolution to this?  I'm having the same problem and no luck finding a solution
  3. Patrick
    Patrick avatar
    33 posts
    Registered:
    20 Apr 2020
    04 Nov 2020
    Link to this post
    Hi Allen,

    I am currently working on replicating this issue with Kevin to try and find a resolution.

    Could you please provide your Sitefinity and TPC versions? I already have Kevin's and the version you are running may give me some more details as to how I can replicate the issue.

    Thanks,

    Patrick
3 posts, 0 answered