Page 2 of 2
Re: Could not load file or assembly
Posted: Thu May 18, 2023 1:37 pm
by Lamont
I might have found the problem. On the computer where DC is not working, these two folders are empty:
C:\Windows\Microsoft.NET\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089
C:\Windows\Microsoft.NET\assembly\GAC_64\System.Data\v4.0_4.0.0.0__b77a5c561934e089
On the computer where DC is working, those folders both have a System.Data.dll file.
Can I just copy those to the same folders on my computer?
Even if that works, I'm wondering if there are other files missing from my Microsoft.NET folder. Is there some way I can find out if there are other files missing, and put them back? I already tried turning the .NET Framework feature off and back on again, and I ran the Microsoft .NET Framework Repair Tool, but those two folders are still empty.
Re: Could not load file or assembly
Posted: Thu May 18, 2023 3:57 pm
by therube
I don't know anything about such stuff, but I guess it can't hurt to try?
What happens if you were to try to install 4.8 again,
https://support.microsoft.com/en-us/top ... 3c3e7495e0 ?
Maybe that would fix up what isn't right?
Searching for the "magic number", "0__b77a5c561934e089 E: v4.0", it's found in these directories:
Code: Select all
E:\Windows\Microsoft.NET\assembly\GAC_32\mscorlib\
E:\Windows\Microsoft.NET\assembly\GAC_32\System.Data\
E:\Windows\Microsoft.NET\assembly\GAC_32\System.Data.OracleClient\
E:\Windows\Microsoft.NET\assembly\GAC_32\System.Transactions\
E:\Windows\Microsoft.NET\assembly\GAC_64\mscorlib\
E:\Windows\Microsoft.NET\assembly\GAC_64\System.Data\
E:\Windows\Microsoft.NET\assembly\GAC_64\System.Data.OracleClient\
E:\Windows\Microsoft.NET\assembly\GAC_64\System.Transactions\
E:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.Internal.Tasks.Dataflow\
E:\Windows\Microsoft.NET\assembly\GAC_MSIL\PresentationFramework-SystemCore\
E:\Windows\Microsoft.NET\assembly\GAC_MSIL\PresentationFramework-SystemData\
E:\Windows\Microsoft.NET\assembly\GAC_MSIL\PresentationFramework-SystemDrawing\
E:\Windows\Microsoft.NET\assembly\GAC_MSIL\PresentationFramework-SystemXml\
E:\Windows\Microsoft.NET\assembly\GAC_MSIL\PresentationFramework-SystemXmlLinq\
E:\Windows\Microsoft.NET\assembly\GAC_MSIL\SMDiagnostics\
E:\Windows\Microsoft.NET\assembly\GAC_MSIL\System\
E:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.AddIn\
E:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.ComponentModel.Composition\
E:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.ComponentModel.Composition.Registration\
E:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Core\
E:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Data.DataSetExtensions\
E:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Data.Entity\
E:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Data.Entity.Design\
E:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Data.Linq\
E:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Data.Services\
E:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Data.Services.Client\
E:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Data.Services.Design\
E:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Data.SqlXml\
E:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Device\
E:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.DirectoryServices.AccountManagement\
E:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.IdentityModel\
E:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.IdentityModel.Selectors\
E:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.IdentityModel.Services\
E:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.IO.Compression\
E:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.IO.Compression.FileSystem\
E:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.IO.Compression.ZipFile\
E:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Management.Instrumentation\
E:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Numerics\
E:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Reflection.Context\
E:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Runtime.Remoting\
E:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Runtime.Serialization\
E:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.ServiceModel\
E:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.ServiceModel.ServiceMoniker40\
E:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.ServiceModel.WasHosting\
E:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Web.Entity\
E:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Web.Entity.Design\
E:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Windows.Controls.Ribbon\
E:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Windows.Forms\
E:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Windows.Input.Manipulations\
E:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Windows.Presentation\
E:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Xaml\
E:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Xml\
E:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Xml.Linq\
E:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Xml.Serialization\
Re: Could not load file or assembly (solved)
Posted: Fri May 19, 2023 12:27 am
by Lamont
I copied System.Data.dll in the GAC folders from the computer where DC was working to the one where it wasn't, and now it's working.
I'm still concerned about other files possibly missing from my .NET Framework, and why the System.Data files were not restored by the repair tool or by turning the .NET Framework features off and on.
(later) I did some more searching, and all but two of the results were from the developer side, not about files actually missing from the Windows\Microsoft.NET folder on the user's computer. The only two examples of that were never resolved, with one person saying that the only way they found to fix it was with a clean install of Windows. I learned that in Windows 10, .NET Framework is embedded in the system, and can't be installed or uninstalled separately, and apparently can't even be repaired if it's badly broken, any other way than by a clean install of Windows. Fortunately for me, we have the same Windows system on two identical computers in my home, so I was able to copy the System.Data dll from one to the other, which is enough to be able to use Duplicate Cleaner. There are still dozens of files missing from my Windows\Microsoft.NET, but it hasn't created any other problems in the last five days. I'm hoping that either it won't create any more, or that if it does, I'll remember to look for the missing files on the other computer. I don't want to copy all of them now, because I'm afraid it might break something, even if it is the same Windows system on two identical computers.