An unexpected exception has occurred during CreateInstance
search cancel

An unexpected exception has occurred during CreateInstance

book

Article ID: 176524

calendar_today

Updated On:

Products

IT Management Suite

Issue/Introduction

The following error was encounted while upgrading Local Security Solution

An unexpected exception has occurred during CreateInstance

Log File Name: C:\Program Files\Altiris\Notification Server\Logs\a.log
Priority: 1
Date: 1/19/2007 11:57:01 AM
Tick Count: -1777941437
Host Name: ALTIRIS
Process: w3wp.exe (10284)
Thread ID: 9600
Module: AltirisNativeHelper.dll
Source: Altiris.NS.UI.CoreWebService
Description: Error getting node url: Altiris.NS.Exceptions.AeXException: An unexpected exception has occured during CreateInstance. (Assembely:MSoft.LocalSecurity, Version=6.1.0.0, Culture=neutral, PublicKeyToken=9b6d727d0d042dc4 Type:MSoft.LocalSecurity.Policies.LocalUserInventoryPolicy) ---> System.IO.FileNotFoundException: File or assembly name MSoft.Resource, or one of its dependencies, was not found.
File name: "MSoft.Resource"
at System.Reflection.Assembly.GetTypeInternal(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean publicOnly)
at System.Activator.CreateInstance(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(String assemblyName, String typeName)
at Altiris.NS.ClassActivator.CreateInstance(String assembly, String type)

=== Pre-bind state information ===
LOG: DisplayName = MSoft.Resource, Version=6.0.1236.0, Culture=neutral, PublicKeyToken=9b6d727d0d042dc4
(Fully-specified)
LOG: Appbase = file:///C:/Program Files/Altiris/Notification Server
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===

LOG: Publisher policy file is found at C:\WINDOWS\assembly\GAC\policy.6.0.MSoft.Resource\6.0.1156.0__9b6d727d0d042dc4\policy.6.0.MSoft.Resource.config.
LOG: No redirect found in host configuration file (C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet.config).
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\config\machine.config.
LOG: Post-policy reference: MSoft.Resource, Version=6.0.1236.0, Culture=neutral, PublicKeyToken=9b6d727d0d042dc4
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/altiris_ns/5e538b58/373da79a/MSoft.Resource.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/altiris_ns/5e538b58/373da79a/MSoft.Resource/MSoft.Resource.DLL.
LOG: Attempting download of new URL file:///C:/Program Files/Altiris/Notification Server/bin/MSoft.Resource.DLL.
LOG: Attempting download of new URL file:///C:/Program Files/Altiris/Notification Server/bin/MSoft.Resource/MSoft.Resource.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/altiris_ns/5e538b58/373da79a/MSoft.Resource.EXE.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/altiris_ns/5e538b58/373da79a/MSoft.Resource/MSoft.Resource.EXE.
LOG: Attempting download of new URL file:///C:/Program Files/Altiris/Notification Server/bin/MSoft.Resource.EXE.
LOG: Attempting download of new URL file:///C:/Program Files/Altiris/Notification Server/bin/MSoft.Resource/MSoft.Resource.EXE.

--- End of inner exception stack trace ---

at Altiris.NS.ClassActivator.CreateInstance(String assembly, String type)
at Altiris.NS.ItemManagement.Item.CreateInstance(String strClassAssembly, String strClassType, Guid itemGuid)
at Altiris.NS.ItemManagement.Item.CreateInstance(String strClassAssembly, String strClassType)
at Altiris.NS.ItemManagement.Item.GetItem(Guid itemGuid)
at Altiris.NS.UI.ItemTreeBuilder.GetNodeUrl(String strNode, Hashtable args)
at Altiris.NS.UI.AeXConsole.GetNodeUrl(String strNode, Hashtable args)
at Altiris.NS.UI.CoreWebService.GetNodeUrl(Guid treeGuid, String nodeXPath, String url)

Cause

Local Security Solution removed the registration of Microsoft* ASP.NET* 1.1.

Resolution

Register Microsoft* ASP.NET on the Notification Server.

Open a command prompt and type:

  1. C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe -i
  2. regsvr32 C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll
  3. IISreset

Once this had been completed Local Security Solution will be able to open with no errors.

Refer to article 27432 for more information on re-registering Microsoft* ASP.NET 1.1.4322.

Applies To
Notification Server 6.0 SP3
Microsoft Windows* 2003
SQL 2000