Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


ErikC
  •  ErikC
  • Free support Topic Starter
2015-06-08T09:19:09Z
Hi,

I cloned a webserice task and refreshed the URL. I received an NullrefereceException.
System.NullReferenceException: Object reference not set to an instance of an object.
   at UCTaskWebService.GIIMHDIBOBJFLAGNKGDIIPEHGMJJONDKBPIJ() in C:\sourcefiles\code\VisualCron\Tasks\Reflection\UCTaskWebService.vb:line 690
   at UCTaskWebService.BFLFKBEJMOFNJNKDIFCACLNKPGFOMMPMHABH(Object  , EventArgs  ) in C:\sourcefiles\code\VisualCron\Tasks\Reflection\UCTaskWebService.vb:line 664
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at Infragistics.Win.Misc.UltraButtonBase.OnClick(EventArgs e)
   at Infragistics.Win.Misc.UltraButton.OnMouseUp(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

and
6/8/2015 11:14:19 AM	Debug	RemoveConnection->Enter
6/8/2015 11:14:19 AM	Debug	RemoveConnection->ConnClass->Before disconnect (WCF)
6/8/2015 11:14:19 AM	Debug	RemoveConnection->ConnClass->After disconnect (WCF)
6/8/2015 11:14:19 AM	Debug	RemoveConnection->Connection removed from dictionary.
6/8/2015 11:14:19 AM	Debug	Before sending ClientConnection (Delete)
6/8/2015 11:14:19 AM	Debug	MessageSend (ToAll) To (Empty) : ClientConnectionChange
6/8/2015 11:14:19 AM	Debug	RemoveConnection->Connection: uuid:26bef4a3-30d6-4b0b-b38c-cd6bb61a73fc;id=4 was removed
6/8/2015 11:14:19 AM	Debug	clsCommClientThread->Disconnected->Connection removed: uuid:26bef4a3-30d6-4b0b-b38c-cd6bb61a73fc;id=4
6/8/2015 11:14:19 AM	Debug	ConnectionManager_ConnectionRemoved->Connection removed (Server Event): uuid:26bef4a3-30d6-4b0b-b38c-cd6bb61a73fc;id=4
6/8/2015 11:14:19 AM	Err	ClientError: System.ServiceModel.CommunicationException: There was an error while trying to serialize parameter http://tempuri.org/:message. The InnerException message was 'Object graph for type 'System.Collections.Generic.List`1[[VisualCron.MRParam, VisualCron, Version=1.0.1.31600, Culture=neutral, PublicKeyToken=55f7a52402de1c04]]' contains cycles and cannot be serialized if reference tracking is disabled.'.  Please see InnerException for more details. ---> System.Runtime.Serialization.SerializationException: Object graph for type 'System.Collections.Generic.List`1[[VisualCron.MRParam, VisualCron, Version=1.0.1.31600, Culture=neutral, PublicKeyToken=55f7a52402de1c04]]' contains cycles and cannot be serialized if reference tracking is disabled.
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.OnHandleReference(XmlWriterDelegator xmlWriter, Object obj, Boolean canContainCyclicReference)
   at WriteMRMethodToXml(XmlWriterDelegator , Object , XmlObjectSerializerWriteContext , ClassDataContract )
   at System.Runtime.Serialization.ClassDataContract.WriteXmlValue(XmlWriterDelegator xmlWriter, Object obj, XmlObjectSerializerWriteContext context)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.WriteDataContractValue(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeWithoutXsiType(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.InternalSerialize(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)
   at WriteMRParamToXml(XmlWriterDelegator , Object , XmlObjectSerializerWriteContext , ClassDataContract )
   at System.Runtime.Serialization.ClassDataContract.WriteXmlValue(XmlWriterDelegator xmlWriter, Object obj, XmlObjectSerializerWriteContext context)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.WriteDataContractValue(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeWithoutXsiType(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.InternalSerialize(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)
   at WriteArrayOfMRParamToXml(XmlWriterDelegator , Object , XmlObjectSerializerWriteContext , CollectionDataContract )
   at System.Runtime.Serialization.CollectionDataContract.WriteXmlValue(XmlWriterDelegator xmlWriter, Object obj, XmlObjectSerializerWriteContext context)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.WriteDataContractValue(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeWithoutXsiType(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.InternalSerialize(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)
   at WriteMRMethodToXml(XmlWriterDelegator , Object , XmlObjectSerializerWriteContext , ClassDataContract )
   at System.Runtime.Serialization.ClassDataContract.WriteXmlValue(XmlWriterDelegator xmlWriter, Object obj, XmlObjectSerializerWriteContext context)
   at System.Runti
6/8/2015 11:14:19 AM	Err	ClientError: System.ServiceModel.CommunicationObjectAbortedException: The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it has been Aborted.

Server stack trace: 
   at System.ServiceModel.Channels.CommunicationObject.ThrowIfDisposedOrNotOpen()
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   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 CommServer.Classes.WCF.IWCFServiceCallback.OnMessageReceived(Message message)
   at CommServer.Classes.WCF.WCFServiceContract.Send(Message message)

Regards,
Erik
Uses Visualcron since 2006.
Sponsor
Forum information
Support
2015-06-08T10:52:42Z
Can you update to 7.6.7? We have added some debugging. It should not crash but there should be a popup that is interesting for us.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
ErikC
  •  ErikC
  • Free support Topic Starter
2015-06-08T11:13:09Z
Hi,

i installed 7.6.7 and did the same. Clone a Webservice task an refresh the URL.
I don't get a popup anymore wit hthe null reference, but a popup with a connection loss': 'failed to connect to server'.
After reconnecting I receive another popup with 'Error loading assembly'

Error reloading assembly: System.NullreferenceException: Object reference not set to an instande of an object.
UCTaskWebService.vb:line 703

In the logs:
6/8/2015 1:12:10 PM	Debug	2015-06-08 11:12:10.238: MessageRecived From (in) uuid:1341afd3-94e8-42e4-b6a0-185c6606bb3a;id=3: AssemblyInfoGet
6/8/2015 1:12:10 PM	Debug	2015-06-08 11:12:10.597: MessageSend To (Private) uuid:1341afd3-94e8-42e4-b6a0-185c6606bb3a;id=3: AssemblyInfo
6/8/2015 1:12:10 PM	Debug	RemoveConnection->Enter
6/8/2015 1:12:10 PM	Debug	RemoveConnection->ConnClass->Before disconnect (WCF)
6/8/2015 1:12:10 PM	Debug	RemoveConnection->ConnClass->After disconnect (WCF)
6/8/2015 1:12:10 PM	Debug	RemoveConnection->Connection removed from dictionary.
6/8/2015 1:12:10 PM	Debug	Before sending ClientConnection (Delete)
6/8/2015 1:12:10 PM	Debug	MessageSend (ToAll) To (Empty) : ClientConnectionChange
6/8/2015 1:12:10 PM	Debug	RemoveConnection->Connection: uuid:1341afd3-94e8-42e4-b6a0-185c6606bb3a;id=3 was removed
6/8/2015 1:12:10 PM	Debug	clsCommClientThread->Disconnected->Connection removed: uuid:1341afd3-94e8-42e4-b6a0-185c6606bb3a;id=3
6/8/2015 1:12:10 PM	Debug	ConnectionManager_ConnectionRemoved->Connection removed (Server Event): uuid:1341afd3-94e8-42e4-b6a0-185c6606bb3a;id=3
6/8/2015 1:12:10 PM	Err	ClientError: System.ServiceModel.CommunicationException: There was an error while trying to serialize parameter http://tempuri.org/:message. The InnerException message was 'Object graph for type 'System.Collections.Generic.List`1[[VisualCron.MRParam, VisualCron, Version=1.0.1.17715, Culture=neutral, PublicKeyToken=55f7a52402de1c04]]' contains cycles and cannot be serialized if reference tracking is disabled.'.  Please see InnerException for more details. ---> System.Runtime.Serialization.SerializationException: Object graph for type 'System.Collections.Generic.List`1[[VisualCron.MRParam, VisualCron, Version=1.0.1.17715, Culture=neutral, PublicKeyToken=55f7a52402de1c04]]' contains cycles and cannot be serialized if reference tracking is disabled.
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.OnHandleReference(XmlWriterDelegator xmlWriter, Object obj, Boolean canContainCyclicReference)
   at WriteMRMethodToXml(XmlWriterDelegator , Object , XmlObjectSerializerWriteContext , ClassDataContract )
   at System.Runtime.Serialization.ClassDataContract.WriteXmlValue(XmlWriterDelegator xmlWriter, Object obj, XmlObjectSerializerWriteContext context)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.WriteDataContractValue(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeWithoutXsiType(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.InternalSerialize(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)
   at WriteMRParamToXml(XmlWriterDelegator , Object , XmlObjectSerializerWriteContext , ClassDataContract )
   at System.Runtime.Serialization.ClassDataContract.WriteXmlValue(XmlWriterDelegator xmlWriter, Object obj, XmlObjectSerializerWriteContext context)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.WriteDataContractValue(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeWithoutXsiType(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.InternalSerialize(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)
   at WriteArrayOfMRParamToXml(XmlWriterDelegator , Object , XmlObjectSerializerWriteContext , CollectionDataContract )
   at System.Runtime.Serialization.CollectionDataContract.WriteXmlValue(XmlWriterDelegator xmlWriter, Object obj, XmlObjectSerializerWriteContext context)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.WriteDataContractValue(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeWithoutXsiType(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.InternalSerialize(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)
   at WriteMRMethodToXml(XmlWriterDelegator , Object , XmlObjectSerializerWriteContext , ClassDataContract )
   at System.Runtime.Serialization.ClassDataContract.WriteXmlValue(XmlWriterDelegator xmlWriter, Object obj, XmlObjectSerializerWriteContext context)
   at System.Runti
6/8/2015 1:12:10 PM	Err	ClientError: System.ServiceModel.CommunicationObjectAbortedException: The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it has been Aborted.

Server stack trace: 
   at System.ServiceModel.Channels.CommunicationObject.ThrowIfDisposedOrNotOpen()
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   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 CommServer.Classes.WCF.IWCFServiceCallback.OnMessageReceived(Message message)
   at CommServer.Classes.WCF.WCFServiceContract.Send(Message message)
6/8/2015 1:12:12 PM	Debug	ConnectionManager_ConnectionAdded->ClientConnected: uuid:1341afd3-94e8-42e4-b6a0-185c6606bb3a;id=4
6/8/2015 1:12:12 PM	Debug	Before sending ClientConnection (Insert)
6/8/2015 1:12:12 PM	Debug	MessageSend (ToAll) To (Empty) : ClientConnectionChange
6/8/2015 1:12:12 PM	Debug	MessageSend (ToAll) To (Empty) : ClientConnectionChange


Regards
Erik
Uses Visualcron since 2006.
Support
2015-06-08T11:15:25Z
When did you do this? We updated the exe about 3 hours ago.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
ErikC
  •  ErikC
  • Free support Topic Starter
2015-06-08T11:17:41Z
Just now.
Uses Visualcron since 2006.
Support
2015-06-08T12:07:45Z
Please re-download and test again:

http://www.visualcron.co....aspx?g=posts&t=4994 
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
ErikC
  •  ErikC
  • Free support Topic Starter
2015-06-08T12:23:57Z
Hi Henrik,

Issue is fixed. No popup anymore, no client crash. The methods are refreshed again like it should be.

Thanks,
Erik
Uses Visualcron since 2006.
Support
2015-06-08T12:49:44Z
Thanks for the report and feedback!
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top