Has anyone else seen or heard of an issue with Dynamo being unable to open scripts that are located on a network drive but in “offline” mode (i.e. Windows Offline Files)? We have verified this issue on two separate system running Revit 2017 and Dynamo 1.3. If the scripts files are “online” then they open fine. If you go “offline” then you can’t open the file and receive the following error: “Unknown error opening file: O:…\script.dyn”. Here are the notification details of the error:
System.InvalidOperationException: Method failed with unexpected error code 50.
at System.Security.AccessControl.NativeObjectSecurity.CreateInternal(ResourceType resourceType, Boolean isContainer, String name, SafeHandle handle, AccessControlSections includeSections, Boolean createByName, ExceptionFromErrorCode exceptionFromErrorCode, Object exceptionContext)
at System.Security.AccessControl.FileSystemSecurity…ctor(Boolean isContainer, String name, AccessControlSections includeSections, Boolean isDirectory)
at System.Security.AccessControl.DirectorySecurity…ctor(String name, AccessControlSections includeSections)
at DynamoUtilities.PathHelper.HasWritePermissionOnDir(String folderPath)
at DynamoUtilities.PathHelper.IsReadOnlyPath(String filePath)
at Dynamo.Graph.Workspaces.WorkspaceModel…ctor(IEnumerable1 nodes, IEnumerable
1 notes, IEnumerable1 annotations, WorkspaceInfo info, NodeFactory factory, IEnumerable
1 presets, ElementResolver resolver)
at Dynamo.Graph.Workspaces.HomeWorkspaceModel…ctor(EngineController engine, DynamoScheduler scheduler, NodeFactory factory, IEnumerable1 traceData, IEnumerable
1 nodes, IEnumerable1 notes, IEnumerable
1 annotations, IEnumerable`1 presets, ElementResolver resolver, WorkspaceInfo info, Boolean verboseLogging, Boolean isTestMode)
at Dynamo.Models.DynamoModel.OpenHomeWorkspace(XmlDocument xmlDoc, WorkspaceInfo workspaceInfo, WorkspaceModel& workspace)
at Dynamo.Models.DynamoModel.OpenFile(WorkspaceInfo workspaceInfo, XmlDocument xmlDoc, WorkspaceModel& workspace)
at Dynamo.Models.DynamoModel.OpenFileFromPath(String xmlPath, Boolean forceManualExecutionMode)
at Dynamo.Models.DynamoModel.ExecuteCommand(RecordableCommand command)
at Dynamo.ViewModels.DynamoViewModel.Open(Object parameters)