Back to connectors… Back to Sage X3...

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

Randy
8 years ago
Randy 8 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
8 years ago
Randy 8 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
8 years ago
Randy 8 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
8 years ago
Randy 8 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
Stefanjungle
2 weeks ago
Stefanjungle 2 weeks ago

During a discussion about autoimmune disease, someone in my study group mentioned plasmapheresis as a treatment that works very differently from standard medications. I wanted to understand why doctors would use a procedure that removes plasma from the blood, so I read https://ways2well.com/blog/how-plasmapheresis-helps-autoimmune-conditions. The article helped me understand how plasmapheresis may reduce circulating antibodies, immune complexes, or other substances that can contribute to certain autoimmune problems. What I found especially useful was seeing where the procedure fits into treatment rather than thinking of it as a general therapy for every autoimmune condition. For me, it was a good overview of the mechanism, the kinds of situations where it may be considered, and the questions worth asking a specialist about risks, benefits, alternatives, and expected results.

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