After a repair on the current ITMS installation, the customer reported that when he goes to "SMP Console > Settings > Agents/Plug-ins > Symantec Management Agent > Settings > Targeted Agent Settings", the following error occurs (we turned off the customerrors mode under <install Drive>:\Program Files\Altiris\Notification Server\Web\web.config) :
Server Error in '/Altiris/NS' Application.
----------------------------------------------------------------------------
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be
identified using the exception stack trace below.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
Altiris.NS.UI.Admin.Configuration.cfgNSClientSettingsNew.OnInit(EventArgs e) +70
System.Web.UI.Control.InitRecursive(Control namingContainer) +165
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint,
Boolean includeStagesAfterAsyncPoint) +1611
----------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET
Version:4.7.2053.0
The NS logs show:
Failed to process web request.
Exception of type 'System.Web.HttpUnhandledException' was thrown.
[System.Web.HttpUnhandledException @ System.Web]
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at Altiris.NS.UI.Controls.PageCachePage.ProcessRequest(HttpContext context)
at Altiris.NS.UI.AltirisPage.ProcessRequest(HttpContext context)
Object reference not set to an instance of an object.
[System.NullReferenceException @ Altiris.Web.NS]
at Altiris.NS.UI.Admin.Configuration.cfgNSClientSettingsNew.OnInit(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Exception logged from:
at Altiris.NS.UI.AltirisPage.ProcessRequest(System.Web.HttpContext)
at System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplicati
on.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(System.Web.HttpApplication+IExecution Step, Boolean&)
at System.Web.HttpApplication+PipelineStepManager.ResumeSteps(Exception)
at System.Web.HttpApplication.BeginProcessRequestNotification(System.Web.HttpContext, AsyncCallback)
at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(System.Web.Hosting.IIS7WorkerRequest, System.Web.HttpContext)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr, IntPtr, IntPtr, Int32)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr, IntPtr, IntPtr, Int32)
at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr, System.Web.RequestNotificationStatus&)
at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr, System.Web.RequestNotificationStatus&)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr, IntPtr, IntPtr, Int32)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr, IntPtr, IntPtr, Int32)
HTTP [GET]:
http://smp02.yourdomain.com/Altiris/NS/Admin/Configuration/cfgNSClientSettingsNew.aspx?Url=http://smp02.yourdomain.com/Altiris/Console/tree.aspx?
ViewGuid=a57fb0e9-0676-4e00-929a-6bb37dc1f888&&ConsoleGuid=1b22db4e-a898-443f-9b99-855b1653d3f5&TreeGuid=a57fb0e9-0676-4e00-929a-
6bb37dc1f888&ParentGuid=00000000-0000-0000-0000-000000000000&ItemGuid=0e1f8e1a-a5c4-4ea0-8f6b-b641bd49b605&ViewGuid=a57fb0e9-0676-4e00-929a-6bb37dc1f888&ConsoleGuid=1b22db4e-a898-443f-9b99-855b1653d3f5
ip: [fe80::344b:39f5:4ce9:2cf7%11]; languages: [en-US];
response: [200 OK]; x-smp-nsversion: [8.1.4528.0];
----------------------------------------------------------------------------
Date: 8/8/2019 7:35:26 AM, Tick Count: 853812515 (9.21:10:12.5150000), Size: 3.23 KB
Process: w3wp (12212), Thread ID: 991, Module: Altiris.NS.UI.dll
Priority: 1, Source: Altiris.NS.UI.AltirisPage.ProcessRequest
Application Event Logs shows:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 8/8/2019 7:36:50 AM
Event time (UTC): 8/8/2019 2:36:50 PM
Event ID: 3577c666811042afa4ba34539285d35d
Event sequence: 63786
Event occurrence: 5
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1/ROOT/Altiris/NS-4-132096990289557598
Trust level: Full
Application Virtual Path: /Altiris/NS
Application Path: D:\Program Files\Altiris\Notification Server\Web\
Process information:
Process ID: 12212
Process name: w3wp.exe
Account name: IIS APPPOOL\SMP Server AppPool
Exception information:
Exception type: NullReferenceException
Exception message: Object reference not set to an instance of an object.
at Altiris.NS.UI.Admin.Configuration.cfgNSClientSettingsNew.OnInit(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Request information:
Request URL:
http://smp02.yourdomain.com/Altiris/NS/Admin/Configuration/cfgNSClientSettingsNew.aspx?Url=http://smp02.yourdomain.com/Altiris/Console/tree.aspx?ViewGuid=a57fb0e9-0676-4e00-929a-6bb37dc1f888&&ConsoleGuid=1b22db4e-a898-443f-9b99-855b1653d3f5&TreeGuid=a57fb0e9-0676-4e00-929a-
6bb37dc1f888&ParentGuid=00000000-0000-0000-0000-000000000000&ItemGuid=0e1f8e1a-a5c4-4ea0-8f6b-b641bd49b605&ViewGuid=a57fb0e9-0676-4e00-929a-
6bb37dc1f888&ConsoleGuid=1b22db4e-a898-443f-9b99-855b1653d3f5
Request path: /Altiris/NS/Admin/Configuration/cfgNSClientSettingsNew.aspx
User host address: fe80::344b:39f5:4ce9:2cf7/Altiris/NS
Is authenticated: True
Authentication Type: Negotiate
Thread information:
Thread ID: 334
Is impersonating: False
Stack trace: at Altiris.NS.UI.Admin.Configuration.cfgNSClientSettingsNew.OnInit(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
ITMS 8.x
The SMP server has a file mismatch version. After previous repairs, some of those files didn't match with the expected content on them.
In this particular instance, these were the files that needed to be updated:
cfgnsclientsettingsnew.aspx
cfggeneralagentsettingsdetails
cfggeneralagentsettingsdetails
cfggeneralagentsettingsdetails
Replace the cfgnsclientsettingsnew.aspx file with one from another SMP Server with the same ITMS version. Then refresh SMP Console and try the page again.
Also, try a Full Repair using Symantec Installation Manager (SIM) if you noticed more files that needs to be updated.