Hi,
I have the following code working on my staging platform running DM v10.3. When I transfer to a prod system on 9.6 I get the following error. (I'm assuming it's the DM version causing this) Is there a way to edit the code so it runs without the exception?
My Code:
I get this error from DM 9.6...
(Code: 0x800402D5) Skyline.DataMiner.Net.Exceptions.DataMinerCOMException: Failed to send e-mail.
---> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x800402D5
Server stack trace:
at Interop.SLAspConnection.IDMSLink.GetInfo(Int32 iType, Object varElements, Object varParams, Object& pVarData)
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
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 Interop.SLAspConnection.IDMSLink.GetInfo(Int32 iType, Object varElements, Object varParams, Object& pVarData)
at Skyline.DataMiner.Net.MessageHandler.SendGenericEmail(IConnectionInfo connInfo, SendEmailMessage req)
at Skyline.DataMiner.Net.Facade.HandleClientRequestMessage(IConnectionInfo connInfo, ClientRequestMessage oneMsg, Boolean canQueue)
at Skyline.DataMiner.Net.Facade.HandleMessageInternal(IConnectionInfo connInfo, DMSMessage oneMsg, Int32 groupID, Int32 groupTotal)
at Skyline.DataMiner.Net.Facade.HandleMessage(IConnectionInfo connInfo, DMSMessage oneMsg, Int32 groupID, Int32 groupTotal)
at Skyline.DataMiner.Net.BaseFacade.HandleMessages(IConnectionInfo connInfo, DMSMessage[] msgs)
at Skyline.DataMiner.Net.Facade.HandleImpersonateMessage(IConnectionInfo connInfo, ImpersonateMessage im)
at Skyline.DataMiner.Net.Facade.HandleMessageInternal(IConnectionInfo connInfo, DMSMessage oneMsg, Int32 groupID, Int32 groupTotal)
at Skyline.DataMiner.Net.Facade.HandleMessage(IConnectionInfo connInfo, DMSMessage oneMsg, Int32 groupID, Int32 groupTotal)
at Skyline.DataMiner.Net.BaseFacade.HandleMessages(IConnectionInfo connInfo, DMSMessage[] msgs)
at Skyline.DataMiner.Net.Facade.HandleMessagesForClient(IConnectionInfo connInfo, DMSMessage[] messages)
at Skyline.DataMiner.Net.Transport.Remoting.InternalHandleMessages(ConnectionToken token, DMSMessage[] inputMessages)
--- End of inner exception stack trace ---
Server stack trace:
at Skyline.DataMiner.Net.Transport.Remoting.InternalHandleMessages(ConnectionToken token, DMSMessage[] inputMessages)
at Skyline.DataMiner.Net.Transport.Remoting.HandleMessages(ConnectionToken token, DMSMessage[] inputMessages)
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
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 Skyline.DataMiner.Net.ISLNet.HandleMessages(ConnectionToken token, DMSMessage[] inputMessages)
at Skyline.DataMiner.Net.RemotingConnection.TransportSpecificHandleMessage(ConnectionToken tok, DMSMessage[] msgs, Int32 timeout)
at Skyline.DataMiner.Net.Connection.InternalHandlePackedMessages(ConnectionToken tok, DMSMessage[] msgs, Int32 timeout)
at Skyline.DataMiner.Net.Connection.InternalHandleUnpackedMessages(DMSMessage[] msgs, Int32 timeout)
at Skyline.DataMiner.Net.Connection.HandleMessages(DMSMessage[] msgs, Int32 timeout)
at Skyline.DataMiner.Net.PersistentConnectionContainer.SendMessages(DMSMessage[] messages)
at Skyline.DataMiner.Net.PersistentConnectionContainer.SendMessage(DMSMessage message)
at Skyline.DataMiner.Automation.Engine.SendSLNetMessage(DMSMessage message)
at RestartConsulAndChassisAPI.Script.SendEmail(Engine engine, String email, IActionableElement chassis)
at RestartConsulAndChassisAPI.Script.Run(Engine engine)
Thank you,
Ross
This 0x800402D5 error typically occurs when the DMA can not send outgoing emails via a mail server. Can you verify if the DMA has been configured correctly to send emails? The configuration is in the C:\Skyline DataMiner\DataMiner.xml configuration file. More information can be found here.
If this looks correct, then there might be more error information in the following log file: C:\Skyline DataMiner\Logging\SLASPConnection.txt
Thanks! You’re right, the 1 agent I uploaded the script to happened to be the only one without SMTP settings.
Thanks again, all working now.