Repository navigation
Description
Description
When run the 3rd party application with the latest .NET 10 build, it failed to open a ".rvt" file. It seems caused by the Assembly version conflicts in the App between .NET 8 and .NET 10 like #113735. Could you please confirm if this issue 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 Devdiv
- Launch Revit 2025.exe.
- Click "Open..." button in Models.
- Input "C:\Users\test01\Desktop\rme_basic_sample_project.rvt" in "File name".
- Click "Open" button and wait a moment.
Expected behavior
File successfully opened.
Actual behavior
Pop up error report. (ErrorDetail.zip attached contains the app crash dump and log files)
Regression?
1). Windows 10 21H2 AMD64 + dotnet-sdk-8.0.406: Pass
2). Windows 10 21H2 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
Repro machine information checking at: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/2409036
Other information
Findings:
The application log from the application local app data folder (attached in ErrorDetail.zip) shows there are module conflicts between .NET 8 and .NET 10:
API_ERROR { : Assembly version conflict in some references in Autodesk.BatchPrint.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.Windows.Forms of version 8.0.0.0 conflicts with same preloaded module of version 10.0.0.0
'Addin's module System.ComponentModel.Primitives of version 8.0.0.0 conflicts with same preloaded module of version 10.0.0.0
'Addin's module System.Windows.Forms.Primitives of version 8.0.0.0 conflicts with same preloaded module of version 10.0.0.0
'Addin's module System.Drawing.Primitives of version 8.0.0.0 conflicts with same preloaded module of version 10.0.0.0
'Addin's module RevitAPIUI of version 25.0.0.0 conflicts with same preloaded module of version 25.4.0.0
'Addin's module RevitAPI of version 25.0.0.0 conflicts with same preloaded module of version 25.4.0.0
'Addin's module System.Diagnostics.Process of version 8.0.0.0 conflicts with same preloaded module of version 10.0.0.0
'Addin's module System.Drawing.Common 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.Xml.ReaderWriter of version 8.0.0.0 conflicts with same preloaded module of version 10.0.0.0
'Addin's module System.ComponentModel.TypeConverter of version 8.0.0.0 conflicts with same preloaded module of version 10.0.0.0
'Addin's module System.Threading.Thread of version 8.0.0.0 conflicts with same preloaded module of version 10.0.0.0
'Addin's module System.ComponentModel of version 8.0.0.0 conflicts with same preloaded module of version 10.0.0.0
'Addin's module System.Diagnostics.TraceSource of version 8.0.0.0 conflicts with same preloaded module of version 10.0.0.0
'Addin's module UserInterfaceUtility of version 25.0.0.0 conflicts with same preloaded module of version 25.4.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.Threading of version 8.0.0.0 conflicts with same preloaded module of version 10.0.0.0 }
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
karakasa commentedon Mar 5, 2025
I thought Revit 2025 is shipped with .NET 8?
jeffschwMSFT commentedon Mar 5, 2025
automatically rolling forward an application to the latest has compatibility risks. are you the application author? testing is necessary before running on a new version
jeffschwMSFT commentedon Mar 5, 2025
Ah, these are from our app compat lab. :)
This issue is related to our exception handling infra, the app throws a lot of exceptions. We are now in a place where we hit a null ref as the current thread does not have a last thrown exception.
cc @janvorli / @mangod9
janvorli commentedon Mar 5, 2025
This is strange. The only case when we call the
Thread:LastThrownObjectis when the exception type isEXCEPTION_COMPLUS(0xe0434352) and it is marked as thrown by the CLR. From the call stack shown above, it is not clear where the exception originated from. @jeffschwMSFT where did you get the stack trace above? It would be useful to see the full stack trace of the thread or even get the dump.jeffschwMSFT commentedon Mar 5, 2025
I shared the dump with @mangod9. I am currently on the machine that has a live repro, which I can relinquish as well.
Fix foreign exception handling on Windows
Fix foreign exception handling on Windows
Fix foreign exception handling on Windows (dotnet#113323)
Junjun-zhao commentedon Apr 10, 2025
Verified this issue with dotnet-sdk-preview.4.25208.21, it has been fixed.