TBBatch.exe throws an XmlConfigurator error in AutoCAD Map 3D 2012 Enterprise

By Partha Sarkar

Some of you might have noticed an issue in using the TBBatch.exe in Map 3D 2012 Enterprise.

TBBatch.exe throws exceptions like the following:

log4net:ERROR XmlConfigurator: Error while loading XML configuration 
System.Xml.XmlException: Ungültiges Zeichen in der angegebenen Codierung. xxxx 58, Position 1.
   in System.Xml.XmlTextReaderImpl.Throw(Exception e)
   in System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
   in System.Xml.XmlTextReaderImpl.Throw(Int32 pos, String res)
   in System.Xml.XmlTextReaderImpl.InvalidCharRecovery(Int32& bytesCount, Int32 & charsCount)
   in System.Xml.XmlTextReaderImpl.GetChars(Int32 maxCharsCount)
   in System.Xml.XmlTextReaderImpl.ReadData()
   in System.Xml.XmlTextReaderImpl.EatWhitespaces(BufferBuilder sb)
   in System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
   in System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   in System.Xml.XmlTextReaderImpl.Read()
   in System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
   in System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
   in System.Xml.XmlDocument.Load(XmlReader reader)
   in log4net.Config.XmlConfigurator.Configure(ILoggerRepository repository, Stream configStream)

To make TBBatch.exe function correctly, unzip the attached config file and then copy it to the bin directory, renaming the file to TBBatch.exe.config. This should help in resolving the above-mentioned issue.


Comments

Leave a Reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading