Unable to register device

  • 7012927
  • 23-Jul-2013
  • 25-Jul-2013

Environment

Novell ZENworks Configuration Management 11.2

Situation

Registration fails.

ERROR (from zmd-messages.log):

[DEBUG] [12/11/2012 15:18:48.568] [1724] [ZenworksWindowsService] [39] []
[LocationConfigBasedService] [] 

[Could not get location configuration Type: System.UnauthorizedAccessException

Message: Access to the temp directory is denied.  
Identity 'NT AUTHORITY\SYSTEM' under which XmlSerializer is running does not
have 
sufficient permission to access the temp directory.  
CodeDom will use the user account the process is using to do the compilation, 
so if the user doesnt have access to system temp directory, you will not be
able to compile.  
Use Path.GetTempPath() API to find out the temp directory location.

Resolution

Workaround:

Disable Anti-Virus or any application that prohibits creation of a dll in system %TEMP% directory.  Or see http://support.microsoft.com/?kbid=934529 for a way to set alternative location for serialization dlls to be created.

Status

Reported to Engineering

Additional Information

Stack Trace:
       at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns,
XmlSerializerCompilerParameters xmlParameters, Evidence evidence)
       at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping()
xmlMappings, Type() types, String defaultNamespace, Evidence evidence,
XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable
assemblies)
       at System.Xml.Serialization.TempAssembly..ctor(XmlMapping() xmlMappings,
Type() types, String defaultNamespace, String location, Evidence evidence)
       at
System.Xml.Serialization.XmlSerializer.GenerateTempAssembly(XmlMapping
xmlMapping, Type type, String defaultNamespace, String location, Evidence
evidence)
       at System.Xml.Serialization.XmlSerializer..ctor(Type type,
XmlAttributeOverrides overrides, Type() extraTypes, XmlRootAttribute root,
String defaultNamespace, String location, Evidence evidence)
       at System.Xml.Serialization.XmlSerializer..ctor(Type type,
XmlAttributeOverrides overrides, Type() extraTypes, XmlRootAttribute root,
String defaultNamespace)
       at Novell.Zenworks.Zmd.XmlUtil.GetSerializerForType(Type type,
XmlAttributeOverrides overrides, Type() extraTypes, XmlRootAttribute root,
String defaultNamespace)
       at
Novell.Zenworks.Zmd.Services.LocationConfigDataStore.GetXmlSerializerForCapability()
       at
Novell.Zenworks.Zmd.Services.LocationConfigDataStore.UpdateLocationConfiguration(XmlTextReader
xmltr, String& zoneName, String& zoneUid, String& responseHash, List`1&
capabilities)
       at
Novell.Zenworks.Zmd.LocationConfigBasedService.ParseResponse(GetLocationConfigurationResponse
response)
       at
Novell.Zenworks.Zmd.LocationConfigBasedService.GetLocationConfiguration()
       at Novell.Zenworks.Zmd.LocationConfigBasedService.Create(String
serverRoot)