RevitToolkit icon indicating copy to clipboard operation
RevitToolkit copied to clipboard

Revit 2025: FileLoadException - could not load file Nice3Point.Revit.Toolkit

Open harrymattison opened this issue 1 year ago • 10 comments

Hi Roman - I am getting this error when starting Revit 2025

image

But that DLL does exist in the folder with the add-in dll image

image

CSPROJ.txt

Is there some other file that needs to be included? Thanks

harrymattison avatar Oct 09 '24 22:10 harrymattison

can you ensure that you don't implement Revit Api IexternalCommand and IexternalApp ?

AmeerMansour avatar Oct 10 '24 07:10 AmeerMansour

I have one instance of Nice3point.Revit.Toolkit.External.ExternalCommand and one Nice3point.Revit.Toolkit.External.ExternalApplication

The only "IExt..." in the project is IExternalEventHandler

harrymattison avatar Oct 10 '24 09:10 harrymattison

also, it works fine with Revit 2024

harrymattison avatar Oct 10 '24 10:10 harrymattison

A known problem on Revit 2025, the issue is that Revit doesn't want to load a dependency that is a higher version than the one already loaded. A temporary solution is to run DependenciesReport https://github.com/jeremytammik/RevitLookup/issues/269#issuecomment-2323309590 to find a plugin with an older version and copy Toolkit version 2025.0.3 to it

Nice3point avatar Oct 10 '24 13:10 Nice3point

A known problem on Revit 2025

Does this mean that Nice3point/RevitToolkit should not be used with Revit 2025 unless the temporary solution is used?

find a plugin with an older version and copy Toolkit version 2025.0.3 to it

Could you explain in more detail what this means? What older version of which plugin would resolve this?

harrymattison avatar Oct 10 '24 13:10 harrymattison

Does this mean that Nice3point/RevitToolkit should not be used with Revit 2025 unless the temporary solution is used?

you can, why not, you just need to update the plugins that use RevitToolkit with older versions, like 2025.0.1

Could you explain in more detail what this means? What older version of which plugin would resolve this?

Can you run DependenciesReport from the link above and send the generated report here so we can figure out the cause of the problem?

Nice3point avatar Oct 10 '24 13:10 Nice3point

@harrymattison Update please RevitLookup to the 2025.0.10 version изображение

Nice3point avatar Oct 10 '24 14:10 Nice3point

Thanks, but how can I publish a product that will fail to load based on the version of some other product?

harrymattison avatar Oct 10 '24 14:10 harrymattison

Toolkit gives more conflict protection than not using it at all. There are always chances to encounter incompatible plugins, Autodesk solves this problem, so we can only hope that they will do something in Revit 2026.

Nice3point avatar Oct 10 '24 14:10 Nice3point