Back to connectors… Back to Sage X3...

"Specific cast is not valid" error. No Trace logging. - 4.0 (3 replies)

Randy
6 years ago
Randy 6 years ago

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?

https://www.realisable.co.uk/wp-content/uploads/2018/10/mstsc_2018-10-22_09-23-31.png
Randy
6 years ago
Randy 6 years ago

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)

Randy
6 years ago
Randy 6 years ago

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)

Randy
6 years ago
Randy 6 years ago

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.

https://www.realisable.co.uk/wp-content/uploads/2018/10/mstsc_2018-10-22_10-31-04.png

Contact

Realisable Software Ltd provides code-free, cost-effective applications integration solutions for SMEs. Our core IMan product is designed to integrate almost any application with a number of Sage solutions and online payment processors.

Looking to purchase IMan, please see our resellers here.

Realisable Software
Ph: +44 (0) 208 123 1017

Copyright © Realisable. All rights reserved.
Realisable is a registered trademark

Close

Request Demo

Realisable Software Ltd provides code-free, cost-effective applications integration solutions for SMEs. Our core IMan product is designed to integrate almost any application with a number of Sage solutions and online payment processors.

Looking to purchase IMan, please see our resellers here.

Realisable Software
Ph: +44 (0) 208 123 1017

Copyright © Realisable. All rights reserved.
Realisable is a registered trademark

Close

Access Downloads

Realisable Software Ltd provides code-free, cost-effective applications integration solutions for SMEs. Our core IMan product is designed to integrate almost any application with a number of Sage solutions and online payment processors.

Looking to purchase IMan, please see our resellers here.

Realisable Software
Ph: +44 (0) 208 123 1017

Copyright © Realisable. All rights reserved.
Realisable is a registered trademark

Close