Hi,
I've moved a script from staging to production but when I run it I get the following error on my prod system,
Script Failure (OSS Visio Reporting): (Code: 0x800402EB) Skyline.DataMiner.Net.Exceptions.DataMinerSecurityException: No such remote connection (ec0d786b11). Retried.
I'm using engine.GetDms(); but I have that working in other scripts.
I create a directory if it doesn't exist in "C:\\Skyline DataMiner\\Documents\\ but again, I've done this before without issue.
I also use the below which sends an SLNetMessage...
private static ViewInfoEventMessage GetVisioFileName(IEngine engine, IDmsView view)
{
var request = new GetInfoMessage(InfoType.ViewInfo);
var responses = engine.SendSLNetMessage(request).OfType<ViewInfoEventMessage>();
var viewInfo = responses?.FirstOrDefault(r => r.ID == view.Id);
return viewInfo;
}
I don't think there's anything else in there that would cause this error, is there a way I can prove what the error is exactly and work around it?
Full error below...
Script Failure (OSS Visio Reporting): (Code: 0x800402EB) Skyline.DataMiner.Net.Exceptions.DataMinerSecurityException: No such remote connection (ec0d786b11). Retried.
Server stack trace:
at Skyline.DataMiner.Net.Facade.HandleImpersonateMessage(IConnectionInfo originalConnInfo, 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)
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 CManagedAutomation.RunWrapped(CManagedAutomation* , Int32 iCookie, IUnknown* pIAutomation, tagVARIANT* varParameters, tagVARIANT* pvarReturn, String scriptName)
at CManagedAutomation.Run(CManagedAutomation* , Int32 iCookie, Char* bstrScriptName, IUnknown* pIAutomation, tagVARIANT* varParameters, tagVARIANT* varEntryPoint, tagVARIANT* pvarReturn) (CSharp; 0x800402ebh): (see comment for more details)
Thanks!
![](https://community.dataminer.services/wp-content/uploads/wp-user-manager-uploads/2022/03/97225679.jpg)
Hi, at the moment it’s just me that’s running the script and I’m in the admin group so not sure what else could be stopping it from running.
![](https://community.dataminer.services/wp-content/uploads/wp-user-manager-uploads/2020/10/nomnom.jpg)
Hi Ross,
I see that this question has been inactive for some time. Do you still need help with this? If not, could you select the answer (using the ✓ icon) to indicate that the question is resolved?
Hello Ross,
This is an exception thrown by our SLNet process trying to handle the impersonation of you executing the script.
This exception occurs when SLNet doesn't know who to impersonate (in this case your Cube session you are running it in).
Do you have issues in the DMS where sometimes DMA Agents disconnect from each other or Cube sessions automatically reconnect.
Similar to what Tom said I do not believe there is a problem with the script, but rather some connectivity issues in the DMS itself. It might be worth starting an investigation to get to the bottom of this.
Hi Ross, the code looks fine at first sight. How is the script being executed (which user)? Is it possible that user doesn’t have access to that view?