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

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

CRM SDK 2016: Plugin Registration Error

(0) ShareShare
ReportReport
Posted on by 680

Hi Experts,

I am getting this error when I'm trying to connect to CRM online organization using the plugin registration. I am using CRM SDK 2016 v 8.1. Any help is much appreciated. Thanks in advance.

[Quote]

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.

at Microsoft.Xrm.Tooling.CrmConnectControl.CrmConnectionManager.SetConfigKeyInformation(Dictionary`2 configKeys)
at Microsoft.Xrm.Tooling.CrmConnectControl.CrmServerLoginControl.StartConnectCheck()
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.Controls.Primitives.ButtonBase.OnClick()
at System.Windows.Controls.Button.OnClick()
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Window.ShowHelper(Object booleanBox)
at System.Windows.Window.ShowDialog()
at Microsoft.Crm.Tools.PluginRegistration.MainViewModel.CreateConnections()

[/Quote]

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    razdynamics Profile Picture
    17,308 User Group Leader on at
    RE: CRM SDK 2016: Plugin Registration Error

    Hi LMP, I am able to connect using the same version that you have mentioned. Are you able to access Discovery service?

    DId you try earlier versions of Plugin Registration tools like CRM 2015?

    Best Wishes, Raz

  • LMP Profile Picture
    680 on at
    RE: CRM SDK 2016: Plugin Registration Error

    Hi Raz,

    Yes I am able to access the Discovery service of the CRM and I also tried connecting to CRM using the earlier version of Plugin Registration and still get the same error.

    I am running the Plugin Registration inside my VM, when i try to connect outside VM I am able to connect. So I think there is something on the system that is preventing the Plugin Registration to connect to the CRM. The error displays after i click connect.

    Thanks for the reply!

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: CRM SDK 2016: Plugin Registration Error

    Hi LMP,

    i think due to some firewall restrictions you are not able to connect, please check that

  • Community Member Profile Picture
    on at
    RE: CRM SDK 2016: Plugin Registration Error

    Hi LMP,

       Did you ever figure out what the problem was. I have the same issue and I've been unable to find a working solution

  • Verified answer
    Nadeeja Bomiriya Profile Picture
    6,804 on at
    RE: CRM SDK 2016: Plugin Registration Error

    Hi,

    Try deleting the contents of the below folder.  C:\Users\<username>\AppData\Roaming\Microsoft\PluginRegistration

    Below thread discusses the same issue and above solution has worked.

    community.dynamics.com/.../222787

  • Suggested answer
    acoliveira Profile Picture
    5 on at
    RE: CRM SDK 2016: Plugin Registration Error

    Thank you very much!!!

  • FaisalZoneOne Profile Picture
    5 on at
    RE: CRM SDK 2016: Plugin Registration Error

    Thank You very much it worked !!!!!

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#1
UllrSki Profile Picture

UllrSki 2

#3
SC-08081331-0 Profile Picture

SC-08081331-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans