Autodesk.Windows.RibbonPanel.get_Cookie() Fails on Startup

Created by Steve Hill, Modified on Fri, 22 Sep 2023 at 03:56 PM by Steve Hill

Application does not support just-in-time (JIT) debugging. See the end of this message for details. 
************** Exception Text ************** System.MethodAccessException: Attempt by method 'Rtcl_AutoCadRibbonCore.RibbonHelpers.Notifications.FindHostingSpPanelDropDown(Autodesk.Windows.RibbonTab, Autodesk.Windows.RibbonPanel, System.String, Autodesk.Windows.RibbonPanel ByRef)' to access method 'Autodesk.Windows.RibbonPanel.get_Cookie()' failed.   at Rtcl_AutoCadRibbonCore.RibbonHelpers.Notifications.FindHostingSpPanelDropDown(RibbonTab ribTabId, RibbonPanel parentPanel, String Id, RibbonPanel& rsp)   at Rtcl_AutoCadRibbonCore.RibbonHelpers.Notifications.ToggleCommandUpdates(String AssemblyDirectory, String ProductName, RibbonTab ribTabId, Boolean& ShowCommandUpdates)   at Rtcl_AutoCadRibbonCore.RibbonHelpers.Notifications.NotifyOfCommandUpdateStartup(String AssemblyDirectory, Version AssemblyVersion, String ProductName, RibbonTab RibTabId, String& SettingRibbonSavedVersion, DateTime& SettingNewUpdatesFirstSeen, Boolean& SettingShowCommandUpdates)   at PipeNetworkTools.PipeNetworkToolsCommands.Application_Idle(Object sender, EventArgs e)   at System.EventHandler.Invoke(Object sender, EventArgs e)   at Autodesk.AutoCAD.ApplicationServices.Core.Application.raise_Idle(Object value0, EventArgs value1)   at Autodesk.AutoCAD.ApplicationServices.Core.Application.OnIdle()


On Startup of Civil 3D, the JIT debugger shows up over and over. Looking through the data, there is a call for Autodesk.Windows.RibbonPanel.get_Cookie() which is failing.


This issue seems to only occur on Civil 3D 2020 and earlier. It looks that the Autodesk Windows API does not have a call for get_cookie which is causing it to fail on startup.


To get past the issue, you'll need to modify your Pipe Network Tools settings to shut of the command notifications. Please do the following:


1. Browse to your Documents folder and the following directory:

    ..\Documents\Red Transit Consultants, LLC\Pipe Network Productivity Tools


2. Open the Settings.xml in Notepad or NotePad++


3. Edit Line 32


    Change from:

        <ShowCommandUpdates>true</ShowCommandUpdates>


   To:

    <ShowCommandUpdates>false</ShowCommandUpdates>


4. Restart Civil 3D. It should now startup without the error.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article