"Specific cast is not valid" error. No Trace logging. - 4.0 (3 replies)
One of the times when I ran it I appear to have gotten a stack trace, but I'm not sure how helpful it will be:
Specified cast is not valid.
Server stack trace:
at Realisable.Utils.WcfExtensions.ExceptionMarshallingMessageInspector.System.ServiceModel.Dispatcher.IClientMessageInspector.AfterReceiveReply(Message& reply, Object correlationState)
at System.ServiceModel.Dispatcher.ImmutableClientRuntime.AfterReceiveReply(ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Realisable.Connectors.Service.IConnectorMetaPresenter.CreateMetaPresenter(String jobId, String hashCode, String systemId, ConnectorEssence connectorType)
at Realisable.Connectors.Service.PresenterClientProxy.c__DisplayClass9_0.b__0()
at Realisable.Connectors.Service.PresenterClientProxy.CreateMetaPresenter(String jobId, String hashCode, String systemId, ConnectorEssence connectorType)
at Realisable.IManWebUI.SystemConnectorTransform.LoadConnector(String systemId)
at Realisable.IManWebUI.SystemConnectorTransform.Refresh(Boolean updatingSystemDropDown, Boolean updatingViewDropDown)
And it looks like this populated into dstrace.log:
- System.InvalidCastException: Specified cast is not valid.
at Realisable.Utils.Converter.ConvertTo[T](String value)
at Realisable.Connectors.SageX3.SageX3Logon.Logon(SystemConnectorDTO system)
at Realisable.Connectors.SageX3.SageX3MetaDataExtender.OpenConnection(SystemConnectorDTO system)
at Realisable.Connectors.SageX3.SageX3MetaDataExtender.QueryWebServicesPublicationService(SystemConnectorDTO system)
at Realisable.Connectors.SageX3.SageX3MetaDataExtender.LoadMetaDocument(SystemConnectorDTO system)
at Realisable.Connectors.SageX3.SageX3MetaDataExtender.set_ConnectorSettings(SystemConnectorDTO value)
at Realisable.Connectors.CustomExtenderInterop.set_SystemId(String value)
at Realisable.Connectors.MetaDataPresenter..ctor(ConnectorEssence connectorEssence, String systemId)
at Realisable.Connectors.MetaPresenterFactory.CreateGetMetaPresenter(String jobId, String hashCode, String systemId, ConnectorEssence connectorType)
at Realisable.Connectors.MetaPresenterFactory.LoadMetaDataPresenter(String jobId, String hashCode, String systemId, ConnectorEssence connectorType)
at Realisable.DataService.ConnectorMetaPresenter.CreateMetaPresenter(String jobId, String hashCode, String systemId, ConnectorEssence connectorType)
I'm including a screenshot of the System Connector, I'm not sure if the error is due to something in our System Connector setup, or the X3 Web Service setup.
Support
I'm having an issue connecting to an X3 installation. When I attempt to open the connector I only get the error "Specified cast is not valid." I've enabled the X3 trace in appconfig.xml, but nothing is logged when i get this error.
We have set up the System Connector like we have in the past, and unfortunately the unclear error message doesn't give us much to work with.
Is there a way to dig further into this error?
Does this error sound indicative of anything specific to you?