G
Guest
I recently installed an assembly in the GAC and now I am having some trouble
finding it. This assembly defines some TraceListeners that I am using for
logging in our app. The application configuration file contains the following
lines the assembly is ErrorLog:
<trace autoflush="true" indentsize="4">
<listeners>
<add name="debugOut" type="System.Diagnostics.DefaultTraceListener" />
<add name="consoleOut" type="visa.dps.ppc.DynamicFileTraceListener,
ErrorLog" initializeData="ApplicationServer.log" />
<add name="eventOut" type="visa.dps.ppc.EventTraceListener,
ErrorLog" />
<remove name="debugOut" />
</listeners>
</trace>
I look in the GAC and I see
ErrorLog, Version=2.5.4.0, Culture=neutral, PublicKeyToken=33fcdc7f7eb6be4b,
Custom=null
When I run one of my apps that has a configuration file that contains the
lines above, I get:
Configuration exception during setup: Couldn't find type for class
visa.dps.ppc.DynamicFileTraceListener, ErrorLog.
at
System.Diagnostics.DiagnosticsConfigurationHandler.HandleListeners(Hashtable
config, XmlNode listenersNode, Object context)
at
System.Diagnostics.DiagnosticsConfigurationHandler.HandleTrace(Hashtable
config, XmlNode traceNode, Object context)
at System.Diagnostics.DiagnosticsConfigurationHandler.Create(Object
parent, Object configContext, XmlNode section)
at
System.Configuration.ConfigurationRecord.EvaluateRecursive(IConfigurationSectionHandler
factory, Object config, String[] keys, Int32 iKey, XmlTextReader reader)
at System.Configuration.ConfigurationRecord.Evaluate(String configKey)
at System.Configuration.ConfigurationRecord.ResolveConfig(String configKey)
at System.Configuration.ConfigurationRecord.GetConfig(String configKey)
at
System.Configuration.DefaultConfigurationSystem.System.Configuration.IConfigurationSystem.GetConfig(String configKey)
at System.Configuration.ConfigurationSettings.GetConfig(String sectionName)
at System.Diagnostics.DiagnosticsConfiguration.GetConfigTable()
at System.Diagnostics.DiagnosticsConfiguration.Initialize()
at System.Diagnostics.DiagnosticsConfiguration.get_SwitchSettings()
at System.Diagnostics.Switch.Initialize()
at System.Diagnostics.Switch.get_SwitchSetting()
at System.Diagnostics.BooleanSwitch.get_Enabled()
at System.Xml.Serialization.Compiler.Compile()
at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings)
at System.Xml.Serialization.XmlSerializer.FromMappings(XmlMapping[]
mappings)
at System.Web.Services.Protocols.SoapClientType..ctor(Type type)
at System.Web.Services.Protocols.SoapHttpClientProtocol..ctor()
at visa.dps.ppc.ivr.IVRService..ctor()
at visa.dps.ppc.InstallTestForm..ctor()
----------
Any idea as to what I am doing wrong?
Thank you.
Kevin Burton
finding it. This assembly defines some TraceListeners that I am using for
logging in our app. The application configuration file contains the following
lines the assembly is ErrorLog:
<trace autoflush="true" indentsize="4">
<listeners>
<add name="debugOut" type="System.Diagnostics.DefaultTraceListener" />
<add name="consoleOut" type="visa.dps.ppc.DynamicFileTraceListener,
ErrorLog" initializeData="ApplicationServer.log" />
<add name="eventOut" type="visa.dps.ppc.EventTraceListener,
ErrorLog" />
<remove name="debugOut" />
</listeners>
</trace>
I look in the GAC and I see
ErrorLog, Version=2.5.4.0, Culture=neutral, PublicKeyToken=33fcdc7f7eb6be4b,
Custom=null
When I run one of my apps that has a configuration file that contains the
lines above, I get:
Configuration exception during setup: Couldn't find type for class
visa.dps.ppc.DynamicFileTraceListener, ErrorLog.
at
System.Diagnostics.DiagnosticsConfigurationHandler.HandleListeners(Hashtable
config, XmlNode listenersNode, Object context)
at
System.Diagnostics.DiagnosticsConfigurationHandler.HandleTrace(Hashtable
config, XmlNode traceNode, Object context)
at System.Diagnostics.DiagnosticsConfigurationHandler.Create(Object
parent, Object configContext, XmlNode section)
at
System.Configuration.ConfigurationRecord.EvaluateRecursive(IConfigurationSectionHandler
factory, Object config, String[] keys, Int32 iKey, XmlTextReader reader)
at System.Configuration.ConfigurationRecord.Evaluate(String configKey)
at System.Configuration.ConfigurationRecord.ResolveConfig(String configKey)
at System.Configuration.ConfigurationRecord.GetConfig(String configKey)
at
System.Configuration.DefaultConfigurationSystem.System.Configuration.IConfigurationSystem.GetConfig(String configKey)
at System.Configuration.ConfigurationSettings.GetConfig(String sectionName)
at System.Diagnostics.DiagnosticsConfiguration.GetConfigTable()
at System.Diagnostics.DiagnosticsConfiguration.Initialize()
at System.Diagnostics.DiagnosticsConfiguration.get_SwitchSettings()
at System.Diagnostics.Switch.Initialize()
at System.Diagnostics.Switch.get_SwitchSetting()
at System.Diagnostics.BooleanSwitch.get_Enabled()
at System.Xml.Serialization.Compiler.Compile()
at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings)
at System.Xml.Serialization.XmlSerializer.FromMappings(XmlMapping[]
mappings)
at System.Web.Services.Protocols.SoapClientType..ctor(Type type)
at System.Web.Services.Protocols.SoapHttpClientProtocol..ctor()
at visa.dps.ppc.ivr.IVRService..ctor()
at visa.dps.ppc.InstallTestForm..ctor()
----------
Any idea as to what I am doing wrong?
Thank you.
Kevin Burton