Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot launch tool - System.ArgumentException: Empty path name is not legal. #1

Open
harrymattison opened this issue Apr 7, 2024 · 4 comments

Comments

@harrymattison
Copy link

Installed Bowerbird.for.Revit.2023.msi
Launched Revit 2023
Attempt to launch Bowerbird

Jrn.RibbonEvent "Execute external command:CustomCtrl_%CustomCtrl_%Add-Ins%Ara 3D%Bowerbird:Ara3D.Bowerbird.Revit.BowerbirdExternalCommand"
' 1:< API_ERROR { : Assembly version conflict in some references in Ara3D.Bowerbird.Revit2023.dll assembly
'Addin's module Ara3D.Utils of version 1.4.2.0 conflicts with same preloaded module of version 1.4.4.0
'Addin's module Ara3D.Bowerbird.Interfaces of version 1.4.2.0 conflicts with same preloaded module of version 1.4.4.0
'Addin's module Ara3D.Services of version 1.4.2.0 conflicts with same preloaded module of version 1.4.4.0 }
' 1:< ::89:: Delta VM: Avail -208 -> 134177456 MB, Used +245 -> 1116 MB; RAM: Avail -306 -> 1373 MB, Used +247 -> 1121 MB, Peak +4 -> 1121 MB
' 1:< GUI Resource Usage GDI: Avail 9061, Used 939, User: Used 450
' 1:< TaskDialog "System.ArgumentException: Empty path name is not legal.
' 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)
' at Roslyn.Utilities.StandardFileSystem.OpenFile(String filePath, FileMode mode, FileAccess access, FileShare share)
' at Roslyn.Utilities.CommonCompilerFileSystemExtensions.OpenFileWithNormalizedException(ICommonCompilerFileSystem fileSystem, String filePath, FileMode fileMode, FileAccess fileAccess, FileShare fileShare)
' at Microsoft.CodeAnalysis.MetadataReference.CreateFromFile(String path, MetadataReferenceProperties properties, DocumentationProvider documentation)
' at Ara3D.Utils.Roslyn.RoslynUtils.<>c.b__11_0(FilePath x)
' at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
' at Ara3D.Utils.Roslyn.DirectoryCompiler.Compile()
' at Ara3D.Bowerbird.Core.BowerbirdService.Compile()
' at Ara3D.Bowerbird.WinForms.Net48.BowerbirdForm..ctor(IBowerbirdHost host, BowerbirdOptions options)
' at Ara3D.Bowerbird.Revit.BowerbirdRevitApp.GetOrCreateWindow() in C:\Users\cdigg\git\ara3d\bowerbird\Revit2023\BowerbirdRevitApp.cs:line 80
' at Ara3D.Bowerbird.Revit.BowerbirdRevitApp.Run(UIApplication application) in C:\Users\cdigg\git\ara3d\bowerbird\Revit2023\BowerbirdRevitApp.cs:line 116
' at Ara3D.Bowerbird.Revit.BowerbirdExternalCommand.Execute(ExternalCommandData commandData, String& message, ElementSet elements) in C:\Users\cdigg\git\ara3d\bowerbird\Revit2023\BowerbirdExternalCommand.cs:line 20"

@harrymattison
Copy link
Author

I first saw this exception for a custom add-in that I had created an installed on my computer. I un-registered all addins in C:\ProgramData\Autodesk\Revit\Addins\2023 and C:\Program Files\Autodesk\Revit 2023\AddIns
Then the error happened for C:\Program Files\Autodesk\Revit 2023\SDA\bin\ICSharpCode.Core.WinForms.dll

Untitled.video.-.Made.with.Clipchamp.mp4

@cdiggins
Copy link
Contributor

cdiggins commented Apr 7, 2024

Thanks for sharing this, I will try to look into it this week.

@cdiggins
Copy link
Contributor

I have made some progress on fixing this, I hope to have an update soon. Thanks for your patience!

@cdiggins
Copy link
Contributor

cdiggins commented Oct 9, 2024

@harrymattison can you please verify that this is fixed in the newest release? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants