Could not find part of the path ... \Microsoft.NETCore.App\8.0.5\System.Runtime.dll

Could not find part of the path ... \Microsoft.NETCore.App\8.0.5\System.Runtime.dll

william
Advocate Advocate
1,245 Views
6 Replies
Message 1 of 7

Could not find part of the path ... \Microsoft.NETCore.App\8.0.5\System.Runtime.dll

william
Advocate
Advocate

Hello All

I have been getting this error message occasionally since upgrading to Inventor 2025. 

Maybe once a week or so. A restart of Inventor fixes it, but I would like to know how to make it go away for good. 

It is missing "C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.5\System.Runtime.dll"
The folder 8.0.5 does not exist on my computer but I have 8.0.6, which is listed as the active version of .NET. 

Any pointers on how to resolve? 
Thanks

 

Screenshot 2024-05-31 075445.pngScreenshot 2024-05-31 110246.pngScreenshot 2024-05-31 110315.png

 

 

0 Likes
Accepted solutions (1)
1,246 Views
6 Replies
Replies (6)
Message 2 of 7

Michael.Navara
Advisor
Advisor

This looks like a issue in used references. Without the source code it is not possible to identify the issue.

But you can look if you don't reference System.Runtime.dll directly in your rule or external library. 

0 Likes
Message 3 of 7

william
Advocate
Advocate

The iLogic rule with the source code, has all lines commented out. It is no longer used. There is no direct reference in the code. 
I am wondering if there is an internal inventor reference to this dll somewhere. 
How would I check, and is it something I can access? 

0 Likes
Message 4 of 7

Michael.Navara
Advisor
Advisor
Accepted solution
0 Likes
Message 5 of 7

william
Advocate
Advocate

Thanks @Michael.Navara 
Installed successfully, hopefully that clears it for good. 

0 Likes
Message 6 of 7

snappyjazz
Collaborator
Collaborator

Hello. I wasn't sure if it was worth creating a new post, or extend this one. I'm having the same issue, except our .net directory is 8.0.8. We all got new workstations and have C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.10\System.Runtime.dll. It sounds like I can either fix the code for everyone, or everyone has to wait for IT to install 8.0.8 back on their computer. To me it sounds easier to fix the code, especially since we have other ilogic rules. Anyway, how do I determine how to update the code? Or is it possible to point the rules to the 8.0.10 directory?

 

If ThisApplication.ActiveDocumentType <> 12292 Then
	'MessageBox.Show(ThisApplication.ActiveDocumentType, "Title")

	GoTo endofprogram
	
End If

Dim oDoc As DrawingDocument
	oDoc = ThisApplication.ActiveDocument
	
' For multi sheet drawings store current sheet to return to after auto rev.
Dim CurrentSheet	
CurrentSheet = ActiveSheet

' revs made on sheet one 
ActiveSheet = ThisDrawing.Sheet("Sheet:1")

Dim oSheet As Sheet
	oSheet = oDoc.ActiveSheet
	
Dim oSymbols As SketchedSymbols
	oSymbols = oSheet.SketchedSymbols
	
Dim oSymboldefs As SketchedSymbolDefinitions
oSymboldefs = oDoc.SketchedSymbolDefinitions

Dim oSymboldef As SketchedSymbolDefinition

Dim oSymbol As SketchedSymbol

Dim I
'Dim oPromptText
Dim oTextBoxes
Dim oEachText 
Dim revnum As Integer
revnum = 0

' Revision block Rev counter to get latest rev
	For Each oSymbol In oSymbols
		oTextBoxes = oSymbol.Definition.Sketch.TextBoxes
			For I = 1 To oSymbol.Definition.Sketch.TextBoxes.Count
				oEachText= oSymbol.Definition.Sketch.TextBoxes(I)
				If (oEachText.Text = "ENTER REV NUMBER") Then
					
					If oSymbol.GetResultText(oEachText) <> "" Then
					
					
						If oSymbol.GetResultText(oEachText)>revnum Then
						revnum = oSymbol.GetResultText(oEachText)
						End If
					End If
					
					
				End If
			Next I
	Next
	


'MessageBox.Show(revnum, "Rev from block")	
If revnum <> 0 Then
iProperties.Value("Custom", "pRevAuto") = revnum
Else
iProperties.Value("Custom", "pRevAuto") = ""
End If

' Return to sheet save was made on
ActiveSheet = CurrentSheet

InventorVb.DocumentUpdate()
endofprogram:
0 Likes
Message 7 of 7

william
Advocate
Advocate

Hello 
I don't think you will be able to edit the code to remove the dependency. Other more knowledgeable people can comment on this, but I thought the dotnet component is something iLogic requires to function and is not referenced in the rule itself.

 

I would suggest getting the dotnet version installed. Here is a link to the download page, just find the correct version you are missing and download and run the installer. 

Download .NET 8.0 (Linux, macOS, and Windows) (microsoft.com) 

0 Likes