[SOLVED] Applications not Installing Or Running Properly

Itachiness

Active member
Joined
Jan 2, 2025
Posts
38
I'm not certain this is the correct place to post this, so if it isn't, please let me know where I should post this.

I'm having an issue with a couple of applications properly installing on this 2016 server that appear to relate to .net. It says I'm missing a component. I've tried reinstalling .net 4.8 and while I initially had trouble getting it reinstalled, I was able to get it done with the help of support in this forum.

Here is part of the description from the event log of one of the services not working properly when installing it:
Service cannot be started. System.IO.FileNotFoundException: Could not load file or assembly 'System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

There is a .NET Runtime error that happens at the same time:

og Name: Application
Source: .NET Runtime
Date: 1/27/2025 8:21:22 AM
Event ID: 1026
Task Category: None
Level: Error
Keywords: Classic
Description:
Application: CagService.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileNotFoundException
at CentraStage.Cag.Core.Agent.CsConnection.WebPortOk()
at CentraStage.Cag.Core.Agent.CsConnection.MaintainConnection(System.Action`2<CentraStage.Cag.Core.Messaging.XmlRpcIncomingControlMessage,CentraStage.Cag.Core.Messaging.AddToOutgoingQueueDelegate>)
at CentraStage.Cag.Core.Agent.MainLoop+DelegateTask.Execute()
at CentraStage.Cag.Core.Agent.MainLoop.Loop()
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Threading.ThreadHelper.ThreadStart()
 

Attachments

Hi @Itachiness,

Welcome to Sysnative Forums!

If you haven't already, please review the posting instructions here, and attach the requested log files. Without log files, our helpers will not be able to assist, and this will slow down fixing your machine.

If logs have been already been provided, our team of volunteers will analyse the provided log files to build a fix for your system. Please be aware that this may take several days from your initial post, due to the high volume of threads that we receive.


- Sysnative Windows Update Team
 
Hi,

Step 1. Download
67139f7e69a58-SFCFix-ico.PNG
SFCFix and save it to your desktop.

Warning: This fix was written specifically for this system. Do not run this fix on another system.
  • Save any work you have open, and close all programs.
  • Download the attachment SFCFix.zip and save it to your desktop.
  • Drag the SFCFix.zip file over the SFCFix.exe executable and release it.
67139f52b3c1e-SFCFix-Zip-Eng.gif

  • SFCFix will launch, let it complete.
  • Once done, a file will appear on your desktop, called SFCFix.txt.
  • Post the logfile (SFCFix.txt) as attachment in your next reply.


Step 2. Reboot the server and run
61f7aba7309a1-ComponentsScanner_Icon.png
ComponentsScanner again.
  • Right-click ComponentsScanner.exe and select "Run as administrator", click Yes on the UAC (User Account Control) prompt which appears.
  • Follow the on-screen instructions.
  • Once complete, a report will be saved to your desktop called ComponentsScanner.txt.
  • Post the logfile ComponentsScanner.txt as attachment into your next reply.
 

Attachments

Hi,

This looks good, do you still have issue with .NET applications?
 
I am still having an issue.

I attached new event logs. These are three events that are logged after launching the executable for the application.
 

Attachments

The appliction "CagService.exe" is a part of Datto RMM as it seems, and the EventLog shows also:

Code:
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

Code:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fusion]
"EnableLog"=dword:00000001
 
I had the fusion logging enabled. I have some of those logs would you like me to upload them?
 
Please run the following command in an elevated prompt and copy paste the result in your next post.
Code:
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fusion" /s
 
The output shows:

Code:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fusion
    EnableLog    REG_DWORD    0x0

So please run the following commands in an elevated prompt and post the result.

Code:
reg add HKLM\SOFTWARE\Microsoft\Fusion /v EnableLog /t REG_DWORD /d 0x1 /f
reg query HKLM\SOFTWARE\Microsoft\Fusion
 
Please run the .NET application again and post the result now the "EnableLog" value is set to "0x1".
 
Please run the following script in an elevated PowerShell prompt, this will show some more information about the installed .NET versions in table style.
Code:
Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP' -recurse |
Get-ItemProperty -name Version,Release -EA 0 |
Where { $_.PSChildName -match '^(?!S)\p{L}'} |
Select PSChildName, Version, Release

Try also the following;
 
Last edited:
1738351325504.webp
Here is the output of the powershell script and I'll work on running that installer/repair option
 
I get this pop up when attempting to run the installer, I don't get any prompt for a repair option -
1738351460462.webp
 
Hi,

Download the
60fe7f9d70500-NetFxRepairTool_107-1.png
Microsoft .NET Framework Repair tool and save it to your Desktop.
  • Right-click on NetFxRepairTool.exe and select Run as Administrator.
  • Agree with the license terms "I have read and accept the license terms" and click Next.
  • After checking, the tool will indicate which problems need to be fixed.
  • Click on Next to continue, when this process is finished click Next.
  • The tool will now collect the log files... > when completed the following file is created: FixDotNet****.cab.
  • Click on Finish to close the tool.
  • Right-click on the file FixDotNet****.cab and choose Send to > Compressed (zipped) folder.
  • Attach the ZIP file in your next reply.
 
Please do the followwing:

1. Make a full backup (snapshot) of the server.
2. Run the following command to uninstall .NET 4.x
Code:
dism /online /disable-feature /FeatureName:netfx4 /all
3. Reboot the server and reinstall .NET 4.x
Code:
dism /online /enable-feature /featurename:netfx4 /all
4. You can also use the offline installer if needed! Download .NET Framework 4.8 Offline Installer
 

Has Sysnative Forums helped you? Please consider donating to help us support the site!

Back
Top