There are 3 errors in my event Logs
================================================
2015-08-14 19:09:31.3964 14 FATAL Unhandled AppDomain exception occurred: Name cannot begin with the ‘’ character, hexadecimal value 0x5C. Line 1, position 4.
System.Xml.XmlException: Name cannot begin with the ‘’ character, hexadecimal value 0x5C. Line 1, position 4.
at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
at System.Xml.XmlTextReaderImpl.ParseQName(Boolean isQName, Int32 startOffset, Int32& colonPos)
at System.Xml.XmlTextReaderImpl.ParseElement()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlReader.MoveToContent()
at System.Xml.Linq.XElement.Load(XmlReader reader, LoadOptions options)
at System.Xml.Linq.XElement.Parse(String text, LoadOptions options)
at Octopus.Worker.Scripting.ServiceMessageParser.ProcessMessage(ProcessOutputSource source, String message) in y:\work\refs\heads\master\source\Octopus.Worker\Scripting\ServiceMessageParser.cs:line 101
at Octopus.Worker.Scripting.ServiceMessageParser.Append(ProcessOutputSource source, String line) in y:\work\refs\heads\master\source\Octopus.Worker\Scripting\ServiceMessageParser.cs:line 73
at Octopus.Worker.Scripting.ScriptOutputFilter.Write(ProcessOutputSource source, String text) in y:\work\refs\heads\master\source\Octopus.Worker\Scripting\ScriptOutputFilter.cs:line 67
at System.Diagnostics.AsyncStreamReader.FlushMessageQueue()
at System.Diagnostics.AsyncStreamReader.GetLinesFromStringBuilder()
at System.Diagnostics.AsyncStreamReader.ReadBuffer(IAsyncResult ar)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.IO.Stream.ReadWriteTask.System.Threading.Tasks.ITaskCompletionAction.Invoke(Task completingTask)
at System.Threading.Tasks.Task.FinishContinuations()
at System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
at System.Threading.ThreadPoolWorkQueue.Dispatch()
=================
Application: Octopus.Server.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Xml.XmlException
Stack:
at System.Xml.XmlTextReaderImpl.Throw(System.String, System.String[])
at System.Xml.XmlTextReaderImpl.ParseQName(Boolean, Int32, Int32 ByRef)
at System.Xml.XmlTextReaderImpl.ParseElement()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlReader.MoveToContent()
at System.Xml.Linq.XElement.Load(System.Xml.XmlReader, System.Xml.Linq.LoadOptions)
at System.Xml.Linq.XElement.Parse(System.String, System.Xml.Linq.LoadOptions)
at Octopus.Worker.Scripting.ServiceMessageParser.ProcessMessage(Octopus.Shared.Contracts.ProcessOutputSource, System.String)
at Octopus.Worker.Scripting.ServiceMessageParser.Append(Octopus.Shared.Contracts.ProcessOutputSource, System.String)
at Octopus.Worker.Scripting.ScriptOutputFilter.Write(Octopus.Shared.Contracts.ProcessOutputSource, System.String)
at System.Diagnostics.AsyncStreamReader.FlushMessageQueue()
at System.Diagnostics.AsyncStreamReader.GetLinesFromStringBuilder()
at System.Diagnostics.AsyncStreamReader.ReadBuffer(System.IAsyncResult)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.IO.Stream+ReadWriteTask.System.Threading.Tasks.ITaskCompletionAction.Invoke(System.Threading.Tasks.Task)
at System.Threading.Tasks.Task.FinishContinuations()
at System.Threading.Tasks.Task.Finish(Boolean)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
at System.Threading.ThreadPoolWorkQueue.Dispatch()
=================
Faulting application name: Octopus.Server.exe, version: 3.0.6.2140, time stamp: 0x55b5b74b
Faulting module name: KERNELBASE.dll, version: 6.3.9600.17415, time stamp: 0x54505737
Exception code: 0xe0434352
Fault offset: 0x0000000000008b9c
Faulting process id: 0x750
Faulting application start time: 0x01d0d6c46e005662
Faulting application path: C:\Program Files\Octopus Deploy\Octopus\Octopus.Server.exe
Faulting module path: C:\Windows\system32\KERNELBASE.dll
Report Id: fd952570-42b7-11e5-80be-000d3a308b2c
Faulting package full name:
Faulting package-relative application ID:
we are running v3.0.6.2140
I’ve noticed this happens when I have remove a variable from my web.config but in my web.release.config there is still a transform referencing that variable. Let me know if you need any more information to help debug this issue.