'File or assembly name Altiris.Inventory ... was not found', setting Replication Direction in Connector Import Rule

Article:TECH29153  |  Created: 2007-04-25  |  Updated: 2007-05-10  |  Article URL http://www.symantec.com/docs/TECH29153
Article Type
Technical Solution

Issue



After upgrading from Inventory Solution 6.1.1063 to 6.1.1075, the following error is shown when trying to set the Replication Direction of a Connector Resources Import/Export rule, with the Resource Type set to Computer:

Server Error in '/Altiris/Connector' Application.
--------------------------------------------------------------------------------

File or assembly name Altiris.Inventory, or one of its dependencies, was not found.
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.IO.FileNotFoundException: File or assembly name Altiris.Inventory, or one of its dependencies, was not found.

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. 

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Altiris.Inventory' could not be loaded.


=== Pre-bind state information ===
LOG: DisplayName = Altiris.Inventory, Version=6.1.1063.0, Culture=neutral, PublicKeyToken=d516cb311cfb6e4f
 (Fully-specified)
LOG: Appbase = file:///C:/Program Files/Altiris/Connector/Web
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===

LOG: Publisher policy file is not found.
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: Altiris.Inventory, Version=6.1.1063.0, Culture=neutral, PublicKeyToken=d516cb311cfb6e4f
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/altiris_connector/a352f27e/230f3825/Altiris.Inventory.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/altiris_connector/a352f27e/230f3825/Altiris.Inventory/Altiris.Inventory.DLL.
LOG: Attempting download of new URL file:///C:/Program Files/Altiris/Connector/Web/bin/Altiris.Inventory.DLL.
LOG: Attempting download of new URL file:///C:/Program Files/Altiris/Connector/Web/bin/Altiris.Inventory/Altiris.Inventory.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/altiris_connector/a352f27e/230f3825/Altiris.Inventory.EXE.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/altiris_connector/a352f27e/230f3825/Altiris.Inventory/Altiris.Inventory.EXE.
LOG: Attempting download of new URL file:///C:/Program Files/Altiris/Connector/Web/bin/Altiris.Inventory.EXE.
LOG: Attempting download of new URL file:///C:/Program Files/Altiris/Connector/Web/bin/Altiris.Inventory/Altiris.Inventory.EXE.

 Stack Trace:


[FileNotFoundException: File or assembly name Altiris.Inventory, or one of its dependencies, was not found.]
   System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark) +0
   System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark) +307
   System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark) +68
   System.Activator.CreateInstance(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark& stackMark) +35
   System.Activator.CreateInstance(String assemblyName, String typeName) +35
   Altiris.NS.ClassActivator.CreateInstance(String assembly, String type)

[AeXException: An unexpected exception has occured during CreateInstance. (Assembely:Altiris.Inventory, Version=6.1.1063.0, Culture=neutral, PublicKeyToken=d516cb311cfb6e4f Type:Altiris.Inventory.InvWin32GenericDataClass)]
   Altiris.NS.ClassActivator.CreateInstance(String assembly, String type)
   Altiris.NS.ItemManagement.Item.CreateInstance(String strClassAssembly, String strClassType, Guid itemGuid)
   Altiris.NS.ItemManagement.Item.CreateInstance(String strClassAssembly, String strClassType)
   Altiris.NS.ItemManagement.Item.GetItem(Guid itemGuid)
   Altiris.NS.Connector.Web.ImportExportRule.CreateDataClassesMappingsTable(Boolean bReloadColumns, Boolean bSetSavedValues) +1397
   Altiris.NS.Connector.Web.ImportExportRule.CreateAllMappingControls(Boolean bReloadColumns, Boolean bSetSavedValues) +230
   Altiris.NS.Connector.Web.ImportExportRule.drpReplicationType_Change(Object sender, EventArgs e) +376
   System.Web.UI.WebControls.ListControl.OnSelectedIndexChanged(EventArgs e) +108
   System.Web.UI.WebControls.DropDownList.System.Web.UI.IPostBackDataHandler.RaisePostDataChangedEvent() +26
   System.Web.UI.Page.RaiseChangedEvents() +115
   System.Web.UI.Page.ProcessRequestMain() +1099

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2379; ASP.NET Version:1.1.4322.2379


Environment



Connector Solution Data Integration Component 6.1.1037
Inventory Solution 6.1.1075
Notification Server 6.0.6074


Cause



The error show is directly caused by the Class table having Assembly references to Altiris.Inventory, Version=6.1.1063.0, Culture=neutral, PublicKeyToken=d516cb311cfb6e4f, and not to Version 6.1.1075.0

The incorrect entries in the Class table are caused by the conditions set out in article 34332.

Solution



Follow the resolution steps in 34332.



Legacy ID



34546


Article URL http://www.symantec.com/docs/TECH29153


Terms of use for this information are found in Legal Notices