calibrated_dan
Hi all,

I have an issue when connected to any Cosworth Device via Ethernet.
- MQ12Di
- IPS32
- ICD
- CLU

Running the latest update of Toolset [update 5] with fresh uninstalls / reinstalls.
Toolset runs fine until a device is connected, then it will show the device as "initialising" and then give out the error message at the bottom of this post.

This happens with connection to the car OR via bench harness.
Initially when this occurred it was in relation to 1 vehicle, however now I have lost all access to Cosworth Devices.
I have access to another laptop to test the same devices/wiring etc and I am sure this is in relation to this particular laptop.

Any help would be appreciated.

Quote:
Exception: System.Reflection.TargetInvocationException
Exception has been thrown by the target of an invocation.

Source:
mscorlib

Stack Trace:
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Delegate.DynamicInvokeImpl(Object[] args)
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.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(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.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run(Window window)
at Pi.Research.Toolset.Shell.SingleInstanceManager.OnStartup(StartupEventArgs eventArgs)
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
at Pi.Research.Toolset.Shell.EntryPoint.Main(String[] args)

Inner Exception: System.Reflection.TargetInvocationException
Exception has been thrown by the target of an invocation.

Source:
mscorlib

Stack Trace:
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(String assemblyString, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.AppDomain.CreateInstance(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.AppDomain.CreateInstanceAndUnwrap(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.AppDomain.CreateInstanceAndUnwrap(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at Pi.Research.Toolset.Metadata.MetadataCache.GetAppDomainForKey(MetadataKey key)
at Pi.Research.Toolset.Metadata.MetadataCache.CreateInstance(MetadataKey key, String assemblyName, String typeName, Object[] arguments)
at Pi.Research.Toolset.Metadata.MetadataCache.CreateInstance[T](MetadataKey key, Object[] arguments)
at Pi.Research.Toolset.Metadata.MetadataCache.CreateInstanceAndUnwrap[T](MetadataKey key)
at Pi.Research.Toolset.Metadata.MetadataDeviceContextFactory.CreateContext(MetadataKey key, MetadataDeviceContextParameters parameters, IDevice parent, MetadataCache metadataCache, Stream pcPrivateStream)
at Pi.Research.Toolset.Ethernet.EthernetDevice.CreateSetupDependentMetadata(Guid setupIdentifier)
at Pi.Research.Toolset.Ethernet.EthernetDevice.StartIdling()
at Pi.Research.Toolset.Ethernet.EthernetDevice.GoToState(DeviceStateType deviceStateType, Object param)
at Pi.Research.Toolset.Ethernet.EthernetDevice.m_state_Completed(Object sender, EventArgs e)
at Pi.Research.Toolset.Ethernet.States.DeviceState.OnCompleted(EventArgs args)
at Pi.Research.Toolset.Ethernet.States.InitializingState.Advance(Boolean success)
at Pi.Research.Toolset.Ethernet.States.InitializingState.dataSetRetriever_RetrievedDataSet(Object sender, RetrievedDataSetMessageEventArgs e)
at Pi.Research.Toolset.Ethernet.States.DataSetRetriever.OnRetrievedDataSet(RetrievedDataSetMessage response)
at Pi.Research.Toolset.Ethernet.States.DataSetRetriever.m_dataSetSocketHandler_MessageReceived(Object sender, DataSetMessageReceivedEventArgs e)
at Pi.Research.Toolset.Ethernet.DataSets.DataSetSocketHandler.OnMessageReceived(DataSetMessageReceivedEventArgs args)
at Pi.Research.Toolset.Ethernet.DataSets.DataSetSocketHandler.ProcessReceivedMessage(Byte[] data)

Inner Exception: System.Configuration.ConfigurationErrorsException
Configuration system failed to initialize

Source:
System.Configuration

Stack Trace:
at System.Configuration.ClientConfigurationSystem.OnConfigRemoved(Object sender, InternalConfigEventArgs e)
at System.Configuration.Internal.InternalConfigRoot.OnConfigRemoved(InternalConfigEventArgs e)
at System.Configuration.Internal.InternalConfigRoot.RemoveConfigImpl(String configPath, BaseConfigurationRecord configRecord)
at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
at System.Configuration.BaseConfigurationRecord.GetSection(String configKey)
at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String sectionName)
at System.Configuration.ConfigurationManager.GetSection(String sectionName)
at System.Configuration.ClientSettingsStore.ReadSettings(String sectionName, Boolean isUserScoped)
at System.Configuration.LocalFileSettingsProvider.GetPropertyValues(SettingsContext context, SettingsPropertyCollection properties)
at System.Configuration.SettingsBase.GetPropertiesFromProvider(SettingsProvider provider)
at System.Configuration.SettingsBase.SetPropertyValueByName(String propertyName, Object propertyValue)
at System.Configuration.SettingsBase.set_Item(String propertyName, Object value)
at System.Configuration.ApplicationSettingsBase.set_Item(String propertyName, Object value)
at Pi.Research.Diagnostics.Settings.set_MaxLogFiles(Int32 value)
at Pi.Research.Toolset.Metadata.MetadataCache.AppDomainCoreServices..ctor(MetadataKey key, String relativePathToLogs)

Inner Exception: System.Configuration.ConfigurationErrorsException
'.', hexadecimal value 0x00, is an invalid character. Line 9, position 1. (C:\Users\Daniel\AppData\Local\Cosworth_Electronics_Ltd\MetadataKey_MetafileName__Url_xvzw3cm3jmxb41lpftm2ag2oac2mh401\7.0\user.config line 9)

Source:
System.Configuration

Stack Trace:
at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal)
at System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors)
at System.Configuration.BaseConfigurationRecord.ThrowIfInitErrors()
at System.Configuration.ClientConfigurationSystem.OnConfigRemoved(Object sender, InternalConfigEventArgs e)

Inner Exception: System.Xml.XmlException
'.', hexadecimal value 0x00, is an invalid character. Line 9, position 1.

Source:
System.Xml

Stack Trace:
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
at System.Xml.XmlTextReaderImpl.ParseText(Int32& startPos, Int32& endPos, Int32& outOrChars)
at System.Xml.XmlTextReaderImpl.ParseText()
at System.Xml.XmlTextReaderImpl.ParseElementContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlTextReader.Read()
at System.Configuration.XmlUtil.StrictReadToNextElement(ExceptionAction action)
at System.Configuration.BaseConfigurationRecord.ScanSectionsRecursive(XmlUtil xmlUtil, String parentConfigKey, Boolean inLocation, String locationSubPath, OverrideModeSetting overrideMode, Boolean skipInChildApps)
at System.Configuration.BaseConfigurationRecord.ScanSectionsRecursive(XmlUtil xmlUtil, String parentConfigKey, Boolean inLocation, String locationSubPath, OverrideModeSetting overrideMode, Boolean skipInChildApps)
at System.Configuration.BaseConfigurationRecord.ScanSections(XmlUtil xmlUtil)
at System.Configuration.BaseConfigurationRecord.InitConfigFromFile()

Inner Exception:
null
Reply 0 0
littleozfella
Hi, There is a later version of Toolset, I have PM'd you.

cheers
Reply 0 0
Dcicero25
Can I get a version that works as well? I have the same issue the Tool set software crashes when I add the KML file
Reply 0 0
littleozfella
That is usually because the kml file hasnt generated correctly. Try making another kml file.
Cheers 
Reply 1 0
Djé01360
Hello, i have the same problem on new icd on porche 991.2 gt3 cup. Can you give me the solution for connexion with Pi Toolset please ?
Reply 0 0
littleozfella
Hi,
          Which problem? the thread is becoming many topics, Adding the KML file or connecting to the device with Toolset.  Firstly if you cannot connect are you using Version 7 Toolset?? and have you setup the dedicated Cosworth IP address settings (attached). On some computers you need to disable Internet Protocol Version 6 (TCP/IPv6).   Have you allowed Toolset through your firewall. Also disable ALL other Anti-Virus's.   Have you Clicked on Devices (first tab Top Left) and then the + icon to add a new device? And then click on this device and then select the Activate Tick?  If you are having KML issues then make a new one, sometimes they seem to corrupt when you make them. 

Cheers.
Reply 0 0
Reply