Repository navigation
Description
Description
When run the Autodesk Revit 2025 application with the latest .NET 10 build, it failed to open Dynamo window. It seems caused by the Assembly version conflicts in the App between .NET 8 and .NET 10. Could you please confirm if this issue is in .NET? Thanks.
Reproduction Steps
Repro Steps(The machine only has the .NET 10 Preview 2 runtime and set environment variables "DOTNET_ROLL_FORWARD_ON_NO_CANDIDATE_FX=2"):
Please get the repro machine form DevDiv
- Launch Revit 2025.exe.
- If the “Options” window pops up, click the “Close” button.
- Click “New …” button in “FAMILIES” area.
- Navigate to Desktop and open file “Mass.rft".
- Waiting for model upgrade complete.
- Go to Manage Tab and click Dynamo.
Expected behavior
Agreements for Data Collection window will appear.

After clicking Continue button on Agreements for Data Collection window, the Dynamo window will be opened.

Actual behavior
Agreement for Data Collection window and Dynamo window are not pop up, an error window shows with below error message:
ProtoCore.Exceptions.CompilerInternalException
at ProtoCore.Utils.Validity.Assert(Boolean cond)
at ProtoCore.AssociativeEngine.Utils.IsGlobalScopeDirty(Executable exe)
at ProtoScript.Runners.LiveRunner.ApplyUpdate()
at ProtoScript.Runners.LiveRunner.PostExecution()
at ProtoScript.Runners.LiveRunner.CompileAndExecuteForDeltaExecution(String code)
at ProtoScript.Runners.LiveRunner.SynchronizeInternal(String code)
at ProtoScript.Runners.LiveRunner.ResetVMAndResyncGraph(IEnumerable`1 libraries)
at Dynamo.Engine.LiveRunnerServices.ReloadAllLibraries(IEnumerable`1 libraries)
at Dynamo.Engine.EngineController.OnLibraryLoaded()
at Dynamo.Engine.EngineController..ctor(LibraryServices libraryServices, String geometryFactoryFileName, Boolean verboseLogging)
at Dynamo.Models.DynamoModel.ResetEngineInternal()
at Dynamo.Models.DynamoModel..ctor(IStartConfiguration config)
at Dynamo.Applications.Models.RevitDynamoModel..ctor(IRevitStartConfiguration configuration)
at Dynamo.Applications.Models.RevitDynamoModel.Start(IRevitStartConfiguration configuration)
at Dynamo.Applications.DynamoRevit.InitializeCoreModel(DynamoRevitCommandData commandData)
at Dynamo.Applications.DynamoRevit.LoadDynamoWithoutSplashScreen()
at Dynamo.Applications.DynamoRevit.ExecuteCommand(DynamoRevitCommandData commandData)
Regression?
Verify Scenarios:
1). Windows 10 22H2 AMD64 + dotnet-sdk-8.0.406: Pass
2). Windows 10 22H2 AMD64 + dotnet-sdk-10.0.100-preview.2.25126.21: Fail
3). Windows 10 22H2 AMD64 + dotnet-sdk-9.0.200: Fail
4). Windows 10 22H2 AMD64 + dotnet-sdk-10.0.100-preview.1.25120.13: Fail
Known Workarounds
No response
Configuration
Application Name: Autodesk Revit 2025
OS: Windows 10 22H2
CPU: X64
.NET Build Number: dotnet-sdk-10.0.100-preview.2.25126.21
Other information
Findings:
When debugging with Windbg, we found below exception captured by Windbg (the full log in Windbg attached as WindbgLog.txt ):
ModLoad: 0000022a`4e9f0000 0000022a`4ea06000 C:\Program Files\Autodesk\Revit 2025\AddIns\DynamoForRevit\DynamoFeatureFlags\LaunchDarkly.CommonSdk.dll
(3cf4.bbc): CLR exception - code e0434352 (first chance)
(3cf4.bbc): CLR exception - code e0434352 (first chance)
ModLoad: 00007ffd`54dd0000 00007ffd`5500a000 C:\Program Files\dotnet\shared\Microsoft.NETCore.App\10.0.0-preview.2.25125.14\Microsoft.DiaSymReader.Native.amd64.dll
ModLoad: 0000022a`4ea10000 0000022a`4ea32000 C:\Program Files\Autodesk\Revit 2025\AddIns\DynamoForRevit\DynamoFeatureFlags\LaunchDarkly.ClientSdk.dll
ModLoad: 0000022a`4ced0000 0000022a`4ceda000 C:\Program Files\dotnet\shared\Microsoft.NETCore.App\10.0.0-preview.2.25125.14\System.Xml.ReaderWriter.dll
ModLoad: 00007ffd`914c0000 00007ffd`91c40000 C:\Program Files\dotnet\shared\Microsoft.NETCore.App\10.0.0-preview.2.25125.14\System.Private.Xml.dll
ModLoad: 00007ffd`febe0000 00007ffd`fec05000 C:\Program Files\dotnet\shared\Microsoft.NETCore.App\10.0.0-preview.2.25125.14\System.Memory.dll
ModLoad: 00007ffd`da720000 00007ffd`da75c000 C:\Program Files\dotnet\shared\Microsoft.NETCore.App\10.0.0-preview.2.25125.14\System.Private.Uri.dll
ModLoad: 00007ffe`22890000 00007ffe`22abe000 C:\Windows\SYSTEM32\icu.dll
ModLoad: 00007ffd`5d820000 00007ffd`5d8f4000 C:\Program Files\dotnet\shared\Microsoft.NETCore.App\10.0.0-preview.2.25125.14\System.Collections.Immutable.dll
onecore\windows\core\console\open\src\server\devicecomm.cpp(149)\conhost.exe!00007FF61052113B: (caller: 00007FFE2E4B7374) ReturnHr(1) tid(4060) 800700E9 No process is on the other end of the pipe.
(3cf4.1fd8): CLR exception - code e0434352 (first chance)
ntdll!RtlUserThreadStart:
00007ffe`2f01cc70 4883ec78 sub rsp,78h
The application log from the application local app data folder (attached as journal.0010.txt) shows there are module conflicts between .NET 8 and .NET 10:
' 0:< API_SUCCESS { Starting External Application: Dynamo For Revit, Class: Dynamo.Applications.VersionLoader, Vendor : ADSK(Dynamo), Assembly: Revit/DynamoRevitVersionSelector.dll, Assembly Version: 3.3.0.6523 }
' 0:< API_ERROR { : Assembly version conflict in some references in Autodesk.DynamoPlayerForRevit.Application.dll assembly
'Addin's module System.Runtime of version 8.0.0.0 conflicts with same preloaded module of version 10.0.0.0
'Addin's module System.Runtime.InteropServices of version 8.0.0.0 conflicts with same preloaded module of version 10.0.0.0
'Addin's module System.Linq of version 8.0.0.0 conflicts with same preloaded module of version 10.0.0.0
'Addin's module System.Collections of version 8.0.0.0 conflicts with same preloaded module of version 10.0.0.0
'Addin's module System.Threading of version 8.0.0.0 conflicts with same preloaded module of version 10.0.0.0
'Addin's module PresentationCore of version 8.0.0.0 conflicts with same preloaded module of version 10.0.0.0 }
' 0:< API_SUCCESS { Replacing command id 'ID_PLAYLIST_DYNAMO' CanExecute implementation with implementation from application 'Application Dynamo Player For Revit' dll 'C:\Program Files\Autodesk\Revit 2025\AddIns\DynamoPlayerForRevit\Autodesk.DynamoPlayerForRevit.Application.dll'. }
dotnet info:
.NET SDK:
Version: 10.0.100-preview.2.25126.21
Commit: f4f293c695
Workload version: 10.0.100-manifests.849cb335
MSBuild version: 17.14.0-preview-25126-06+e18e7f0af
Runtime Environment:
OS Name: Windows
OS Version: 10.0.19045
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\10.0.100-preview.2.25126.21\
Host:
Version: 10.0.0-preview.2.25125.14
Architecture: x64
Commit: 143f7e2ca0
.NET SDKs installed:
10.0.100-preview.2.25126.21 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 10.0.0-preview.2.25126.5 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 10.0.0-preview.2.25125.14 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 10.0.0-preview.2.25126.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
@dotnet-actwx-bot @dotnet/compat
Activity
jeffschwMSFT commentedon Mar 5, 2025
same comment as #113158
jeffschwMSFT commentedon Mar 6, 2025
I took a look, as this is from our app compat lab. ;)
This issue is subtle and the apps fails on both 9.* and 10.*. Here is what I have seen thus far.
On .NET 10, the app fails as a DSExecutable is null at this callstack
Looking at 8, this object is set at this callstack.
.NET 9 and 10 never make it to ProtoCore.Core.GenerateExecutable and thus do not set the DSExecutable. I observed a number of parse error exceptions while debugging 10, but there are also a lot of exceptions thrown on 8 so not sure that is relevant. This app will require side by side debugging to understand what changed and/or if that behavior is expected.
Junjun-zhao commentedon Mar 6, 2025
Thanks @jeffschwMSFT for your quickly investigation. Could you please confirm if the two issues #113158 and this one are blocker for .NET 10 Preview2?
jeffschwMSFT commentedon Mar 6, 2025
This impacts .NET 9, so not blocking for 10, imho
jeffschwMSFT commentedon Mar 6, 2025
Through a process of elimination the behavior change appears to be in Microsoft.WindowsDesktop.App (and potentially WPF/XAML). So moving to WPF
himgoyalmicro commentedon Mar 20, 2025
The issue seems to arise from this method ProtoScript.Runners.LiveRunner.CompileAndExecute(System.String). On debugging, we found that the string that was being passed to ProtoScript.Runners.LiveRunner.CompileAndExecute(System.String) contains extra parenthesis as compared to what was being passed in .NET 8 which seems to be happening because of this PR: #96948. Therefore, reassigning it to dotnet runtime team.
10 remaining items
dotnet-policy-service commentedon Apr 8, 2025
This issue has been automatically marked
no-recent-activitybecause it has not had any activity for 14 days. It will be closed if no further activity occurs within 14 more days. Any new comment (by anyone, not necessarily the author) will removeno-recent-activity.dotnet-policy-service commentedon Apr 23, 2025
This issue has been automatically marked
no-recent-activitybecause it has not had any activity for 14 days. It will be closed if no further activity occurs within 14 more days. Any new comment (by anyone, not necessarily the author) will removeno-recent-activity.dotnet-policy-service commentedon May 7, 2025
This issue has been automatically marked
no-recent-activitybecause it has not had any activity for 14 days. It will be closed if no further activity occurs within 14 more days. Any new comment (by anyone, not necessarily the author) will removeno-recent-activity.ericstj commentedon May 19, 2025
Closing this as by-design.