Dear on duty,
When I am trying to import some scripts I receive the following Unhandled Dispatcher Exception:
System.IO.DirectoryNotFoundException:
Message="Could not find a part of the path 'C:\Users\catalin.cireasa\AppData\Local\Temp\2\DIS\AutomationScripts\4F8FDA54168DB79FCF530C754CC8C990\Quintech Matrix - UI for visio template - With Device name -Vproduction3-1-0-14_2\Quintech Matrix - UI for visio template - With Device name -Vproduction3-1-0-14_2.cs'."
Source="mscorlib"
StackTrace:
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)
at System.IO.File.WriteAllText(String path, String contents)
at Skyline.VSX.ProtocolEditor.Solution.Projects.ProjectFactory.GenerateProject(ProjectCreateInfo info)
at Skyline.VSX.ProtocolEditor.Automation.AutomationScriptProjectFactory.GenerateScriptProject(AutomationDocument document, ScriptExe script, ProjectLinkInfo projectLinkInfo, Project libraryProject, IList`1 allScripts)
at Skyline.VSX.ProtocolEditor.Automation.AutomationScriptProjectFactory.GetOrCreateProject(AutomationDocument document, ScriptExe script, IList`1 allScripts)
at Skyline.VSX.ProtocolEditor.Automation.AutomationScriptProjectFactory.GetOrCreateProject(AutomationDocument document, ScriptExe script)
at Skyline.VSX.ProtocolEditor.Automation.AutomationScriptEditorHelper.OpenAutomationAction(AutomationDocument document, ScriptExe script, Boolean buildProject, Boolean openInEditor)
at Skyline.VSX.ProtocolEditor.Tagging.Adornments.XmlAutomationTagAdornment.<>c__DisplayClass18_0.<OpenAutomationScriptAction>b__1()
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
And in the DIS-DMAComm I have the following entries:
2022/03/04 12:14:58.223|> Trying to load assembly via service: SLLoggerUtil, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9789b1eac4cb1b12
2022/03/04 12:14:58.224|> Get path via service...
2022/03/04 12:14:58.241|> Path:
2022/03/04 12:14:58.242|> Trying to load assembly from package: SLLoggerUtil
2022/03/04 12:14:58.243|> Couldn't find file in DIS package.
2022/03/04 12:14:58.243|> Couldn't load assembly.
2022/03/04 12:14:58.751|> Resolving assembly: SLProtoBufLibrary.XmlSerializers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9789b1eac4cb1b12
2022/03/04 12:14:58.751|> Trying to load assembly via service: SLProtoBufLibrary.XmlSerializers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9789b1eac4cb1b12
2022/03/04 12:14:58.752|> Get path via service...
2022/03/04 12:14:58.752|> Path:
2022/03/04 12:14:58.753|> Trying to load assembly from package: SLProtoBufLibrary.XmlSerializers
2022/03/04 12:14:58.753|> Couldn't find file in DIS package.
2022/03/04 12:14:58.753|> Couldn't load assembly.
2022/03/04 12:14:59.135|> Resolving assembly: Skyline.DataMiner.Storage.Types, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9789b1eac4cb1b12
2022/03/04 12:14:59.135|> Trying to load assembly via service: Skyline.DataMiner.Storage.Types, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9789b1eac4cb1b12
2022/03/04 12:14:59.136|> Get path via service...
2022/03/04 12:14:59.136|> Path:
2022/03/04 12:14:59.136|> Trying to load assembly from package: Skyline.DataMiner.Storage.Types
2022/03/04 12:14:59.136|> Couldn't find file in DIS package.
2022/03/04 12:14:59.137|> Couldn't load assembly.
2022/03/04 12:14:59.258|> Resolving assembly: Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed
2022/03/04 12:14:59.258|> Trying to load assembly via service: Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed
2022/03/04 12:14:59.259|> Get path via service...
2022/03/04 12:14:59.259|> Path: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\PrivateAssemblies\Newtonsoft.Json.12.0.0.2\Newtonsoft.Json.dll
2022/03/04 12:14:59.260|> Loading...
2022/03/04 12:14:59.280|> Successfully loaded Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken
Do you have any idea why ?
SW_ELECTRONIC_Visual_Studio_Pro_2019
with
DataMiner Integration Studio (Main Release for Visual Studio 2017 & 2019)
“4F8FDA54168DB79FCF530C754CC8C990Qu” this folder does not exist
should I try the latest DIS installer ?
.Net Framework installed : 4.6.1, 4.6.2 and 4.8
Hi Catalin,
I noticed this question is already open now for a while, do you still encounter this issue? Otherwise i would suggest to send a mail to techsupport@skyline.be for a more in depth investigation?
Hi Catalin. With which DIS and Visual Studio version do you have this problem? Could you please also check if the following directory has been created: ‘C:Userscatalin.cireasaAppDataLocalTemp2DISAutomationScripts4F8FDA54168DB79FCF530C754CC8C990Quintech Matrix – UI for visio template – With Device name -Vproduction3-1-0-14_2’?